Every request on this page goes to
https://connect.laces.run/v1, from
your server, with Authorization: Bearer <token>. Laces must first turn
on payments for your organization, and your API key needs payments:write,
orders:write and orders:read. Never send an
organization id: Laces takes the organization from the token. The client
secret stays on your server, never in a browser or an LLM chat. There is
no sandbox: a pay request moves real money.What you can test without moving money
A payment you create and never pay appears in your organization’s payments and
later becomes
expired.
One real payment
- Ask whoever owns the Laces account first. It is real money.
- Use the smallest price you are happy to pay and your own phone. The
example number in these docs is
0763494235: replace it. Never use a made-up number. - Make one payment, then stop. Check that: the prompt arrived,
order.paidarrived and your check of the signature passed, you fulfilled once, the receipt reads well, and the payment shows in the Laces app. - Do the same for card if you offer it, and check the buyer came back to your success page.
- If you want it back, tap Request a refund on the payment in the Laces app
or email support@laces.run with the order code and the amount, and watch for
order.refunded. Laces handles the refund. It returns the price, not the fee, and a mobile money payout has a cost that you pay: see Refunds.
Checklist
Access
- Laces has turned payments on (
POST /payments/quoteanswers200) - The key has
payments:write,orders:writeandorders:read, and the token is newer than that change - The client secret and webhook secret are only on your server
- Your live origin is in Return URL domains;
localhostis removed - Default site and return URLs are saved on the key, if you use them
Paying
- The buyer sees the total from the quote or
order.total, never your own sum - You send the item price, not a price with the fee inside
- The method picker is built from
payment_methods - Idempotency keys are saved before each call and reused on retries
- Pay is never retried automatically, and never called while a payment is live
- You read the old order before creating a replacement payment
Fulfilling
- The webhook checks the signature on the raw body, and skips an
X-Laces-Deliveryit has finished - You fulfil only when a server-side read says
paidnow - You compare
requested_amountandrequested_currencywith your price - Fulfilling twice is impossible, and two paid orders for one reference are flagged
- A refund undoes a purchase only if it is of the order that fulfilled it, and only once
- Nothing is released on
order.failedalone - The handler works without
event_idandregistrations - A late
order.paidafter a failure or expiry is handled - A job reads waiting orders, and lists payments until
next_cursorisnull
Your own side
- You send your own order confirmation; the Laces email is a payment receipt
- Stock or places are kept before payment and released by you
-
metadataholds ids, not personal data - Your terms say how refunds work, and link the Laces refund policy
- Your support contact is set on the organization: buyers’ emails show it
If something goes wrong
Note the order id, theX-Request-Id header and the time, and write to
support@laces.run. Never send a secret or a token.