Sha256: 5394e605b0d7c0061cf049760db74fc95c6c192219d3f828500ce8adda152f87
Contents?: true
Size: 926 Bytes
Versions: 1
Compression:
Stored size: 926 Bytes
Contents
module MerbMerchant #: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' => nil, 'city' => @params['city'], 'state' => @params['state'], 'country' => @params['country'], 'zip' => @params['zip'], 'phone' => nil } end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
merb_merchant-1.4.1 | lib/merb_merchant/billing/gateways/payflow/payflow_express_response.rb |