Test payment

Create an invoice via a form and watch it progress through states in real time.

Route: /test-payment and /test-payment/[id].

This page exists to exercise the full flow without writing any API-client code. The form calls the same POST /api/invoices your backend will call.

What's on the page#

  • Invoice create form — merchant, fiat amount, fiat currency, crypto currency, network, TTL, external_id, description, metadata.
  • On submit — redirects to the invoice's detail route showing:
    • Scannable QR with the payment URI (see Payment URIs).
    • Deposit address (copy button).
    • Expected crypto_amount.
    • Countdown to expires_at.
    • Live status section with TanStack Query polling.
  • Keep a dedicated test merchant with a tunnel-backed webhook URL.
  • Use this page when you want to reproduce a bug on a clean invoice without staging your full checkout.
  • Use this page to verify signature verification on your side by sending from a fresh secret.

See also#

Screenshot placeholder.