# Rescue Orders With Failed Payments

> Finds this week's failed and unpaid orders, then sends fresh Payplug links for the ones you pick.

- Job: [Orders & fulfilment](https://storeagent.ai/mcp-recipes/job/orders/)
- What it does: Asks first: changes your store, only after you say yes
- Time saved: ~25 min vs doing it by hand
- Requires: StoreAgent (free plugin, MCP on every plan) + Payplug
- Works in: Claude, ChatGPT, Cursor and any MCP client connected to the store through StoreAgent MCP
- Web page: https://storeagent.ai/mcp-recipes/payplug-failed-payment-rescue/

## The prompt

```text
Find every WooCommerce order from the last 7 days with the status Failed or Pending payment that is more than 24 hours old. Skip customers who placed a paid order after that. List each one with the customer, the items and the total, biggest first. Ask me which ones to send a new payment link for. For each one I confirm, create a Payplug payment link with the same customer and items, then add a private note to the old order with the new order number. Give me each link with a short, friendly message I can send.
```

## What happens when you paste it

You: Find every WooCommerce order from the last 7 days with the status Failed or Pending payment that is more than 24 hours old…

Assistant: 9 orders failed or stayed unpaid this week, worth 1,284 EUR. 2 of those customers already paid on a new order, so 7 are left. The biggest is 312 EUR. Calling: `woocommerce/orders-query`, `payplug/create-payment-link`, `woocommerce/order-add-note`.

Assistant: This will make changes in WooCommerce. Do you want me to go ahead?

Assistant: You picked 5. Five new Payplug links were created, each old order has a note with its new order number, and five short messages are ready to send.

## Abilities this recipe calls

- **Find orders** (`woocommerce/orders-query`, read only, from WooCommerce): Finds orders by status, customer, email or date, with the items in each order.
- **Create a payment link** (`payplug/create-payment-link`, asks first, from Payplug): Creates an order for a customer and a Payplug link they can use to pay for it online.
- **Add an order note** (`woocommerce/order-add-note`, asks first, from WooCommerce): Adds a private note to an order, or a note the customer gets by email.

## Variations

Add one of these to the end of the prompt. Swap anything in [brackets] for your own details.

- Look back 14 days instead.
- Only include orders over 50 EUR.

## Related recipes

- [Are Stuck Tasks Holding Up My Orders?](https://storeagent.ai/mcp-recipes/booster-stuck-orders.md): Line up overdue Booster tasks with orders sitting in Pending or On hold, so you know where to look before customers ask.
- [Check Which Order Alerts Are Switched On](https://storeagent.ai/mcp-recipes/pushengage-order-alert-audit.md): Lists every PushEngage push and WhatsApp alert for WooCommerce order events, shows which are off, and matches them to your real order volume.
- [Find Late and Stuck Shipments](https://storeagent.ai/mcp-recipes/trackship-stuck-shipments.md): Every late or stuck parcel with the customer behind it, so you can reach out before they email you.

---

Part of the StoreAgent WooCommerce MCP Recipes directory: https://storeagent.ai/mcp-recipes/ (index for LLMs: https://storeagent.ai/mcp-recipes/llms.txt). Get StoreAgent free: https://app.storeagent.ai/sign-up/
