Skip to main content

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.