Add a payment link to an invoice or proforma invoice so the customer can open the payment page for the linked WooCommerce order. How you enable the link and when it appears depend on the invoice template editor you use.
Enable the payment link in classic templates (PRO)#
- Go to Invoices → Settings → WooCommerce → General.
- Enable Link to order checkout.
- Click Save changes.
The link appears as Pay for this order on documents linked to an existing WooCommerce order when both of the following conditions are met:
- The document payment status is not Paid.
- The order status is Pending payment, On hold, or Failed.
The link is not displayed for other order statuses, including Processing, Completed, and Cancelled, or when the document is marked as paid.
The example below shows a payment link on a document:

Add a payment link in the Gutenberg invoice editor#
If (Beta) Gutenberg Invoice Editor is enabled, the Link to order checkout setting is hidden. Add a Payment link block to the active invoice template instead, then save the template.
The block uses a different visibility rule from classic templates: it is removed from the generated document when the linked WooCommerce order is paid or cannot be found. It does not use the classic template's three-status list or check the document's payment status.
A visible link does not guarantee that WooCommerce will accept payment for the order. The payment page checks whether the order can still be paid and which payment methods are available.
What happens when the customer clicks the link?#
The link opens the WooCommerce payment page for the order. WooCommerce controls access to that page:
- Orders assigned to a customer account: a logged-out customer is prompted to sign in to the account associated with the order before continuing.
- Guest orders: a shop account is not required. WooCommerce may ask the customer to verify the billing email address before displaying the payment form.
Read more about customer verification in the WooCommerce documentation on paying for orders.
Why is the link missing or payment unavailable?#
- Check that the document is linked to an existing WooCommerce order. A standalone document without an order cannot provide an order payment link.
- For classic templates, check Link to order checkout, the order status, and the document payment status.
- For Gutenberg templates, check that the active template contains a Payment link block and that the order is not paid.
- If the link opens but payment is unavailable, check whether WooCommerce allows payment for the order's current status and whether a suitable payment method is available. This is particularly relevant to orders placed On hold.
Link visibility is checked when the document is rendered. A PDF already downloaded or sent to a customer does not change when the order status changes. WooCommerce still checks the order when the customer opens the payment link.
