|

How to Accept Invoice Payments in WooCommerce with Name Your Price

TL;DR: Name Your Price lets one WooCommerce product accept any invoice amount, so you don’t build a fixed-price product per invoice. Create a single virtual “Pay Your Invoice” product with Name Your Price enabled, then on its Name Your Price tab set the field label to “Invoice amount” and the button to “Pay invoice”. Capture the invoice number through the order-notes field, WooCommerce Product Add-ons, or a free checkout-field plugin. Clients pay through your existing gateway (Stripe, PayPal, Square, and most others support variable amounts).

You send invoices to clients, and you’d like them to pay through the WooCommerce store you already run, not through a separate invoicing tool or one-off payment links. If you’ve looked into it, you’ve probably spotted the obvious problem: WooCommerce products have a fixed price, but every invoice is a different amount.

That’s exactly what Name Your Price solves. By the end of this article you’ll have a single “Pay Your Invoice” product on your store. Clients enter the invoice amount, attach a reference number, and pay through whatever gateway you already use. No new product for every invoice, no separate billing portal to maintain.

This setup works equally well for agencies invoicing project milestones, contractors collecting progress payments, B2B sellers chasing net-30 invoices, and trades businesses billing for variable jobs.

What we’re building

One product, configured to accept any amount, paired with a way to capture the invoice number on the order:

  • A virtual product called “Pay Your Invoice” (or whatever name your clients will recognize)
  • Name Your Price enabled, so the price is whatever the client enters
  • Optional minimum and maximum amounts to catch typos and spam
  • Wording that fits: “Invoice amount” above the field and “Pay invoice” on the button
  • A way for the client to enter their invoice number, so you can match the payment back to your books

Before you start

  • A WooCommerce store, running
  • Name Your Price 4.0.0 or later, installed and active. Per-product wording arrived in 4.0.0.
  • A payment gateway that supports variable amounts (Stripe, PayPal, Square, and most major gateways do)
  • Five minutes to make a setup decision about invoice numbers (covered in Step 4)

Step 1: Create the invoice payment product (~3 minutes)

In your WordPress admin, go to Products → Add New and give the product a clear, client-facing name. “Pay Your Invoice” is a safe default. “Bill Payment” works too. Use whatever your clients will recognize when you send them the link.

Leave the product type as Simple product. Then, in the row of checkboxes next to the product type in the Product data panel:

  1. Tick Virtual. Invoices aren’t shipped, and this stops WooCommerce from asking for a shipping address at checkout.
  2. Tick Name Your Price. A Name Your Price tab appears in the panel, and the Regular price field leaves the General tab, because the client sets the amount.

Add a short description explaining what the page is for, in your own voice. Something like: “Use this page to pay an invoice from us. Enter the amount due, add your invoice number at checkout, and pay with your usual card or account.” Keep it short. It sets expectations for clients who land on the page without context.

Don’t publish yet. The price settings are next.

Step 2: Set the minimum and maximum (~3 minutes)

Open the Name Your Price tab. Its Prices section holds everything that controls what clients can pay. None of it is required, and for an invoice product the right choices differ from a typical Name Your Price product:

  • Suggested Prices: leave this empty. Suggested prices show recommended amounts on the product page. Every client owes a different amount, so a suggestion would only anchor them to the wrong number.
  • Minimum Price: optional. Set it to block test transactions and accidental zero-dollar checkouts. A minimum of $1 catches the common spam pattern. Don’t set it higher than the smallest invoice you’d ever issue.
  • Hide Minimum Price: if you set a minimum, tick this. Otherwise the product page shows “Minimum price: $1.00.” under the amount field, which adds noise without helping anyone.
  • Maximum Price: optional but worth setting. A maximum catches typos, like a client meaning to pay $750 and entering $7500. Set it comfortably above your largest expected invoice.

With no suggested prices, clients see an empty field and type the amount from their invoice.

Step 3: Change the wording clients see (~2 minutes)

By default, the field on the product page is labeled “Name your price” and the button says “Add to cart”. For an invoice, you want “Invoice amount” and “Pay invoice”, so clients know exactly what to enter and what happens next.

Since Name Your Price 4.0.0, you can change this wording for the invoice product alone, so any other Name Your Price products keep theirs. On the product’s Name Your Price tab, select Display:

  • Hide quantity input: tick it. Each payment covers one invoice, and a quantity box would let a client pay twice the amount by accident.
  • Call to action label: the heading above the amount field, for example “Invoice amount” or “Amount due”.
  • Single product button text: the button on the product page, for example “Pay invoice”.
  • Shop button text: the button on shop and category pages, for example “Pay invoice”.

Leave the other fields empty. The suggested price and minimum price text won’t show anyway, because you added no suggested prices and hid the minimum.

If the invoice product is your only Name Your Price product, you can set the same wording store-wide instead. Go to WooCommerce → Settings → Name Your Price and change Name Your Price Text and Add to Cart Button Text for Single Product. Those settings apply to every Name Your Price product on the store.

Step 4: Decide how clients enter their invoice number (~5 minutes)

This is the one decision worth thinking about before you publish. Without an invoice number on the order, you’ll spend time matching payments to invoices in your bookkeeping. There are three reasonable ways to capture it. Pick based on how often you invoice and how polished you want the experience to be.

Option A: Built-in order notes field

The simplest path. The standard WooCommerce checkout already has an “Order notes” field. Tell clients to enter their invoice number there, either in the product description (“Please include your invoice number in the order notes at checkout”) or as a line on the invoice itself.

  • Pros: zero plugins, zero configuration, works immediately
  • Cons: the field is labeled “Order notes” and is optional, so some clients will miss it. The invoice number lands in a free-text field, so you’ll read notes by hand instead of seeing a structured field on the order

Best for: low invoice volume (a few per month or fewer), or when you’re testing the setup before committing to a paid extension.

Option B: WooCommerce Product Add-ons

The cleanest experience. Product Add-ons is a paid WooCommerce extension that adds custom fields to individual products. You’d add a single required text field labeled “Invoice number” right on the Pay Your Invoice product page.

  • Pros: the field is clearly labeled, sits next to the amount field, and can be required so clients can’t check out without it. The invoice number appears as its own line on the order, easy to spot in the admin and in customer emails
  • Cons: Product Add-ons is a paid extension. If you don’t already use it for something else, the cost adds up against your invoice volume

Best for: regular invoicing (weekly or more), or when invoice numbers are critical to your accounting workflow.

Option C: A free checkout-fields plugin

Several free WordPress plugins add custom fields to the WooCommerce checkout. Examples include Flexible Checkout Fields and Checkout Field Editor (free tier). You’d add an “Invoice number” field that shows at checkout for every order, or only when the cart contains the invoice product.

  • Pros: a dedicated, labeled field, for free
  • Cons: more setup than the built-in option, and admin polish and conditional logic vary by plugin. Some free plugins push you toward a paid version for showing the field conditionally

Best for: you want a labeled field but don’t want to pay for Product Add-ons, and you’re comfortable configuring a third plugin.

Tip: Whichever option you pick, mention the requirement clearly in the product description and on the invoice itself. The cleanest field in the world doesn’t help if the client doesn’t know to look for it.

Step 5: Publish and test (~5 minutes)

Publish the product. Open its page in a private browser window so you see it the way a client would.

Check that:

  1. The field shows your label (“Invoice amount” or whatever you chose) and the button shows your text
  2. An amount below your minimum shows an error and greys out the button. With the minimum hidden, the error reads “Please enter a higher amount.”
  3. An amount above your maximum shows “Please enter less than or equal to” followed by your maximum
  4. A normal amount goes through checkout (use your gateway’s test mode, or pay a small real amount you can refund)
  5. The invoice number lands where you expected: in the order notes, in the custom field, or wherever your chosen option puts it
  6. The order confirmation email shows the amount and invoice number clearly

If the new wording doesn’t show, a page caching plugin is the most common culprit. Clear its cache and reload.


A few things worth knowing

Tax handling. WooCommerce calculates tax on whatever amount the client enters, the same way it would on any other product. If your invoices already include tax (you’ve calculated and shown it on the invoice), set the product’s Tax status to “None” so WooCommerce doesn’t add tax on top. If your invoices are pre-tax and you want WooCommerce to add tax at checkout, leave Tax status as “Taxable” and configure your tax rates as normal.

One invoice per order. Stick to one invoice per checkout, not one cart with several invoices. The order record stays clean, the invoice number ties to one payment, and refunds and disputes are unambiguous. If a client needs to pay two invoices, they should check out twice.

Recurring or retainer billing. This setup is for one-off amounts. If you bill clients monthly retainers or scheduled installments, you’re looking at WooCommerce Subscriptions territory, which is a different setup. Name Your Price works with it too, as How to Accept Recurring Donations in WooCommerce with Name Your Price shows.


Frequently asked questions

Do I need a separate product for each invoice?

No. One Name Your Price product accepts any amount a client enters, so a single “Pay Your Invoice” product covers every invoice you send. You never create a new product per invoice.

Which payment gateways work with this?

Most major gateways, including Stripe, PayPal and Square. Name Your Price passes the amount the client enters to checkout as the product price, so any gateway that charges a variable amount works without extra setup.

How do I stop clients paying $0 or a test amount?

Set a Minimum Price on the product’s Name Your Price tab, such as $1. Name Your Price checks the minimum on the product page and blocks lower amounts before the client reaches checkout. Tick Hide Minimum Price to keep that floor off the product page.

How do I change “Name your price” to “Invoice amount”?

Open the product’s Name Your Price tab, select Display, and enter “Invoice amount” in Call to action label. Set Single product button text and Shop button text to “Pay invoice” while you’re there. The change applies to that product only. To change it for every Name Your Price product, use WooCommerce → Settings → Name Your Price instead.

How do I match a payment back to a specific invoice?

Capture the invoice number on the order. Three methods work: the built-in WooCommerce order notes field (free, no setup), WooCommerce Product Add-ons (paid, adds a required “Invoice number” field on the product page), or a free checkout-field plugin. Pick based on how often you invoice.

Can a client pay two invoices in one checkout?

Run one checkout per invoice. A single invoice per order keeps the invoice number tied to one payment and makes refunds and disputes unambiguous. Ask clients with two invoices to check out twice. Ticking Hide quantity input also stops a client paying the same amount twice by accident.

Does this handle recurring or retainer billing?

Not this setup, which is for one-off amounts. Scheduled or monthly billing needs WooCommerce Subscriptions, which Name Your Price also works with.

Is the amount the client enters taxed?

WooCommerce calculates tax on the amount entered, following the product’s Tax status. If your invoices already include tax, set Tax status to “None”. If they’re pre-tax, leave it “Taxable” and configure your rates as normal.


What’s next?

If you run into anything unexpected setting this up, the Name Your Price documentation covers the full plugin, and our support team is one ticket away.

Similar Posts