lib/active_merchant/billing/gateways/safe_charge.rb in activemerchant-1.121.0 vs lib/active_merchant/billing/gateways/safe_charge.rb in activemerchant-1.123.0

- old
+ new

@@ -141,10 +141,11 @@ post[:sg_IPAddress] = options[:ip] if options[:ip] post[:sg_VendorID] = options[:vendor_id] if options[:vendor_id] post[:sg_Descriptor] = options[:merchant_descriptor] if options[:merchant_descriptor] post[:sg_MerchantPhoneNumber] = options[:merchant_phone_number] if options[:merchant_phone_number] post[:sg_MerchantName] = options[:merchant_name] if options[:merchant_name] + post[:sg_ProductID] = options[:product_id] if options[:product_id] end def add_payment(post, payment, options = {}) post[:sg_ExpMonth] = format(payment.month, :two_digits) post[:sg_ExpYear] = format(payment.year, :two_digits) @@ -183,9 +184,10 @@ post[:sg_dsTransID] = options[:three_d_secure][:ds_transaction_id] if options[:three_d_secure][:ds_transaction_id] post[:sg_threeDSProtocolVersion] = options[:three_d_secure][:ds_transaction_id] ? '2' : '1' post[:sg_Xid] = options[:three_d_secure][:xid] post[:sg_IsExternalMPI] = 1 post[:sg_EnablePartialApproval] = options[:is_partial_approval] + post[:sg_challengePreference] = options[:three_d_secure][:challenge_preference] if options[:three_d_secure][:challenge_preference] end def parse(xml) response = {}