# Paypal Integration

**URL:** <https://www.ruby-forum.com/t/paypal-integration/180580>\
**Category:** Rails\
**Created:** [December 22, 2009, 6:46am UTC](https://www.ruby-forum.com/t/paypal-integration/180580 "2009-12-22T06:46:55Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![sharankruthi](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/97f17d/32.png) [@sharankruthi](https://www.ruby-forum.com/u/sharankruthi)\
**Post date:** [December 22, 2009, 6:46am UTC](https://www.ruby-forum.com/t/paypal-integration/180580/1 "2009-12-22T06:46:55Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![sharankruthi](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/97f17d/32.png) [@sharankruthi](https://www.ruby-forum.com/u/sharankruthi)\
**Post date:** [December 22, 2009, 9:03pm UTC](https://www.ruby-forum.com/t/paypal-integration/180580/2 "2009-12-22T21:03:10Z")

</div>

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 J.

On Dec 22, 12:46 am, Sharanya S. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> from paypal ?
> 
> Please help
> 
> Thankx in advance,
> 
> ## Sharanya
> 
> Posted viahttp://www.ruby-forum.com/.

–

You received this message because you are subscribed to the Google  
Groups “Ruby on Rails: Talk” group.  
To post to this group, send email to removed\_email\_address@domain.invalid.  
To unsubscribe from this group, send email to  
removed\_email\_address@domain.invalid.  
For more options, visit this group at  
[http://groups.google.com/group/rubyonrails-talk?hl=en](http://groups.google.com/group/rubyonrails-talk?hl=en).
