• Resolved reneedirks

    (@reneedirks)


    Customer can’t complete orders, and in the backend in the order I get this error message:

    Paypal Credit Card Payment Failed with message: ‘The transaction was refused as a result of a duplicate invoice ID supplied. Attempt with a new invoice ID’

    What should I do?

Viewing 15 replies - 1 through 15 (of 36 total)
  • Plugin Support mbrsolution

    (@mbrsolution)

    Hi,

    Please carry out a test transaction? Let me know what happens.

    Thank you.

    Thread Starter reneedirks

    (@reneedirks)

    When I do a test transaction, it’s working fine.

    Can this have something to do with this setting in Paypal?:

    My Account >Profile >My Selling Tools >Credit Card Statement Name >”Allow multiple payments per invoice ID”

    Plugin Support mbrsolution

    (@mbrsolution)

    Hi, that does sounds logical. What happens if you disable that setting in your PayPal account?

    Regards.

    One of our WooCommerce clients have also be experiencing this PayPal payment failure.

    “PayPal Pro payment failed (Correlation ID: 567a0e83e56b6). Payment was rejected due to an error: (10536) “The transaction was refused as a result of a duplicate invoice ID supplied. Attempt with a new invoice ID” Order status changed from Pending payment to Failed.”

    Checking to see if the setting is enabled.

    tmendes

    (@thaissamendes)

    We’ve been seeing this message more and more – it started on September 29th, and it’s getting worse by the day. Among hundreds of orders, about 5 per day these last days, but yesterday we had 9.

    Maybe something changed on PayPal’s side? We use WPEngine, I’m checking with them if something changed, but not a clue so far.

    And we OBVIOUSLY don’t want clients to pay multiple times the same order. What we need is the order to actually change the status after the payment, which is not happening on those cases.

    One of my clients is also having this issue. They are on WPEngine, WooCommerce 3.6.6, WP 4.9.18.

    We do not see the PayPal setting referenced by @reneedirks unfortunately.

    Any other ideas?

    *Edit. Found the Paypal setting:

    Update: I found where the setting is.

    Hover over your profile name on top-right corner
    Click Account Settings
    Click Payment Preferences
    Click “Update” next to Block Payments
    For the setting “Block accidental payments:” set it to “No, allow multiple payments per invoice ID”

    • This reply was modified 2 years, 6 months ago by celoc. Reason: found setting
    tmendes

    (@thaissamendes)

    “No, allow multiple payments per invoice ID”

    That’s exactly what we want to avoid. We do not want multiple payments per invoice ID, not even accidentally.

    It’s weird because, as per my tests, the request is sent just like any other request, just once. But sometimes PayPal’s answer is the “duplicate invoice ID”, even thought they *just* processed the payment.

    Plugin Support mbrsolution

    (@mbrsolution)

    Hi all, I have submitted a message to the developers to investigate further this issue.

    Thank you.

    I am also having this issue.

    tmendes

    (@thaissamendes)

    If it helps anyone, I added the following piece of code to my wp-content/plugins/woocommerce-paypal-pro-payment-gateway/woo-paypal-pro-gateway-class.php line 315:

    // Check if Error Code is "10536" (duplicated invoice ID), if so set order as paid
    if ( '10536' === $parsedResponse['L_ERRORCODE0'] ) {
        $this->transactionId = $parsedResponse[ 'CORRELATIONID' ];
        return true;
    }

    This is NOT meant to be a fix, just a workaround, while we wait for somebody to find the actual problem and come up with a real solution.

    In our company we’re still investigating, and if we find anything, I’ll add it here.

    So far, these are the characteristics to our specific problem:

    * It happens a few times a day
    * Most orders go through without problem, just a few have this problem
    * The payment data is sent ONCE to PayPal, but it returns the message with the error code 10536 as a response for this first request
    * The payment is processed, despite the error that they send

    @thaissamendes – What version of the Woocommerce Paypal Pro plugin are you currently running? We are on 2.9.7 but LINE 315 does not seem to be the appropriate place for the code & results to a critical error. We moved it & placed it inside the following function: function verify_paypal_payment( $gatewayRequestData ) which was the only function that declared & is using the $parsedResponse variable on the file. Would like to clarify the correct placement of the code?

    Also, what exactly happens once a transaction encounters this error code (using the temporary fix provided)? Does the payment push through? Thanks!

    BACKSTORY:
    We started having this problem right after we updated the Woocommerce plugin, around October 1st, but we are looking at other plugins we’re using that could be causing these issues. We use Woocommerce Paypal Pro for credit card transactions & this only seems to happen when our user pays via credit card. It just started to happen out of the blue, getting multiple duplicate invoice ID errors per day. We enabled “allow multiple payments for invoice ID” in our Paypal account hoping this would solve the problem, BUT Paypal then started double/triple charging single transactions on our site causing us to do multiple refunds a day. So clearly, that just created more problems for us.

    Hoping a plugin developer can get back to us as soon as possible.

    • This reply was modified 2 years, 6 months ago by luvidudez.
    Plugin Author wp.insider

    (@wpinsider-1)

    This is a very strange issue. I have been looking at it but I can’t see any issue in our addon’s code. Seems like PayPal has made some changes on their side and occasionally their API is giving this response incorrectly. I am going to spend more time trying to find more info on this. We may just add some code to ignore this particular error code from the PayPal API (as has been done by @thaissamendes). Then when we have more clarification from PayPal as to what is happening, we can make another update.

    You are using WooCommerce v5.7.1 correct?

    • This reply was modified 2 years, 6 months ago by wp.insider.

    @wpinsider-1 – Yes, we would be very grateful for a temporary fix to ignore this error (proceed with the Paypal transaction in spite of encountering such error, and return a successful transaction response).

    We are on Woocommerce 5.7.0, and the latest version of the Woocommerce Paypal Pro plugin @ 2.9.7.

    Thank you!

    ————-

    P.S. Might as well mention that we are also getting this error message (visible under Order Notes in edit order page for transactions that have failed): Paypal Credit Card Payment Failed with message: ”

    It’s a blank message after the quotations. So it’s not just a “duplicate invoice ID” error message that we’re getting, we’re also getting this blank error message occasionally, but just as frequently. These errors only happen for users who checkout using CC/DC (Paypal Pro).

    Just adding this information in, in case it’s helpful or offer some clues.

    • This reply was modified 2 years, 6 months ago by luvidudez.

    Additionally (please check above^ comment for context), when we get the error Paypal Credit Card Payment Failed with message: ”, the Paypal transaction is still processed (user gets charged) but it doesn’t update on our end (order remains “pending” and doesn’t complete).

    Again, this is just another error message we started getting the same time we started getting the “duplicate invoice ID” errors. The difference with these errors is the blank error message charges the user on Paypal anyway but doesn’t complete the Woocommerce order (causing a lot of users to complain), and the “duplicate invoice ID” error doesn’t complete the order or charge the user at all (causing sales to drop & leaving customers frustrated).

    We believe this started happening just before October 2nd.

    • This reply was modified 2 years, 6 months ago by luvidudez.
    • This reply was modified 2 years, 6 months ago by luvidudez.
    Plugin Author wp.insider

    (@wpinsider-1)

    I have released an updated copy of the addon that should ignore this error code. Please update it and let me know how it goes. I have also emailed PayPal dev about it to get more info in terms of what has changed in their API recently.

Viewing 15 replies - 1 through 15 (of 36 total)
  • The topic ‘Error: duplicate invoice ID supplied’ is closed to new replies.