For MerchantsRecover
Link orders to disputes
How Chargeflow finds the store order behind a processor dispute, and which value to put in metadata.order_id for WooCommerce and Shopify.
Chargeflow attaches the matching store order (products, customer, shipping, refunds) to a dispute by reading one identifier from the payment. For Stripe payments that identifier is metadata.order_id.
How linking works
- The store is connected in Chargeflow.
- The payment carries
order_id. - The dispute arrives.
- Chargeflow fetches that order from the store and adds it to the evidence.
What to put in order_id
| Store | Value | Example |
|---|---|---|
| WooCommerce | The numeric order ID, no prefix | 1234 |
| Shopify | The payment ID shown on the order's transaction, unchanged, no # | SHOPIFY_PAYMENT_ID |
Where to set it
Set metadata.order_id on the charge, not only on the PaymentIntent. You can keep your own metadata keys alongside it, but only order_id is used for linking.
Without it
WooCommerce disputes are not linked to an order. Shopify falls back to best-effort matching on customer and payment details, which is less reliable. You can still attach order data yourself with Enrich a dispute.
Next steps
Was this page helpful?