class ActiveMerchant::Billing::PayflowExpressResponse

Public Instance Methods

address() click to toggle source
# File lib/active_merchant/billing/gateways/payflow/payflow_express_response.rb, line 29
def address
  {  'name'       => @params['shiptoname'] || full_name,
     'company'    => nil,
     'address1'   => @params['street'],
     'address2'   => @params['shiptostreet2'] || @params['street2'],
     'city'       => @params['city'],
     'state'      => @params['state'],
     'country'    => @params['country'],
     'zip'        => @params['zip'],
     'phone'      => phone,
  }
end
email() click to toggle source
# File lib/active_merchant/billing/gateways/payflow/payflow_express_response.rb, line 4
def email
  @params['e_mail']
end
full_name() click to toggle source
# File lib/active_merchant/billing/gateways/payflow/payflow_express_response.rb, line 8
def full_name
  "#{@params['name']} #{@params['lastname']}"
end
payer_country() click to toggle source

Really the shipping country, but it is all the information provided

# File lib/active_merchant/billing/gateways/payflow/payflow_express_response.rb, line 21
def payer_country
  address['country']
end
payer_id() click to toggle source
# File lib/active_merchant/billing/gateways/payflow/payflow_express_response.rb, line 16
def payer_id
  @params['payer_id']
end
phone() click to toggle source
# File lib/active_merchant/billing/gateways/payflow/payflow_express_response.rb, line 25
def phone
  @params['phone']
end
token() click to toggle source
# File lib/active_merchant/billing/gateways/payflow/payflow_express_response.rb, line 12
def token
  @params['token']
end