If we link paypal express gateway in our ror code, we can get address details as
@address = details_response.address
@name = @address['name']
From that we can get the name of the user
Is it possible to get first name and last name components separately from paypal ?
Please help
Thankx in advance,
Sharanya
details_response.params['first_name'] etc will get what you're looking for.
Assuming, of course, that you're using ActiveMerchant - which is strongly suggested based on the code, but probably should have been specified in the question.
--Matt Jones