Skip to content

closeActivePaymentMethod does not dismiss Google Pay sheet #3586

@SamTRZ

Description

@SamTRZ

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

  1. Initialise Drop-in
  2. Start a Google Pay payment that will fail (e.g. test merchant / unsuccessful scenario).
  3. In onPaymentFailed, call closeActivePaymentMethod().
  4. Observe that the Google Pay sheet is still present until the browser navigates away

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions