Sha256: 22ff550544420117a33fe00f87ce3c417cf2d9de557a07cb57373e2e75b14d1d
Contents?: true
Size: 985 Bytes
Versions: 4
Compression:
Stored size: 985 Bytes
Contents
module ActiveMerchant #:nodoc: module Billing #:nodoc: class PaypalExpressResponse < Response def email @params['payer'] end def name [@params['first_name'], @params['middle_name'], @params['last_name']].compact.join(' ') end def token @params['token'] end def payer_id @params['payer_id'] end def payer_country @params['payer_country'] end 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' => @params['contact_phone'] } end end end end
Version data entries
4 entries across 4 versions & 1 rubygems