Payments run through Stripe. In a practice workspace checkout is simulated.
- Connect the merchant (integrations key):
POST /v1/payments/merchantwith HTTPS return origins and a deposit in basis points (10000 = full payment, 2500 = 25%). Poll the returned operation and send the owner to the hosted onboarding link. - Start checkout (operator or storefront):
POST /v1/payments/checkoutwith the order ID andamount(deposit,fullorremaining). PollGET /v1/payments/operations/{id}until it's open and has a shopper URL. - In practice mode, complete it with
POST /v1/payments/simulate(paidorexpired). - Reconcile with
POST /v1/payments/reconcile, then read the order's confirmed status. - Refund with
POST /v1/payments/refundandamountCents; omit it to refund the refundable balance.
Payments are recorded in a ledger (GET /v1/payments), with refunds as negative entries.