lib/active_merchant/billing/gateways/quickpay/quickpay_v10.rb in activemerchant-1.91.0 vs lib/active_merchant/billing/gateways/quickpay/quickpay_v10.rb in activemerchant-1.92.0

- old
+ new

@@ -101,11 +101,11 @@ def authorization_params(money, credit_card_or_reference, options = {}) post = {} add_amount(post, money, options) - add_credit_card_or_reference(post, credit_card_or_reference) + add_credit_card_or_reference(post, credit_card_or_reference, options) add_additional_params(:authorize, post, options) post end @@ -214,9 +214,15 @@ else post[:card][:number] = credit_card_or_reference.number post[:card][:cvd] = credit_card_or_reference.verification_value post[:card][:expiration] = expdate(credit_card_or_reference) post[:card][:issued_to] = credit_card_or_reference.name + end + + if options[:three_d_secure] + post[:card][:cavv]= options.dig(:three_d_secure, :cavv) + post[:card][:eci] = options.dig(:three_d_secure, :eci) + post[:card][:xav] = options.dig(:three_d_secure, :xid) end end def parse(body) JSON.parse(body)