Sha256: 14c166984d2c9011cf3efb34ea27bd99c14a3a2566d25f5789eccca66c0350a9

Contents?: true

Size: 1014 Bytes

Versions: 16

Compression:

Stored size: 1014 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 phone
        @params['phone']
      end

      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
    end
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
activemerchant-1.112.0 lib/active_merchant/billing/gateways/payflow/payflow_express_response.rb
activemerchant-1.111.0 lib/active_merchant/billing/gateways/payflow/payflow_express_response.rb
activemerchant-1.110.0 lib/active_merchant/billing/gateways/payflow/payflow_express_response.rb
activemerchant-1.109.0 lib/active_merchant/billing/gateways/payflow/payflow_express_response.rb
activemerchant-1.108.0 lib/active_merchant/billing/gateways/payflow/payflow_express_response.rb
activemerchant-1.107.4 lib/active_merchant/billing/gateways/payflow/payflow_express_response.rb
activemerchant-1.107.3 lib/active_merchant/billing/gateways/payflow/payflow_express_response.rb
activemerchant-1.107.2 lib/active_merchant/billing/gateways/payflow/payflow_express_response.rb
activemerchant-1.107.1 lib/active_merchant/billing/gateways/payflow/payflow_express_response.rb
activemerchant-1.106.0 lib/active_merchant/billing/gateways/payflow/payflow_express_response.rb
activemerchant-1.105.0 lib/active_merchant/billing/gateways/payflow/payflow_express_response.rb
activemerchant-1.104.0 lib/active_merchant/billing/gateways/payflow/payflow_express_response.rb
activemerchant-1.103.0 lib/active_merchant/billing/gateways/payflow/payflow_express_response.rb
activemerchant-1.102.0 lib/active_merchant/billing/gateways/payflow/payflow_express_response.rb
activemerchant-1.101.0 lib/active_merchant/billing/gateways/payflow/payflow_express_response.rb
activemerchant-1.100.0 lib/active_merchant/billing/gateways/payflow/payflow_express_response.rb