Title: Error
Last modified: March 26, 2024

---

# Error

 *  Resolved [miata2](https://wordpress.org/support/users/miata2/)
 * (@miata2)
 * [2 years, 2 months ago](https://wordpress.org/support/topic/error-1863/)
 * Hi,
 * We are getting, this error when customer try to place an aorder, can you please
   help:
 * data-trpgettextoriginal=Failed to process the payment. Please try again or contact
   the shop admin. [UNPROCESSABLE_ENTITY] The requested action could not be performed,
   semantically incorrect, or failed business validation. [https://developer.paypal.com/docs/api/orders/v2/#error-DUPLICATE_INVOICE_ID](https://developer.paypal.com/docs/api/orders/v2/#error-DUPLICATE_INVOICE_ID)
   PayPalGateway.php:633 [UNPROCESSABLE_ENTITY] The requested action could not be
   performed, semantically incorrect, or failed business validation. [https://developer.paypal.com/docs/api/orders/v2/#error-DUPLICATE_INVOICE_ID](https://developer.paypal.com/docs/api/orders/v2/#error-DUPLICATE_INVOICE_ID)
   OrderEndpoint.php:346 data-trpgettextoriginal=Lo stato dell’ordine è cambiato
   da data-trpgettextoriginal=In attesa di pagamento a data-trpgettextoriginal=Fallito.

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

 *  Plugin Support [Krystian Syde](https://wordpress.org/support/users/inpsydekrystian/)
 * (@inpsydekrystian)
 * [2 years, 2 months ago](https://wordpress.org/support/topic/error-1863/#post-17528739)
 * Hello [@miata2](https://wordpress.org/support/users/miata2/)
 * Thanks for reaching out to us, we’re here to help.
 * The error **DUPLICATE_INVOICE_ID** error is a security feature from PayPal that
   aims to prevent accidental double payments.
 * PayPal Payments automatically sets an “invoice prefix” and then sends the WooCommerce
   order numbers in the pattern “invoice prefix+ordernumber” to PayPal. So when 
   your prefix is set to “cfbdg-” and your order number is “123”, PayPal Payments
   sends the invoice ID “cfbdg-123” to PayPal.
 * Under certain circumstances, for example, when you restore a backup from your
   website, it is possible that the most recent WooCommerce orders do not exist 
   anymore after the restore.
 * So as soon as WooCommerce attempts to create a new order with the number 123 
   and the same invoice prefix, PayPal throws this error to prevent accidental double
   payments because there is already a payment at PayPal with the same invoice ID.
 * This feature can be disabled, though we usually recommend keeping it enabled.
   To disable it, follow these steps:
    1. Log in to your Business PayPal account ([https://www.paypal.com/businessmanage/preferences/payments](https://www.paypal.com/businessmanage/preferences/payments))
    2. Go to the **Payments Preferences** section
    3. Under the “**Block accidental payments:**” section, select the option “**No,
       allow multiple payments per invoice ID**“
 * With this feature disabled, PayPal would no longer complain when you submit an
   invoice number that already exists in the system.
 * But instead of disabling this feature, it would be better to figure out the true
   cause for this error. A buyer during the normal checkout process should normally
   not encounter this error.
 * Kind regards,
   Krystian
 *  Plugin Support [Krystian Syde](https://wordpress.org/support/users/inpsydekrystian/)
 * (@inpsydekrystian)
 * [2 years, 1 month ago](https://wordpress.org/support/topic/error-1863/#post-17622288)
 * Hello [@miata2](https://wordpress.org/support/users/miata2/)
 * Since we have not received any further communication from you, we are assuming
   that your issue have been resolved. Therefore, we mark this thread as resolved.
 * If you still have any questions or if a new problem arises, don’t hesitate to
   open a new thread or reply to this one. We are here to help at any time.
 * Kind regards,
   Krystian

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

The topic ‘Error’ is closed to new replies.

 * ![](https://ps.w.org/woocommerce-paypal-payments/assets/icon-256x256.png?rev=
   3234615)
 * [WooCommerce PayPal Payments](https://wordpress.org/plugins/woocommerce-paypal-payments/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woocommerce-paypal-payments/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce-paypal-payments/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce-paypal-payments/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce-paypal-payments/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce-paypal-payments/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [Krystian Syde](https://wordpress.org/support/users/inpsydekrystian/)
 * Last activity: [2 years, 1 month ago](https://wordpress.org/support/topic/error-1863/#post-17622288)
 * Status: resolved