Class: ActiveMerchant::Billing::PaypalExpressResponse
- Inherits:
-
Response
- Object
- Response
- ActiveMerchant::Billing::PaypalExpressResponse
show all
- Defined in:
- lib/active_merchant/billing/gateways/paypal/paypal_express_response.rb
Instance Attribute Summary
Attributes inherited from Response
#authorization, #message, #params, #test
Instance Method Summary
collapse
Methods inherited from Response
#initialize, #success?, #test?
Instance Method Details
#address ⇒ Object
16
17
18
19
20
21
22
23
24
25
26
27
|
# File 'lib/active_merchant/billing/gateways/paypal/paypal_express_response.rb', line 16
def address
{ 'name' => @params['name'],
'company' => @params['payer_business'],
'address1' => @params['street1'],
'address2' => @params['street2'],
'city' => @params['city_name'],
'state' => @params['state_or_province'],
'country' => @params['country'],
'zip' => @params['postal_code'],
'phone' => nil
}
end
|
#email ⇒ Object
4
5
6
|
# File 'lib/active_merchant/billing/gateways/paypal/paypal_express_response.rb', line 4
def email
@params['payer']
end
|
#payer_id ⇒ Object
12
13
14
|
# File 'lib/active_merchant/billing/gateways/paypal/paypal_express_response.rb', line 12
def payer_id
@params['payer_id']
end
|
#token ⇒ Object
8
9
10
|
# File 'lib/active_merchant/billing/gateways/paypal/paypal_express_response.rb', line 8
def token
@params['token']
end
|