# 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
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
# File lib/active_merchant/billing/gateways/paypal/paypal_express_response.rb, line 4 4: def email 5: info['Payer'] 6: end
# File lib/active_merchant/billing/gateways/paypal/paypal_express_response.rb, line 8 8: def info 9: (@params['PayerInfo']||{}) 10: end
# 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
# File lib/active_merchant/billing/gateways/paypal/paypal_express_response.rb, line 25 25: def payer_country 26: info['PayerCountry'] 27: end
Disabled; run with --debug to generate this.
Generated with the Darkfish Rdoc Generator 1.1.6.