Lately, a lot of orders are failing. The error message is “Braintree (PayPal) Payment Failed (Status code 91564: Cannot use a paymentMethodNonce more than once.) Order status changed from Pending payment to Failed.”
This is only occurring with PayPal errors, and also only happens intermittently. Some PayPal orders do go through, incuding when I test it myself. But it’s happening to customers a few times a day.
Thank you for contacting Payment Plugins. That is an error that typically happens when there are multiple duplicate requests being made to your server so WooCommerce attempts to process the order multiple times.
The first request is processed by the Braintree plugin and the payment method nonce is consumed. That results in subsequent requests failing since the payment method nonce has been used already.
If you look at the order notes for one of these orders, does it show the payment was processed?
Are you using the checkout bock or checkout shortcode?
Since there isn’t a successful payment, that would indicate you have a cache issue. I’ve seen in the past where caching can result in the payment method nonce being cached and then re-used on subsequent requests.
Are you utilizing caching on your checkout page or site in general?
Looking closer at your error message, that’s not a format that our plugin uses. I believe you are mistaking our plugin, “Payment Plugins Braintree for WooCommerce” with a different Braintree plugin.