lib/active_merchant/billing/gateways/payflow.rb in activemerchant-1.133.0 vs lib/active_merchant/billing/gateways/payflow.rb in activemerchant-1.137.0
- old
+ new
@@ -190,12 +190,10 @@
add_address(xml, 'ShipTo', options[:shipping_address], options) if options[:shipping_address]
xml.tag! 'TotalAmt', amount(money), 'Currency' => options[:currency] || currency(money)
end
- if %i(authorization purchase).include? action
- add_mpi_3ds(xml, options[:three_d_secure]) if options[:three_d_secure]
- end
+ add_mpi_3ds(xml, options[:three_d_secure]) if %i(authorization purchase).include?(action) && (options[:three_d_secure])
xml.tag! 'Tender' do
add_credit_card(xml, credit_card, options)
end
add_stored_credential(xml, options[:stored_credential])