Class: ActiveMerchant::Billing::PaypalExpressResponse

Inherits:
Response
  • Object
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?

Constructor Details

This class inherits a constructor from ActiveMerchant::Billing::Response

Instance Method Details

#addressObject



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

#emailObject



4
5
6
# File 'lib/active_merchant/billing/gateways/paypal/paypal_express_response.rb', line 4

def email
  @params['payer']
end

#payer_idObject



12
13
14
# File 'lib/active_merchant/billing/gateways/paypal/paypal_express_response.rb', line 12

def payer_id
  @params['payer_id']
end

#tokenObject



8
9
10
# File 'lib/active_merchant/billing/gateways/paypal/paypal_express_response.rb', line 8

def token
  @params['token']
end