• 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 - 16 through 30 (of 36 total)
  • Thread Starter reneedirks

    (@reneedirks)

    Thank you, yes we’re on Woocommerce 5.7.1

    tmendes

    (@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.

    Sorry, I had added a few other lines to debug the problem, that’s why the line isn’t accurate. But I had added in a slightly different place than the developers did – I added right below the switch ( $parsedResponse[ 'ACK' ] ) { (between lines 306 and 307 of https://plugins.trac.www.ads-software.com/browser/woocommerce-paypal-pro-payment-gateway/trunk/woo-paypal-pro-gateway-class.php?rev=2611405).

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

    The payment goes through anyway. The difference is that customers stop seeing the error, the order is set as complete/processing.

    We had our first error on September 29. We’re using WP 5.8.1, WooCommerce 5.6.0 and WooCommerce PayPal Pro 2.9.7.

    Paypal Credit Card Payment Failed with message: ”

    We’ve also encountered this message. I started to log PayPal’s responses, and this is the error that they send when this happen:

    cURL error 61: Unrecognized content encoding type. libcurl understands deflate, gzip content encodings.

    No idea why. There’s nothing different on the orders where they send this as response. And again, the payments go through, despite the error message.

    I’m having the same issue, but will add this to try and help the developers.
    1. It started October 5th when I updated WooCommerce from 5.7.0 to 5.7.1.
    2. The PayPal plugin I’m using is ‘WooCommerce PayPal Pro (Classic and PayFlow Editions) Gateway’ – by WooCommerce – Version 4.4.4
    3. Roughly 2 orders out of 10 orders fail per day with error code ‘10536’

    • This reply was modified 3 years, 1 month ago by mraccine.

    + 1 to this issue.

    WP: Version 5.8.1
    Woocommerce: Version 3.9.4
    WooCommerce PayPal Pro (Classic and PayFlow Editions) Gateway: Version 4.4.17

    Hi, @wpinsider-1 when you say “I have released” is there a new version available for the plugin? or is it in repo to be applied manually? We are experiencing same issue as rest and trying to figure out workaround. Thank you

    Add me to the list of people experiencing this problem.

    Same issue – getting the below:

    Customer sees “duplicate invoice id” – I get in order notes it says “Paypal Credit Card Payment Failed with message: “.
    Sometime the error in order notes is:
    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’

    please add me to the list of people having this issue

    using WooCommerce 5.6.0 – woocommerce paPal Pro 2.9.8

    • This reply was modified 3 years, 1 month ago by krickman.

    Since my post yesterday we updated every plugin and core, but still received an order today with this issue. We reverted the Paypal “duplicate invoice” setting back to “No”

    Versions are:

    PHP 7.4.24
    WP 5.8.1
    WooCommerce PayPal Pro (Classic and PayFlow Editions) Gateway 4.5.1

    Other possibly relevant settings:

    Payment Action: Capture
    Send Item Details: Yes, send line items to Paypal
    3DS 1 & 2 disabled

    Having the exact same issue since updating Woo to 5.7.1. PayPal Pro is running 2.9.8 which is suppose to have the fix offered by @thaissamendes
    Temporarily Ignore the “Duplicate invoice ID supplied” error. Thanks to @thaissamendes for sharing the code tweak.
    Added a new action hook “wcpprog_paypal_api_error_response” when the API response is an error response.

    We are getting the error mostly on Android users using Chrome both desktop and mobile.

    Plugin Author wp.insider

    (@wpinsider-1)

    I need to reproduce this issue so I can investigate this more efficiently (on my site it just works so I am somewhat guessing blindly as to what the issue could be).

    I would like to give you a customized copy of the addon that will write some data to a file when an error happens. This will allow me to read the data from that file and analyze things better. Please use the following contact form to get in touch (you can mention that it is regarding the woocommerce paypal pro gateway):
    https://simple-membership-plugin.com/contact/

    tmendes

    (@thaissamendes)

    The main problem is that we cannot reproduce, it’s totally random. But I’ll send you some information I was able to get from the requests made on our website.

    Thanks for the detailed reply, @thaissamendes!

    We’ve gotten in touch with Paypal about both issues, and this was their response about the blank error message (that I mentioned earlier in the thread):

    Hi XXXXXX,
    Thanks for that insight.
    It appears as though in this particular instance (XTRANSACTIONIDX), we did not return an error message like WooCommerce is indicating. You can even see that it says it failed with message “” and there is no text to the error message. I would recommend reaching out to WooCommerce about this also as they seem to be showing you an incorrect result as we did return a success response to their system.
    My apologies that you’re having these issues but it does appear these are stemming from the numerous reported issues WooCommerce is having.
    Just for the best clarification, here is our system’s response to the transaction:

    ack	"Success"
    amt	"20.90"
    currencycode	"USD"
    avscode	"S"
    cvv2match	"M"
    transactionid	"XTRANSACTIONIDX"

    We’re just baffled by this at this point, they’re saying that it might be an issue from Woocommerce’s end. And we did only start getting these issues right after we updated Woocommerce (before October 2nd) so it is possible that the Woocommerce update is playing a role in this, as well.

    For reference, here are screenshots of what the order & transaction looks like with this issue:
    https://ibb.co/c6HkPQW
    https://ibb.co/6Hb7wMX

    tmendes

    (@thaissamendes)

    This is not related to WooCommerce’s upgrade. We didn’t upgrade it – still using 5.6.0.

    I already posted PayPal’s return message related to the “failed with message ”” error.

    +1 on this. Running Woocommerce v4.6.3 and v4.5 for the plugin.

    @wpinsider-1 do we have the final fix for the issue?

    re: https://prnt.sc/1w7sk2a

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