question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Cannot use a payment_method_nonce more than once.

See original GitHub issue

Hey 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:closed
  • Created 7 years ago
  • Reactions:3
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

3reactions
mrakcommented, Mar 23, 2016

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.

0reactions
Andrii-Dcommented, Mar 25, 2016

Yes @mrak , we just disabling this button in the callback. Thanks, you can close this issue!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Cannot use a payment_method_nonce more than once. #306
That error means you're attempting to use the nonce more than once. The nonce is a one-time-use token and can only be used...
Read more >
Cannot use a payment method more than once - WordPress.org
I just started getting this error this morning with numerous orders. Error processing payment. Reason: Cannot use a payment_method_nonce more than once.
Read more >
Braintree IOS + rails error 91564 Cannot use a ...
Braintree::ErrorResult params:{...} errors:transaction:[(91564) Cannot use a payment_method_nonce more than once. However when I check the nonce token, it's ...
Read more >
All | Ruby - Braintree Developer Documentation
Cannot use a payment_method_nonce more than once. A payment method nonce may only be consumed once. 93108, Unknown or expired payment_method_nonce. The payment...
Read more >
Reusing the payment source - Core API - Commerce Layer
You want to save a Braintree payment source already used to complete a purchase into ... with an error — "cannot use a...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found