Closed scarballo closed 1 year ago
@scarballo The error message is not nice. However, in order to use the onPaymentAuthorized
callback you have to specify a callback intent:
callbackIntents: ['PAYMENT_AUTHORIZATION']
See an example here: https://developers.google.com/pay/api/web/guides/resources/demos#authorize-payments-example
The Unable to download payment manifest
should not impact your integration. Check here for all the details:
https://bugs.chromium.org/p/chromium/issues/detail?id=1405229
FYI please go ahead and use version 3.0.8 of the @google-pay/button-react
. 3.0.7. introduced a regression.
Thank you very much for your reply. What a stupid mistake of mine...it is quite clear in the documentation. Now it works as expected.
Following your advice we've updated our version to 3.0.8.
Hello all,
We are using the React button component to display the Google Pay button in our checkout page. The button appears but if we add the "onPaymentAuthorized" callback function we get a javascript error when we click on the button. If we remove the callback, the popup to select a credit card is displayed as expected.
If we remove the "onPaymentAuthorized" callback the button works.
We have tried different options to define the onPaymentAuthorized callback based on your examples but all of them fail. Could you help us, please?
Other issue that we have detected when we load the component is that sometimes the component is not able to download the manifest from your environment and this breaks completely the flow:
How can we avoid this random issue?
Thank you very much in advance.
Steps to reproduce
Expected behaviour: Clicking on the pay button should display the Google Pay popup to select a valid credit card.
Component information:
@google-pay/button-react
)Environment: