Testing
Try the whole flow on Repp's demo, then build against your test keys and a test business before asking for live keys.
The demo
embed.dev.repp.co.il/demo is a made-up business system with the real SDK in it: six classes of this week, each with its status chip and a "find a substitute trainer" button, the connect card, and a log of the events it hears. Its partner is rpk_test_demo, already connected to Repp's own test business.
The demo, the test keys and the test business live on Repp's test site, where payments are pretend. On production the demo answers that it is off.
Your test keys
- Use
rpk_test_…in your page andrsk_test_…on your server, and register the origins of your test environment. - Your pages on
http://localhostwork with a test key without registering. - We give you a test business on Repp's test site to connect to.
Before you ask for live keys
- Your server builds every session from its own data: the business and the person from your sign-in, never from the browser.
- Each role of your system maps to
owner,managerorstaffas it should. fetchClientSecretthrows when your server says no, and your page handlesload_errorandsession_expired.- Your webhook endpoint verifies
Repp-Signatureon the raw body, answers 2xx fast, handles each eventidonce and skips an event older than the last one applied. Try it withPOST /partner/v1/webhook-endpoint/test. - The
room.booking_*webhooks block and free rooms in your calendar, keyed by booking and date;room_bookingsandroom_booking_changedonly refresh an open page. shutdown()runs when a person signs out.- Your Content Security Policy lets Repp's script and frames in (see Security).
Try it is not offered on Sessions: it needs your secret key, which belongs on your server only. Contact us for live keys.