ÃÛ¶¹ÊÓÆµ

PayPal gateway rejected request - duplicate invoice issue

You encounter an error when duplicate invoice IDs are sent to PayPal. This article shows you how to fix the issue by updating your PayPal Payment Receiving Preferences to allow multiple payments per invoice ID.

Description description

Environments

  • ÃÛ¶¹ÊÓÆµ Commerce on-premises, all versions
  • ÃÛ¶¹ÊÓÆµ Commerce on cloud infrastructure, all versions

Issue

When submitting payment, customers see the error message:

… main.CRITICAL: Exception message: PayPal gateway has rejected request. Payment has already been made for this InvoiceID (#10412: Duplicate invoice).

PayPal cannot process the payment and complete the order.

Cause

The error message is displayed when invoices with the same ID are submitted to PayPal multiple times.

This may happen when using the same credentials across several ÃÛ¶¹ÊÓÆµ Commerce sites (even across the Local and the Staging environments). Particular scenarios might be the following:

  • Multiple stores submit invoices to PayPal and use the same invoice IDs.
  • A new store sends an invoice with an ID that has been previously submitted by an old store.

By default, PayPal does not allow processing for the same invoice twice.

Resolution resolution

Change your PayPal profile to allow for multiple payments per invoice ID. You need to make these changes through PayPal.

  1. Log in to your account at .
  2. Click Profile > Profile and settings (upper-right corner).
  3. Go to My selling tools.
  4. Navigate to Getting paid and managing my risk > Block payments and click Update.
  5. Selling Preferences, click Payment Receiving Preferences.
  6. Under Block Accidental Payments, choose No, allow multiple payments per invoice ID. paypal_allow_multiple_payments_per_invoice_id.png
  7. Scroll to the bottom and click Save.
  1. on PayPal Developer Docs.

  2. PayPal payments in our user guide:

  3. In our developer documentation:

recommendation-more-help
3d58f420-19b5-47a0-a122-5c9dab55ec7f