From 93f1d25e5ae826972ffc0537d40b596295fba067 Mon Sep 17 00:00:00 2001 From: Isaac Vance Date: Mon, 25 Apr 2022 13:53:25 -0600 Subject: [PATCH] Add gateway suggested field to braintree 3ds flow remove unnecessary debugger statement Add challengeRequested key to test --- lib/recurly/risk/three-d-secure/strategy/braintree.js | 1 + test/unit/risk/three-d-secure/strategy/braintree.test.js | 1 + 2 files changed, 2 insertions(+) diff --git a/lib/recurly/risk/three-d-secure/strategy/braintree.js b/lib/recurly/risk/three-d-secure/strategy/braintree.js index 8161a862f..6b358c825 100644 --- a/lib/recurly/risk/three-d-secure/strategy/braintree.js +++ b/lib/recurly/risk/three-d-secure/strategy/braintree.js @@ -65,6 +65,7 @@ export default class BraintreeStrategy extends ThreeDSecureStrategy { amount: amount, nonce: nonce, bin: bin, + challengeRequested: true, onLookupComplete: (data, next) => { next(); } diff --git a/test/unit/risk/three-d-secure/strategy/braintree.test.js b/test/unit/risk/three-d-secure/strategy/braintree.test.js index fb865bd1a..6c273ecec 100644 --- a/test/unit/risk/three-d-secure/strategy/braintree.test.js +++ b/test/unit/risk/three-d-secure/strategy/braintree.test.js @@ -86,6 +86,7 @@ describe('BraintreeStrategy', function () { amount: 50, nonce: "test-braintree-nonce", bin: "test-braintree-bin", + challengeRequested: true, onLookupComplete: sinon.match.func }));