lib/active_merchant/billing/gateways/barclaycard_smartpay.rb in activemerchant-1.102.0 vs lib/active_merchant/billing/gateways/barclaycard_smartpay.rb in activemerchant-1.103.0
- old
+ new
@@ -357,9 +357,15 @@
post[:threeDS2RequestData] = { deviceChannel: device_channel }
else
add_browser_info(three_ds_2_options[:browser_info], post)
post[:threeDS2RequestData] = { deviceChannel: device_channel, notificationURL: three_ds_2_options[:notification_url] }
end
+
+ if options.has_key?(:execute_threed)
+ post[:additionalData] ||= {}
+ post[:additionalData][:executeThreeD] = options[:execute_threed]
+ post[:additionalData][:scaExemption] = options[:sca_exemption] if options[:sca_exemption]
+ end
else
return unless options[:execute_threed] || options[:threed_dynamic]
post[:browserInfo] = { userAgent: options[:user_agent], acceptHeader: options[:accept_header] }
post[:additionalData] = { executeThreeD: 'true' } if options[:execute_threed]
end