https://connect.laces.run/v1. There are no test keys and no sandbox. You
build and test with the live keys from the Laces app (app.laces.run or laces.run/app), against your real
organization.
Set up a test event
1
Create a private event
In the Laces app, create an event just for testing, for example “API test
(do not register)”. Set its visibility to unlisted, so it never appears
on laces.run’s public listings, and open registration.
2
Add cheap tickets
Add a free ticket type (a total of 0 confirms without any payment) and,
if you need to test paid flows, one at a low price. If you sell by
distance, add a distance so you exercise that part of the form too.
3
Check payments are enabled
Your organization must be cleared to take payments before any order or
checkout session can be created, free ones included. Read the event over
the API:
payments_enabled: true means you’re ready; false means checkout
is refused with payments_disabled. Contact Laces if it stays false.The Partner API does list unlisted events: they belong to your
organization. Make sure your site doesn’t show the test event to the public
(filter it by
event_id), and close or end it when you launch.Test each flow
Every test order is a real order in your organization: it appears in your
dashboard and in order reads, and the buyer
email address you use receives a real confirmation. Use your own address, or
one at a domain you control.
Test payments on your own site
There is no sandbox here either, and no test mode:is_test_mode on the create
answer is always false, and test keys don’t exist.
POST /payments/quoteandPOST /paymentsmove no money.POST /orders/{orderId}/payon a mobile money payment sends a real prompt, and the card page takes a real card payment. Make one, then stop. Never put it in an automated test, and never let an LLM call it.- The examples in these docs use
0763494235. Replace it with your own number before you call pay. Never use a made-up number: it belongs to a real person. - A number can get 3 prompts an hour and 10 in 24 hours
(
429 payer_prompt_limit), so a test loop stops quickly. - A payment you never pay shows in the organization’s payments and later
becomes
expired. No webhook is sent for it.
Local development
You can develop on your own machine with your live keys:- Server-side calls (token, events, orders, pay, session reads) work from
anywhere. Keep the secret in a local
.envfile that is never committed. - Browser calls with the publishable key: add your dev server’s origin,
for example
http://localhost:3000, to Allowed domains. Onlyhttp://localhost:<port>andhttp://127.0.0.1:<port>are accepted over plainhttp, and the port is required. The app labels these “Local development domain: remove before launch”. - Hosted checkout and the embedded modal work end to end on
http://localhost:<port>with your live keys. Add the origin to Return URL domains for the hosted return, and to Allowed domains for the page that opens the modal. A newly added domain can take up to 5 minutes to pass the browser’s CORS check. - Webhooks need a public
httpsURL. Point a tunnel at your local receiver and register the tunnel URL; see Test your endpoint.