lib/active_merchant/billing/gateways/payflow.rb in activemerchant-1.121.0 vs lib/active_merchant/billing/gateways/payflow.rb in activemerchant-1.123.0
- old
+ new
@@ -54,10 +54,14 @@
else
authorize(0, payment, options)
end
end
+ def store(payment, options = {})
+ raise ArgumentError, 'Store is not supported on Payflow gateways'
+ end
+
def verify_credentials
response = void('0')
response.params['result'] != '26'
end
@@ -139,10 +143,11 @@
xml.tag!('ExtData', 'Name' => 'COMMENT2', 'Value' => options[:comment2]) unless options[:comment2].blank?
xml.tag! 'TaxAmt', options[:taxamt] unless options[:taxamt].blank?
xml.tag! 'FreightAmt', options[:freightamt] unless options[:freightamt].blank?
xml.tag! 'DutyAmt', options[:dutyamt] unless options[:dutyamt].blank?
xml.tag! 'DiscountAmt', options[:discountamt] unless options[:discountamt].blank?
+ xml.tag! 'MerchDescr', options[:merch_descr] unless options[:merch_descr].blank?
billing_address = options[:billing_address] || options[:address]
add_address(xml, 'BillTo', billing_address, options) if billing_address
add_address(xml, 'ShipTo', options[:shipping_address], options) if options[:shipping_address]
@@ -174,10 +179,11 @@
xml.tag! 'TaxAmt', options[:taxamt] unless options[:taxamt].blank?
xml.tag! 'FreightAmt', options[:freightamt] unless options[:freightamt].blank?
xml.tag! 'DutyAmt', options[:dutyamt] unless options[:dutyamt].blank?
xml.tag! 'DiscountAmt', options[:discountamt] unless options[:discountamt].blank?
xml.tag! 'EMail', options[:email] unless options[:email].nil?
+ xml.tag! 'MerchDescr', options[:merch_descr] unless options[:merch_descr].blank?
billing_address = options[:billing_address] || options[:address]
add_address(xml, 'BillTo', billing_address, options) if billing_address
add_address(xml, 'ShipTo', options[:shipping_address], options) if options[:shipping_address]
@@ -237,10 +243,11 @@
xml.tag! 'Invoice' do
xml.tag! 'CustIP', options[:ip] unless options[:ip].blank?
xml.tag! 'InvNum', options[:order_id].to_s.gsub(/[^\w.]/, '') unless options[:order_id].blank?
xml.tag! 'Description', options[:description] unless options[:description].blank?
xml.tag! 'OrderDesc', options[:order_desc] unless options[:order_desc].blank?
+ xml.tag! 'MerchDescr', options[:merch_descr] unless options[:merch_descr].blank?
xml.tag! 'BillTo' do
xml.tag! 'Name', check.name
end
xml.tag! 'TotalAmt', amount(money), 'Currency' => options[:currency] || currency(money)
end
@@ -280,9 +287,11 @@
xml.tag! 'PAReq', three_d_secure[:pareq] unless three_d_secure[:pareq].blank?
xml.tag! 'ACSUrl', three_d_secure[:acs_url] unless three_d_secure[:acs_url].blank?
xml.tag! 'ECI', three_d_secure[:eci] unless three_d_secure[:eci].blank?
xml.tag! 'CAVV', three_d_secure[:cavv] unless three_d_secure[:cavv].blank?
xml.tag! 'XID', three_d_secure[:xid] unless three_d_secure[:xid].blank?
+ xml.tag! 'THREEDSVERSION', three_d_secure[:version] unless three_d_secure[:version].blank?
+ xml.tag! 'DSTRANSACTIONID', three_d_secure[:ds_transaction_id] unless three_d_secure[:ds_transaction_id].blank?
end
end
end
def authentication_status(three_d_secure, xml)