Skip to content

Callback to execute additional logic before opening the Payment Pequest UI #91

Discussion options

You must be logged in to vote

@nielsengoncalves, this is something we've considered and haven't implemented as this request hasn't previously been requested. FYI, it would likely be called onClick.

One of the things I would like to better understand is what you are planning to use this.

A challenge with this is the fact that the payment sheet must be triggered by a user gesture and some browsers have different ways for determining if the sheet was triggered by a user gesture.

I've previously run into issues with browsers where some latency between the click and displaying the payment sheet can cause the browser to think that the payment sheet was triggered without a user gesture and therefore error out without display…

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@nielsengoncalves
Comment options

@socsieng
Comment options

@socsieng
Comment options

@nielsengoncalves
Comment options

Answer selected by socsieng
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Ideas
Labels
None yet
2 participants