Sha256: a03811bdaf7288f04f30c20e51c9875e2e9b6df3613b97051465947e3033ccf5

Contents?: true

Size: 972 Bytes

Versions: 113

Compression:

Stored size: 972 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'] || @params['street2'],
           'city'       => @params['city'],
           'state'      => @params['state'],
           'country'    => @params['country'],
           'zip'        => @params['zip'],
           'phone'      => nil
        }
      end
    end
  end
end

Version data entries

113 entries across 112 versions & 9 rubygems

Version Path
activemerchant-1.63.0 lib/active_merchant/billing/gateways/payflow/payflow_express_response.rb
activemerchant-1.62.0 lib/active_merchant/billing/gateways/payflow/payflow_express_response.rb
activemerchant-1.61.0 lib/active_merchant/billing/gateways/payflow/payflow_express_response.rb
tanga_activemerchant-1.38.0.4 lib/active_merchant/billing/gateways/payflow/payflow_express_response.rb
tanga_activemerchant-1.38.0.3 lib/active_merchant/billing/gateways/payflow/payflow_express_response.rb
activemerchant-1.60.0 lib/active_merchant/billing/gateways/payflow/payflow_express_response.rb
activemerchant-1.59.0 lib/active_merchant/billing/gateways/payflow/payflow_express_response.rb
tanga_activemerchant-1.38.0.2 lib/active_merchant/billing/gateways/payflow/payflow_express_response.rb
activemerchant-1.58.0 lib/active_merchant/billing/gateways/payflow/payflow_express_response.rb
activemerchant-1.57.0 lib/active_merchant/billing/gateways/payflow/payflow_express_response.rb
activemerchant-1.56.0 lib/active_merchant/billing/gateways/payflow/payflow_express_response.rb
activemerchant-1.55.0 lib/active_merchant/billing/gateways/payflow/payflow_express_response.rb
activemerchant-1.54.0 lib/active_merchant/billing/gateways/payflow/payflow_express_response.rb
activemerchant-1.53.0 lib/active_merchant/billing/gateways/payflow/payflow_express_response.rb
start_activemerchant-1.50.0 lib/active_merchant/billing/gateways/payflow/payflow_express_response.rb
solidus_backend-1.0.0.pre3 vendor/bundle/gems/activemerchant-1.48.0/lib/active_merchant/billing/gateways/payflow/payflow_express_response.rb
solidus_backend-1.0.0.pre2 vendor/bundle/gems/activemerchant-1.48.0/lib/active_merchant/billing/gateways/payflow/payflow_express_response.rb
activemerchant-1.52.0 lib/active_merchant/billing/gateways/payflow/payflow_express_response.rb
activemerchant-1.51.0 lib/active_merchant/billing/gateways/payflow/payflow_express_response.rb
solidus_backend-1.0.0.pre vendor/bundle/gems/activemerchant-1.44.1/lib/active_merchant/billing/gateways/payflow/payflow_express_response.rb