• Resolved fox-didl

    (@fox-didl)


    Any idea how to fix this? I think this is happening when a customers try to pay the same order again after the first payment don’t work (of the same order). This can happen if the false password was used or the 2FA code is false.

    Error in backend:
    Error processing payment. Reason: Duplicate Invoice ID detected. To avoid a potential duplicate transaction your account setting requires that Invoice Id be unique for each transaction.

    debug:

    2022-09-19T18:43:41+00:00 ERROR API error: Array
    (
        [url] => https://api-m.paypal.com/v2/checkout/orders/3TG225xxxxxx/capture
        [method] => POST
        [request] => Array
    (
    )
    
        [error] => Array
            (
                [name] => UNPROCESSABLE_ENTITY
                [details] => Array
                    (
                        [0] => Array
                            (
                                [issue] => DUPLICATE_INVOICE_ID
                                [description] => Duplicate Invoice ID detected. To avoid a potential duplicate transaction your account setting requires that Invoice Id be unique for each transaction.
                            )
    
                    )
    
                [message] => The requested action could not be performed, semantically incorrect, or failed business validation.
                [debug_id] => cf4a8xxxx
                [links] => Array
                    (
                        [0] => Array
                            (
                                [href] => https://developer.paypal.com/docs/api/orders/v2/#error-DUPLICATE_INVOICE_ID
                                [rel] => information_link
                                [method] => GET
                            )
    
                    )
    
            )
    
    )
    • This topic was modified 2 years, 6 months ago by fox-didl.
Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Payment Plugins

    (@mrclayton)

    Hi @fox-didl

    Are you using the same PayPal business account on any other WooCommerce sites?

    Kind Regards,

    Thread Starter fox-didl

    (@fox-didl)

    Sure. We have more WooCommerce stores connected on one PayPal account. But different domains.

    • This reply was modified 2 years, 6 months ago by fox-didl.
    • This reply was modified 2 years, 6 months ago by fox-didl.
    Plugin Author Payment Plugins

    (@mrclayton)

    @fox-didl Then I recommend adding an order prefix in the Advanced Settings section of the PayPal plugin.

    I believe what’s happening is since you have multiple stores connected to the same PayPal account, the same invoice ID has passed through your account before and that’s triggering that error.

    Kind Regards,

    Thread Starter fox-didl

    (@fox-didl)

    Will do this now. Thanks.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Duplicate Invoice ID detected’ is closed to new replies.