Flow
- Customer selects Pay with Crypto at WooCommerce checkout
- Plugin calls
POST /v1/invoiceswith Woo order ID asexternal_order_id - Order status set to
on-holdwith awaiting-payment order note - Order meta stores the Meum invoice ID and checkout URL for the customer to resume payment
- Customer redirected to hosted checkout (
checkout_url, e.g.https://pay.meum.io/inv_…) - Customer completes crypto payment on hosted checkout
- Meum sends
invoice.paidwebhook to WooCommerce - 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.