Skip to content

Commit

Permalink
Redirect without resolving the payment promise
Browse files Browse the repository at this point in the history
  • Loading branch information
adrian-martinez-dev committed Feb 27, 2024
1 parent c2bb542 commit 32c2c62
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/classes/inlineCheckout.js
Original file line number Diff line number Diff line change
Expand Up @@ -108,10 +108,12 @@ export class InlineCheckout {
console.log('Error loading iframe:', error)
})
} else {
setTimeout(() => {
const redirectUrl = process3ds.getRedirectUrl()
if (redirectUrl) {
process3ds.redirectToChallenge()
}, 3000)
resolve(response);
} else {
resolve(response);
}
}
}
} catch (error) {
Expand Down

0 comments on commit 32c2c62

Please sign in to comment.