Cannot use a payment_method_nonce more than once.
See original GitHub issueHey guys,
For the last few months we’ve been struggling with finding out why do we receive an error:
Cannot use a payment_method_nonce more than once.
with code 91564.
Here is what we found: When you click on “Pay” button on the braintree popup window it will show you an intermediate window with the information of you card and with link to change payment methods. But the “Pay” button is still exist and if you will click it again it will show you this error. If you don’t click, after few seconds it will act like it should. Here is a screencast of reproducing this flow.
Some of our users are getting a bad user experience because they click on button “Pay” two times and receive an error.
We are using this version of braintree frontend: https://js.braintreegateway.com/v2/braintree.js
Could you please help us to figure out if this behavior is normal or we have some troubles?
Many thanks!
Issue Analytics
- State:
- Created 7 years ago
- Reactions:3
- Comments:8 (4 by maintainers)
Top GitHub Comments
Once you receive the nonce in the callback you can disable the Pay button and navigate the page for the user. That should prevent them from double-clicking by accident.
Yes @mrak , we just disabling this button in the callback. Thanks, you can close this issue!