Skip to content

Can the Google Pay popup be programmatically closed? #369

@bs-shubham-chaudhari

Description

@bs-shubham-chaudhari

Hi team, 👋

We’re using @google-pay/button-react for web checkout and would like to know if there is any supported way to programmatically close the Google Pay popup once it has been opened.

We’ve tried approaches such as:

  • Returning errors from onPaymentDataChanged
  • Hiding or unmounting the <GooglePayButton>
  • Remounting the component

but the popup remains open in all cases.

Could you clarify if this is possible, or if programmatic closure is intentionally not exposed via the API?

Thanks!

This question is related to: React component (@google-pay/button-react)

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions