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 saved:
_stablecoin_invoice_id,_stablecoin_checkout_url - Customer redirected to
https://pay.meum.io/{invoiceId} - 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.