Skip to main content
Paste this prompt into your coding agent to build a checkout where the buyer pays in local currency and the merchant receives stablecoin. The agent builds a payment page in your app, creates one on-ramp per order, shows each buyer the details for their local rail, and marks the order paid only when the stablecoin has been delivered.

Before you start

  • A Sandbox API key. See Authentication.
  • An answer on whose checkout this is: your own goods, or other merchants’ goods. See Nested payments.
  • A webhook endpoint registered under Developers > Webhooks in the Dashboard. See Webhooks.

Prompt

Prompt

How to use

  1. Decide whether the checkout sells your own goods or other merchants’ goods before you run this. The second means onboarding every merchant as its own customer.
  2. Create the sandbox key and register the webhook endpoint yourself, pointing at a tunnel to your machine, before you run the sandbox script.
  3. Review the agent’s list of unconfirmed fields and its refund note, and decide each one with whoever owns compliance and support.

What the prompt builds

Lumx has no hosted checkout, widget, or payment link. The prompt has the agent build the payment page in your own app from the on-ramp’s state.payment.

Errors to expect

These codes come from the errors catalog, for the resources this prompt uses. Match on code, not on message.

Transactions

Transaction types and status progressions.

Autoconversion rules

Convert every deposit with a standing rule.

Integrate on-ramps from fiat to stablecoin

Take fiat in and deliver stablecoin to the customer’s wallet.

Integrate autoconversion rules

Convert every deposit to stablecoin with a standing rule.