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)
Hi team, 👋
We’re using
@google-pay/button-reactfor 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:
onPaymentDataChanged<GooglePayButton>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)