Skip to content

Commit

Permalink
fix: Add RedirectShopper
Browse files Browse the repository at this point in the history
  • Loading branch information
acasazza committed Dec 2, 2021
1 parent 1203be2 commit c6233b7
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/components/AdyenPayment.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,10 @@ const AdyenPayment: FunctionComponent<AdyenPaymentProps> = ({
// @ts-ignore
const adyenAction = pSource?.payment_response?.action
// @ts-ignore
const resultCode = pSource?.payment_response?.resultCode
if (adyenAction && resultCode === 'IdentifyShopper') {
if (
adyenAction &&
['IdentifyShopper', 'RedirectShopper'].includes(resultCode)
) {
checkout
.createFromAction(adyenAction, threeDSConfiguration)
.mount('#adyen-action')
Expand Down

0 comments on commit c6233b7

Please sign in to comment.