• Resolved laelwalt

    (@laelwalt)


    Since February 2023, we are seeing a remarkable number of failed orders, but there is a duplicate successful order. Sometimes with the same order number, and sometimes with a different one. The orders happen in the same minute. This has happened 10 times in 1 month. There are 2 errors that are listed:

    Eight times, the error is this: “Error processing payment. Reason: Cannot use a payment_method_nonce more than once.”

    Two times, the error is this: “Gateway Rejected: duplicate”

    Prior to this, there has been 1-2 failed orders in a month with a variety of reasons listed. This is my first time asking for help, so I’m not sure what more information to provide. Please advise.

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Clayton R

    (@mrclayton)

    Hi @laelwalt

    It sounds like you have a plugin that’s triggering a PHP exception during the checkout process that’s causing the customer to re-submit their payment. The payment nonce has been consumed, so that’s where the Cannot use a payment_method_nonce more than once notice somes from.

    Navigate to your WooCommerce > Status > Logs page and look for a log file called fata-errors with a timestamp. What does that log say? It should point to the plugin that’s triggering the exception.

    Kind Regards,

    Thread Starter laelwalt

    (@laelwalt)

    Thanks for your reply! I’m on the Logs page, and I am using the file search that has the drop down of all the logs. I search for “fata-errors” and there are no matches. Thoughts?

    Plugin Author Clayton R

    (@mrclayton)

    Hi @laelwalt

    Sometimes with the same order number, and sometimes with a different one.

    Can you elaborate on that more? How do you have a duplicate order on your site but with the same Order ID? Order ID’s are generated by the WordPress database and they are sequential. It’s usually not possible to have the database generate a duplicate order ID.

    Do you have another website using the same Braintree account?

    Kind Regards

    Thread Starter laelwalt

    (@laelwalt)

    This is what it looks like from the list of orders. Two orders with the same number, but one fails and the other one is completed. Two separate line items that occur at the same time. The order note on both of these have a timestamp of 12:34pm. The failed order note says: “Error processing payment. Reason: Cannot use a payment_method_nonce more than once.” The other order is processed correctly.

    Plugin Author Clayton R

    (@mrclayton)

    Hi @laelwalt

    You should never have two orders with the same ID becauses those are generated by the WordPress posts table and are sequential. The fact that you have two orders with the same ID might point to a larger problem.

    The Braintree plugin never creates orders, it is fed the order object by WooCommerce so the payment can be processed.

    I am not sure why you would be getting duplicate order ID’s but I would start by trying to solve that issue then turn your attention to the payment error Cannot use a payment_method_nonce more than once. The Braintree error is most likely a symptom of the duplicate order issue.

    Kind Regards

    Thread Starter laelwalt

    (@laelwalt)

    Thank you for your help. I have one more question before I close this thread. Should I seek additional help directly from WordPress, where the ID is generated, or from WooCommerce?

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Error Processing: payment_method_nonce’ is closed to new replies.