Sha256: 53fa350f78388fe66db82967385b0a379db8b3be9851c4bd0fc1bee24a551bde

Contents?: true

Size: 949 Bytes

Versions: 100

Compression:

Stored size: 949 Bytes

Contents

module ActiveMerchant #:nodoc:
  module Billing #:nodoc:
    class PayflowExpressResponse < Response
      def email
        @params['e_mail']
      end
      
      def full_name
        "#{@params['name']} #{@params['lastname']}"
      end
      
      def token
        @params['token']
      end
      
      def payer_id
        @params['payer_id']
      end
      
      # Really the shipping country, but it is all the information provided
      def payer_country
        address['country']
      end
      
      def address
        {  'name'       => full_name,
           'company'    => nil,
           'address1'   => @params['street'],
           'address2'   => @params['shiptostreet2'],
           'city'       => @params['city'],
           'state'      => @params['state'],
           'country'    => @params['country'],
           'zip'        => @params['zip'],
           'phone'      => nil
        }
      end
    end
  end
end

Version data entries

100 entries across 100 versions & 28 rubygems

Version Path
smulube-activemerchant-1.5.1.1 lib/active_merchant/billing/gateways/payflow/payflow_express_response.rb
mysmallidea-activemerchant-1.5.1 lib/active_merchant/billing/gateways/payflow/payflow_express_response.rb
mcmire-activemerchant-1.5.2 lib/active_merchant/billing/gateways/payflow/payflow_express_response.rb
smulube-activemerchant-1.5.1 lib/active_merchant/billing/gateways/payflow/payflow_express_response.rb
easy-testmode-activemerchant-1.5.1 lib/active_merchant/billing/gateways/payflow/payflow_express_response.rb
noctivityinc-activemerchant-1.5.2 lib/active_merchant/billing/gateways/payflow/payflow_express_response.rb
ghazel-activemerchant-1.4.2 lib/active_merchant/billing/gateways/payflow/payflow_express_response.rb
noctivityinc-activemerchant-1.5.1 lib/active_merchant/billing/gateways/payflow/payflow_express_response.rb
activemerchant-1.5.1 lib/active_merchant/billing/gateways/payflow/payflow_express_response.rb
activemerchant-est-1.4.2.6 lib/active_merchant/billing/gateways/payflow/payflow_express_response.rb
activemerchant-1.5.0 lib/active_merchant/billing/gateways/payflow/payflow_express_response.rb
patmaddox-activemerchant-1.4.2.6 lib/active_merchant/billing/gateways/payflow/payflow_express_response.rb
patmaddox-activemerchant-1.4.2.5 lib/active_merchant/billing/gateways/payflow/payflow_express_response.rb
patmaddox-activemerchant-1.4.2.4 lib/active_merchant/billing/gateways/payflow/payflow_express_response.rb
patmaddox-activemerchant-1.4.2.3 lib/active_merchant/billing/gateways/payflow/payflow_express_response.rb
patmaddox-activemerchant-1.4.2.2 lib/active_merchant/billing/gateways/payflow/payflow_express_response.rb
patmaddox-activemerchant-1.4.2.1 lib/active_merchant/billing/gateways/payflow/payflow_express_response.rb
activemerchant-est-1.4.2.5 lib/active_merchant/billing/gateways/payflow/payflow_express_response.rb
patmaddox-activemerchant-1.4.2 lib/active_merchant/billing/gateways/payflow/payflow_express_response.rb
abtain_billing-1.0 lib/active_merchant/billing/gateways/payflow/payflow_express_response.rb