Skip to content

Commit

Permalink
Fix bug when preflightDeviceData is set to false
Browse files Browse the repository at this point in the history
  • Loading branch information
gilv93 committed Oct 1, 2024
1 parent b1dd079 commit 489ebae
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/recurly/risk/three-d-secure/three-d-secure.js
Original file line number Diff line number Diff line change
Expand Up @@ -106,8 +106,9 @@ export class ThreeDSecure extends RiskConcern {
const { gateway_code } = result.params;
const strategy = ThreeDSecure.getStrategyForGatewayType(gatewayType);
return strategy.preflight({ recurly, number, month, year, cvv, ...result.params })
.then(({ results, tokenType }) => {
// return finishedPreflights.concat([{ processor: type, gateway_code, results}]);
.then((preflightResponse) => {
if (!preflightResponse) return finishedPreflights;
const { results, tokenType } = preflightResponse
return {
tokenType: finishedPreflights.tokenType || tokenType,
risk: finishedPreflights.risk.concat({
Expand Down

0 comments on commit 489ebae

Please sign in to comment.