Symptoms
- A customer chooses PayPal at checkout and the payment is declined, while other payment methods still work.
- BigCommerce shows a "Duplicate Invoice ID detected" error when the order is submitted.
- In PayPal's NVP/SOAP API this is error code 10412, with the short message "Duplicate invoice" and the long message "Payment has already been made for this InvoiceID."
- The failures started soon after you connected a PayPal account that already had past transactions, for example after launching a new store or replatforming.
- The failed attempts may leave Incomplete orders in your orders list, which is why your order numbers can show gaps.
Cause
PayPal checks that invoice IDs are unique for each merchant account. If a payment arrives with an invoice ID already associated with an earlier transaction, PayPal declines it. BigCommerce's Send order IDs to PayPal setting associates each PayPal transaction with a BigCommerce order, and BigCommerce notes that PayPal requires those order IDs to be unique.
The most common trigger is connecting a PayPal account that has past transactions, from an older store or another platform, to a BigCommerce store. A store's default Starting Order Number is 100, so its first orders can collide with invoice IDs PayPal has already recorded. A less common cause is another store or system sending numeric invoice IDs to the same PayPal account from an overlapping range.
Resolution
- Confirm it is really a duplicate invoice error. Check the error text the customer saw or the payment details on the Incomplete order. A generic decline or a card verification failure needs a different fix (see card payment fails and the order remains incomplete).
- Find the highest invoice ID already used in PayPal. Review the invoice numbers on past transactions in the connected PayPal account, including any from an old store or another platform, and note the highest one.
- Raise the store's Starting Order Number. In the BigCommerce control panel go to Settings > Miscellaneous and find Order Settings. Enter a Starting Order Number higher than any of your existing PayPal invoice IDs, then save. BigCommerce only accepts a value higher than your highest used order number; for example, if your highest order is 157 you must choose 158 or more. Failed checkouts also use up order IDs, so check Incomplete orders too.
- Ask affected shoppers to start over. BigCommerce notes that a customer who received the error before the fix must clear their cart and start over before they can check out. Customers after the fix are not affected.
- Check other systems that share the PayPal account. If another store, marketplace tool or custom app also posts payments to the same PayPal account with plain numeric invoice IDs, its range can catch up with yours later. Give each source a clearly separate range, or use a separate PayPal account per store.
- Treat PayPal's duplicate setting as a last resort. PayPal's Block accidental payments option, in its payment receiving preferences, can be changed to allow multiple payments per invoice ID. That stops the error but removes PayPal's protection against paying the same invoice twice, and PayPal's own developer guidance recommends keeping invoice IDs unique instead.
- Verify the fix. Place a test order with PayPal. Confirm it completes, that the new order number is above the range you set, and that the PayPal transaction shows the matching order or invoice ID. If it still fails, note the order ID and the time of the attempt and contact BigCommerce support.
How to prevent it
- Set the Starting Order Number before you connect an existing PayPal account to a new or rebuilt store, not after the first failed checkout.
- Record the invoice range each system uses on a shared PayPal account, so a future store or relaunch does not reuse it.
- Once orders have been placed or attempted, the Starting Order Number can only move above the highest used order ID, so plan the range once.
- BigCommerce does not let you switch PayPal accounts directly. You must disconnect PayPal under Settings > Payments and run the setup again with the other account, so check that account's invoice history before you reconnect.
B2B and ERP considerations
Many B2B setups push BigCommerce orders into an ERP that keys on the order number. Raising the Starting Order Number does not change past orders, but your connector and any reporting that assumes a continuous sequence will see a jump. That jump is expected, and gaps from Incomplete orders are normal too.
If you replatformed and kept the same PayPal account, the old platform's invoice numbers remain in PayPal's history even after the orders are imported into BigCommerce. Check that range before launch. If your ERP or a custom integration also takes PayPal payments directly, for invoices paid outside the storefront, make sure its invoice numbers cannot overlap with web order numbers.
Sources
- Connecting with PayPal (BigCommerce)
- Order ID (BigCommerce)
- NVP/SOAP error codes and troubleshooting (PayPal)
- Why did I get API error code 10412? (PayPal)
Related problems to check
- A webhook creates duplicate orders or fulfillment actions
- The cart empties when the customer opens checkout
Related articles
- Card payment fails and the order remains incomplete
- Checkout says the order cannot ship to an address
- Checkout shows zero or unexpected tax
- Guest checkout unexpectedly asks for an account
- Customers do not receive order emails
More in the BigCommerce knowledge base, including every article on Checkout, shipping and payments.