-
Notifications
You must be signed in to change notification settings - Fork 165
Open
Description
We’re integrating Adyen Drop-in (@adyen/adyen-web v6.21.0) in a Next.js checkout. When a Google Pay transaction fails, Drop-in calls our onPaymentFailed handler. From there we invoke dropin.closeActivePaymentMethod() before redirecting the shopper to a status page.
Expected behaviour: the Google Pay sheet (native overlay) should dismiss immediately after closeActivePaymentMethod() resolves.
Actual behaviour: the Google Pay overlay remains on screen, even after the page navigates away. The modal only disappears if we trigger a full window.location.replace() which is not ideal (it breaks router transitions and wipes local state).
Steps to reproduce
- Initialise Drop-in
- Start a Google Pay payment that will fail (e.g. test merchant / unsuccessful scenario).
- In
onPaymentFailed, callcloseActivePaymentMethod(). - Observe that the Google Pay sheet is still present until the browser navigates away
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels