> ## Documentation Index
> Fetch the complete documentation index at: https://docs.meum.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Checkout flow

> WooCommerce checkout to Meum hosted checkout flow.

## Flow

1. Customer selects **Pay with Crypto** at WooCommerce checkout
2. Plugin calls `POST /v1/invoices` with Woo order ID as `external_order_id`
3. Order status set to `on-hold` with awaiting-payment order note
4. Order meta saved: `_stablecoin_invoice_id`, `_stablecoin_checkout_url`
5. Customer redirected to `https://pay.meum.io/{invoiceId}`
6. Customer completes crypto payment on hosted checkout
7. Meum sends `invoice.paid` webhook to WooCommerce
8. Plugin calls `$order->payment_complete()` and adds payment received order note

## Redirect behavior

Plugin returns `{ result: 'success', redirect: checkout_url }` — full redirect to Meum hosted checkout.

## Related pages

* [Order status mapping](/woocommerce/order-status-mapping)
* [How Meum payments work](/introduction/how-payments-work)
