From 727607ea537cc87a9cc5a15b4d6778020e08a4e4 Mon Sep 17 00:00:00 2001 From: gil Date: Thu, 31 Oct 2024 17:26:54 -0700 Subject: [PATCH] add currency to proactive preflights flow --- lib/recurly/risk/three-d-secure/strategy/braintree.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/recurly/risk/three-d-secure/strategy/braintree.js b/lib/recurly/risk/three-d-secure/strategy/braintree.js index 782963fd..57f69f76 100644 --- a/lib/recurly/risk/three-d-secure/strategy/braintree.js +++ b/lib/recurly/risk/three-d-secure/strategy/braintree.js @@ -11,7 +11,7 @@ export default class BraintreeStrategy extends ThreeDSecureStrategy { } static preflight ({ recurly, number, month, year, cvv }) { - const { enabled, gatewayCode, amount } = recurly.config.risk.threeDSecure.proactive; + const { enabled, gatewayCode, amount, currency } = recurly.config.risk.threeDSecure.proactive; debug('performing preflight for', { gatewayCode }); @@ -22,6 +22,7 @@ export default class BraintreeStrategy extends ThreeDSecureStrategy { const data = { gateway_type: BraintreeStrategy.strategyName, gateway_code: gatewayCode, + currency: currency, number, month, year,