Skip to content

Commit

Permalink
add currency to proactive preflights flow
Browse files Browse the repository at this point in the history
  • Loading branch information
gilv93 committed Nov 1, 2024
1 parent 6b9d477 commit 727607e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/recurly/risk/three-d-secure/strategy/braintree.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 });

Expand All @@ -22,6 +22,7 @@ export default class BraintreeStrategy extends ThreeDSecureStrategy {
const data = {
gateway_type: BraintreeStrategy.strategyName,
gateway_code: gatewayCode,
currency: currency,
number,
month,
year,
Expand Down

0 comments on commit 727607e

Please sign in to comment.