Sha256: 3f1dc255a3b8f7b602feb3bda4c8d2e4e3d6560f32f00d2712d8d2c35ecbfc00

Contents?: true

Size: 762 Bytes

Versions: 5

Compression:

Stored size: 762 Bytes

Contents

module ActiveMerchant #:nodoc:
  module Billing #:nodoc:
    class PaypalExpressResponse < Response
      def email
        @params['payer']
      end
      
      def token
        @params['token']
      end
      
      def payer_id
        @params['payer_id']
      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'      => nil
        }
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
activemerchant-1.0.2 lib/active_merchant/billing/gateways/paypal/paypal_express_response.rb
activemerchant-1.0.0 lib/active_merchant/billing/gateways/paypal/paypal_express_response.rb
activemerchant-1.0.1 lib/active_merchant/billing/gateways/paypal/paypal_express_response.rb
activemerchant-1.0.3 lib/active_merchant/billing/gateways/paypal/paypal_express_response.rb
activemerchant-1.1.0 lib/active_merchant/billing/gateways/paypal/paypal_express_response.rb