“This order cannot be paid for” in WooCommerce: every refusal on the Pay for order page
The Pay for order page runs a short list of checks before it shows the payment form. Each failure has its own wording, and each one points to a different fix.
In this article13 sections
These messages appear on the Pay for order page, the page a customer reaches from a payment link. Before it shows the payment methods, WooCommerce checks that the link belongs to a real order, that the visitor may pay it, that the order still needs paying, and, for an order whose payment failed, that the products are still in stock. The first check that fails decides the message.
The wording tells you which check it was. The most common one names the order’s status, and that status is usually the whole answer.
The exact message#
This order’s status is “Cancelled”—it cannot be paid for. Please contact us if you need assistance.
The same failure can also read:
- This order cannot be paid for. Please contact us if you need assistance.
- Sorry, this order is invalid and cannot be paid for.
- Sorry, “Blue mug” is no longer in stock so this order cannot be paid for. We apologize for any inconvenience caused.
- Sorry, we do not have enough “Blue mug” in stock to fulfill your order (1 available). We apologize for any inconvenience caused.
- This order cannot be paid for.
Who sees it: Customers, as an error notice on the Pay for order page they reach from a payment link: the invoice email, the Pay button in My account > Orders, or a link the store sent. Store owners see it when they test a customer’s link while logged in. The page uses the classic layout even when the checkout page is built with the Checkout block. The short “This order cannot be paid for.” is the Store API’s wording, returned to headless or custom checkouts.
What WooCommerce checks#
When someone opens a link like /checkout/order-pay/123/?pay_for_order=true&key=wc_order_..., WooCommerce checks, in this order:
- The order exists and the key in the link matches it. If not: Sorry, this order is invalid and cannot be paid for.
- If the order belongs to a customer account and nobody is logged in, a login form appears instead, with Please log in to your account below to continue to the payment form.
- A logged-in visitor must be that customer. A guest order can be paid by anyone with the link; a logged-in visitor whose email differs from the order’s sees a warning first. If not: This order cannot be paid for. Please contact us if you need assistance.
- The order must need payment: status Pending payment or Failed, and a total above 0. If not, the status message names the current status.
- For an order that isn’t Pending payment, and whose stock hasn’t already been reduced, every product must still be in stock, and products with tracked stock and no backorders must have enough, after units held by other pending orders. If not, one of the two stock messages.
Pending orders skip the stock check because their stock is held while they wait. A Failed order gets the check because, by the time the customer tries again, someone else may have bought the last one.
Causes and how to fix each one#
1. The order no longer needs payment#
The status message appears whenever the order isn’t Pending payment or Failed. Processing or Completed means it was already paid. On hold usually means it’s waiting for a bank transfer or cheque. Cancelled often means WooCommerce cancelled it: unpaid orders placed at checkout are cancelled when the Hold stock (minutes) time runs out, and the customer clicked the link later.
Check: Open the order on WooCommerce > Orders and look at its status and its order notes. An automatic cancellation leaves the note “Unpaid order cancelled – time limit reached.”
Fix: If the customer should still pay, set the status back to Pending payment, update the order and send the link again with Order actions > Send order details to customer. Check stock first if the order had been cancelled.
2. The order total is zero#
An order needs payment only when its total is above 0. A Pending payment order with a total of 0 gets the status message, and it names Pending payment, which looks contradictory. It happens with free products, a 100% coupon, or an order created in the admin before items were added.
Check: Look at the order total on the order screen.
Fix: Add the missing items or prices and recalculate, or, if nothing is owed, set the order to Processing yourself.
3. You’re logged in as someone else#
Only the customer an order belongs to can pay it. A store owner testing a customer’s payment link while logged in as an administrator gets This order cannot be paid for, and so does a customer who is logged in to a different account from the one on the order.
Check: Open the link in a private browser window. If the order belongs to a customer, you’ll be asked to log in instead of seeing the error.
Fix: Ask the customer to log in with the account shown in the order’s Customer field, or change that field on the order to the right account.
4. The link is incomplete or belongs to another order#
The invalid message means the order doesn’t exist, or the key doesn’t match it. Links break when only part of the address was copied or pasted, when the order was deleted, or when something built the link from the order number shown to the customer rather than the order’s ID.
Check: Compare the link with the Customer payment page link on the order screen. The number after order-pay and the key= value must match exactly.
Fix: Send a fresh link with Order actions > Send order details to customer, or copy the Customer payment page link in full.
5. A product sold out after the payment failed#
For a Failed order, WooCommerce checks stock again before taking a second attempt. A product that is now out of stock gives the no longer in stock message. A product with tracked stock and no backorders gives we do not have enough when the stock left, minus units held by other pending orders, is less than the order needs.
Check: Open each product in the order and look at Quantity on its Inventory tab (for a variation, Stock quantity in the Variations tab).
Fix: Restock the product, allow backorders, or edit the order to remove or reduce the item, then send the link again.
Quick reference#
| Cause | How to check | Fix |
|---|---|---|
| The order no longer needs payment | Open the order on WooCommerce > Orders and look at its status and its order notes. An automatic cancellation leaves the note "Unpaid order cancelled – time limit reached." | If the customer should still pay, set the status back to Pending payment, update the order and send the link again with Order actions > Send order details to customer. Check stock first if the order had been cancelled. |
| The order total is zero | Look at the order total on the order screen. | Add the missing items or prices and recalculate, or, if nothing is owed, set the order to Processing yourself. |
| You're logged in as someone else | Open the link in a private browser window. If the order belongs to a customer, you'll be asked to log in instead of seeing the error. | Ask the customer to log in with the account shown in the order's Customer field, or change that field on the order to the right account. |
| The link is incomplete or belongs to another order | Compare the link with the Customer payment page link on the order screen. The number after order-pay and the key= value must match exactly. | Send a fresh link with Order actions > Send order details to customer, or copy the Customer payment page link in full. |
| A product sold out after the payment failed | Open each product in the order and look at Quantity on its Inventory tab (for a variation, Stock quantity in the Variations tab). | Restock the product, allow backorders, or edit the order to remove or reduce the item, then send the link again. |
Reproduced on a test store#
We set up each case below on a clean WooCommerce 11.2.1 store on 6 November 2026 and recorded exactly what it showed.
| What we did | What WooCommerce showed |
|---|---|
| WooCommerce > Orders > Add order: guest order, one simple product priced 10, status Pending payment. Copy the Customer payment page link. Change the status to Cancelled. Open the link logged out. | This order’s status is “Cancelled”—it cannot be paid for. Please contact us if you need assistance. |
| Same order with status Processing. Open the link logged out. | This order’s status is “Processing”—it cannot be paid for. Please contact us if you need assistance. |
| Pending payment order whose only item is a product priced 0, total 0. Open its payment link logged out. | This order’s status is “Pending payment”—it cannot be paid for. Please contact us if you need assistance. |
| Pending payment order assigned to customer A. Log in as customer B, or as an administrator, and open the link. | This order cannot be paid for. Please contact us if you need assistance. |
| Open a valid payment link with one character of the key= value changed. | Sorry, this order is invalid and cannot be paid for. |
| Simple product Blue mug, Track stock quantity on, stock 1, backorders not allowed. Order for 1 with status Failed and stock not reduced. Another order reduces the stock to 0. Open the failed order's payment link. | Sorry, "Blue mug" is no longer in stock so this order cannot be paid for. We apologize for any inconvenience caused. |
For developers#
The checks live in WC_Shortcode_Checkout::order_pay(). The statuses that can be paid come from a filter, so a store that takes payment for on-hold orders can add it:
add_filter( 'woocommerce_valid_order_statuses_for_payment', function ( $statuses, $order ) {
$statuses[] = 'on-hold';
return $statuses;
}, 10, 2 );The stock checks can be overridden with woocommerce_pay_order_product_in_stock and woocommerce_pay_order_product_has_enough_stock, and the whole needs-payment answer with woocommerce_order_needs_payment. Headless checkouts that post to /wc/store/v1/checkout/{id} get invalid_order_update_status with “This order cannot be paid for.” when the order doesn’t need payment.
Where this lives in WooCommerce 11.2.1:
includes/shortcodes/class-wc-shortcode-checkout.php,WC_Shortcode_Checkout::order_pay: Order and key, logged-in owner, needs_payment(), then stock for orders that aren’t pending. Each failure is printed as an error notice.includes/class-wc-order.php,WC_Order::needs_payment: True only for status Pending payment or Failed and a total above 0. Statuses come from woocommerce_valid_order_statuses_for_payment.includes/wc-user-functions.php,wc_customer_has_capability: pay_for_order is granted to the order’s own customer, or to anyone for a guest order.src/Blocks/BlockTypes/Checkout.php,Checkout::render: On the order-pay endpoint the Checkout block renders the classic [woocommerce_checkout] shortcode instead.src/StoreApi/Routes/V1/CheckoutOrder.php,CheckoutOrder::get_route_post_response: Store API wording when the order doesn’t exist or doesn’t need payment.src/StoreApi/Utilities/OrderController.php,OrderController::get_failed_order_stock_error: The same two stock messages, returned in Store API order responses.
Related WooCommerce errors#
- Sorry, we do not have enough “Blue mug” in stock to fulfill your order (2 available). We apologize for any inconvenience caused.
- Sorry, “Blue mug” is not in stock. Please edit your cart and try again. We apologize for any inconvenience caused.
- Invalid payment method.
Back to the WooCommerce error reference.
Frequently asked questions#
Why does it say the status is Pending payment when that status can be paid?
Because the order total is 0. WooCommerce only takes payment for orders with a total above 0, whatever the status.
Why can't I pay my customer's order to test the link?
Only the customer the order belongs to can pay it while logged in. Test the link in a private window, or create a test order for your own account.
The link worked yesterday. Why is the order cancelled today?
Unpaid orders placed at checkout are cancelled automatically when the Hold stock (minutes) time runs out. Check the order notes for “Unpaid order cancelled – time limit reached.”
How do I send the customer a new payment link?
Make sure the order is Pending payment or Failed, then choose Send order details to customer under Order actions and update the order. The email contains the payment link.
Does the Checkout block show these messages differently?
No. On the Pay for order page the Checkout block falls back to the classic checkout, so customers see the same wording.