Replies: 1 comment 7 replies
-
This is something that is discouraged. The reason for that is the browser requires that the payment sheet/payment window is triggered by a user gesture (e.g. button click). The behavior is inconsistent between different browsers, but the user gesture may not be recognized after a fetch. Which parts of the payment request data are you looking to update? If you are looking to update the total price or shipping options, then one alternative may be to use Another alternative is to proactively update the payment request when other context in the page changes. For example, if the payment request data is dependent on the value of a checkbox, then fetch the data and update the payment request data when the state of the checkbox changes. |
Beta Was this translation helpful? Give feedback.
-
Is there any way that I fetch data on clicking the google pay button and then update the payment request based on the data fetched and then pop up should open with new payment request data.
any help would be appreciated. thanks
Beta Was this translation helpful? Give feedback.
All reactions