Class ActiveMerchant::Billing::PaypalExpressResponse
In: lib/active_merchant/billing/gateways/paypal/paypal_express_response.rb
Parent: Response

Methods

address   email   name   payer_country   payer_id   token  

Public Instance methods

[Source]

    # File lib/active_merchant/billing/gateways/paypal/paypal_express_response.rb, line 24
24:       def address
25:         {  'name'       => @params['name'],
26:            'company'    => @params['payer_business'],
27:            'address1'   => @params['street1'],
28:            'address2'   => @params['street2'],
29:            'city'       => @params['city_name'],
30:            'state'      => @params['state_or_province'],
31:            'country'    => @params['country'],
32:            'zip'        => @params['postal_code'],
33:            'phone'      => nil
34:         }
35:       end

[Source]

   # File lib/active_merchant/billing/gateways/paypal/paypal_express_response.rb, line 4
4:       def email
5:         @params['payer']
6:       end

[Source]

    # File lib/active_merchant/billing/gateways/paypal/paypal_express_response.rb, line 8
 8:       def name
 9:         [@params['first_name'], @params['middle_name'], @params['last_name']].compact.join(' ')
10:       end

[Source]

    # File lib/active_merchant/billing/gateways/paypal/paypal_express_response.rb, line 20
20:       def payer_country
21:         @params['payer_country']
22:       end

[Source]

    # File lib/active_merchant/billing/gateways/paypal/paypal_express_response.rb, line 16
16:       def payer_id
17:         @params['payer_id']
18:       end

[Source]

    # File lib/active_merchant/billing/gateways/paypal/paypal_express_response.rb, line 12
12:       def token
13:         @params['token']
14:       end

[Validate]