---
title: "How To Add Invoice Prefix to WooCommerce PayPal Pro Payment Gateway to Solve Duplicate Invoice ID supplied Error | Marketing 1on1"
url: https://www.marketing1on1.com/how-to-add-invoice-prefix-to-woocommerce-paypal-pro-payment-gateway-to-solve-duplicate-invoice-id-supplied-error/
description: "Learn how to add invoice prefix to WooCommerce PayPal Pro Payment Gateway to solve duplicate invoice ID supplied Error."
last_modified: 2025-03-04
---

# How To Add Invoice Prefix to WooCommerce PayPal Pro Payment Gateway to Solve Duplicate Invoice ID supplied Error | Marketing 1on1

## How To Add Invoice Prefix to WooCommerce PayPal Pro Payment Gateway to Solve Duplicate Invoice ID supplied Error

[Home](https://www.marketing1on1.com/) » [Blog](https://www.marketing1on1.com/blog/) » How To Add Invoice Prefix to WooCommerce PayPal Pro Payment Gateway to Solve Duplicate Invoice ID supplied Error

If you are using WooCommerce PayPal Pro Payment Gateway on multiple websites you might experience “Duplicate Invoice ID Supplied” error.
 There are really two ways how you can solve that problem.

1st – Modify your PayPal settings (not the best option).
 2nd – Add unique “invoice prefix” (best option).

### Solve Duplicate Invoice ID supplied Error by changing your PayPal Settings

In order for you to be able to accept multiple payments for the same invoice you need to turn that setting on in your PayPal account.

To do so go to:
 Account Settings

Payment Preferences

Click “Update” next to block payments

Select “No” under Block accidental payments: You may prevent accidental payments by blocking duplicate invoice IDs

Done! Now you can accept multiple payments for the same invoice.

### Add unique “invoice prefix” (Better Option)

Now, the option that we suggest is adding a “unique invoice prefix” for each of the websites that you are using WooCommerce PayPal Pro Payment Gateway on.

To do so go to “Plugin Editor”: in your WordPress Admin Menu

- Select WooCommerce PayPal Pro from the dropdown
- Select the file woo-paypal-pro-gateway-class.php
- Scroll down to the follow line (line number around 406) that has the following `'INVNUM' => apply_filters( 'wcpprog_invnum_woo_order_number', $this->order->get_order_number() ),`
- And change it to the following: `'INVNUM' => "Your-Unique-Prefix-Here" . $this->order->get_order_number(),`
- IMPORTANT! DO NOT USE ANY SPACES OR SPECIAL CHARACTERS IN YOUR INVOICE PREFIX

Done! Now your invoice will have custom invoice prefix and you no longer should be getting Duplicate Invoice ID Error.

[PrevPreviousMultiple H1 Tags On a Page is OK in SEO](https://www.marketing1on1.com/multiple-h1-tags-on-a-page-is-ok-in-seo/)

[NextMeta Title and Meta Description SEO GuideNext](https://www.marketing1on1.com/meta-title-and-meta-description-seo-guide/)

#### Let Us Help You Get More Customers:

### Blog Categories:

## FROM THE BLOG:

[Landing Page Best Practices: Anatomy of a High-Converting Page](https://www.marketing1on1.com/landing-page-best-practices/)

[READ MORE about Landing Page Best Practices: Anatomy of a High-Converting Page](https://www.marketing1on1.com/landing-page-best-practices/)

[Online Reputation Management for Small Businesses: The Complete Guide](https://www.marketing1on1.com/online-reputation-management-small-business/)

[READ MORE about Online Reputation Management for Small Businesses: The Complete Guide](https://www.marketing1on1.com/online-reputation-management-small-business/)

[How to Get Your Business Recommended by ChatGPT](https://www.marketing1on1.com/get-business-recommended-by-chatgpt/)

[READ MORE about How to Get Your Business Recommended by ChatGPT](https://www.marketing1on1.com/get-business-recommended-by-chatgpt/)

[Social Media Marketing for Small Businesses: A Practical Playbook](https://www.marketing1on1.com/social-media-marketing-small-business/)

[READ MORE about Social Media Marketing for Small Businesses: A Practical Playbook](https://www.marketing1on1.com/social-media-marketing-small-business/)

[How Law Firms Get Cases Online: Where Clients Actually Find a Lawyer](https://www.marketing1on1.com/how-law-firms-get-clients-online/)

[READ MORE about How Law Firms Get Cases Online: Where Clients Actually Find a Lawyer](https://www.marketing1on1.com/how-law-firms-get-clients-online/)

[Roofing Marketing Report: How to Track Leads, Costs, and ROI](https://www.marketing1on1.com/roofing-marketing-report-how-to-track-leads-costs-and-roi/)

[READ MORE about Roofing Marketing Report: How to Track Leads, Costs, and ROI](https://www.marketing1on1.com/roofing-marketing-report-how-to-track-leads-costs-and-roi/)

[Using SEO Data to Shape Your Business Strategy](https://www.marketing1on1.com/using-seo-data-to-shape-your-business-strategy/)

[READ MORE about Using SEO Data to Shape Your Business Strategy](https://www.marketing1on1.com/using-seo-data-to-shape-your-business-strategy/)
