Class Index [+]

Quicksearch

ActiveMerchant::Billing::PaypalExpressResponse

Public Instance Methods

address() click to toggle source
    # File lib/active_merchant/billing/gateways/paypal/paypal_express_response.rb, line 34
34:       def address
35:         address = (@params['PaymentDetails']||{})['ShipToAddress']
36:         {  'name'       => address['Name'],
37:            'company'    => info['PayerBusiness'],
38:            'address1'   => address['Street1'],
39:            'address2'   => address['Street2'],
40:            'city'       => address['CityName'],
41:            'state'      => address['StateOrProvince'],
42:            'country'    => address['Country'],
43:            'zip'        => address['PostalCode'],
44:            'phone'      => (contact_phone || address['Phone'])
45:         }
46:       end
contact_phone() click to toggle source

PayPal returns a contact telephone number only if your Merchant account profile settings require that the buyer enter one.

    # File lib/active_merchant/billing/gateways/paypal/paypal_express_response.rb, line 30
30:       def contact_phone
31:         @params['ContactPhone']
32:       end
email() click to toggle source
   # File lib/active_merchant/billing/gateways/paypal/paypal_express_response.rb, line 4
4:       def email
5:         info['Payer']
6:       end
info() click to toggle source
    # File lib/active_merchant/billing/gateways/paypal/paypal_express_response.rb, line 8
 8:       def info
 9:         (@params['PayerInfo']||{})
10:       end
name() click to toggle source
    # File lib/active_merchant/billing/gateways/paypal/paypal_express_response.rb, line 12
12:       def name
13:         payer = (info['PayerName']||{})
14:         [payer['FirstName'], payer['MiddleName'], payer['LastName']].compact.join(' ')
15:       end
payer_country() click to toggle source
    # File lib/active_merchant/billing/gateways/paypal/paypal_express_response.rb, line 25
25:       def payer_country
26:         info['PayerCountry']
27:       end
payer_id() click to toggle source
    # File lib/active_merchant/billing/gateways/paypal/paypal_express_response.rb, line 21
21:       def payer_id
22:         info['PayerID']
23:       end
token() click to toggle source
    # File lib/active_merchant/billing/gateways/paypal/paypal_express_response.rb, line 17
17:       def token
18:         @params['Token']
19:       end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.