lib/active_merchant/billing/gateways/paypal_express.rb in activemerchant-1.129.0 vs lib/active_merchant/billing/gateways/paypal_express.rb in activemerchant-1.130.0
- old
+ new
@@ -106,10 +106,11 @@
xml.tag! 'n2:Version', API_VERSION
xml.tag! 'n2:DoExpressCheckoutPaymentRequestDetails' do
xml.tag! 'n2:PaymentAction', action
xml.tag! 'n2:Token', options[:token]
xml.tag! 'n2:PayerID', options[:payer_id]
+ xml.tag! 'n2:MsgSubID', options[:idempotency_key] if options[:idempotency_key]
add_payment_details(xml, money, currency_code, options)
end
end
end
@@ -249,9 +250,10 @@
xml.tag! 'n2:PaymentAction', action
xml.tag! 'n2:PaymentType', options[:payment_type] || 'Any'
add_payment_details(xml, money, currency_code, options)
xml.tag! 'n2:IPAddress', options[:ip]
xml.tag! 'n2:MerchantSessionId', options[:merchant_session_id] if options[:merchant_session_id].present?
+ xml.tag! 'n2:MsgSubID', options[:idempotency_key] if options[:idempotency_key]
end
end
end
xml.target!