Reference
Complete technical specifications for the Unchurn widget API, token format, events, and error codes.
| Page | Contents |
|---|---|
| Widget API | showCancelFlow, closeCancelFlow, useUnchurn, createUnchurnHandler — full signatures, parameter tables, return shapes |
| Token format | HMAC token structure, claims, signing algorithm, signPayload, encodePayload, verifyAuthToken |
| Events | Every widget-emitted event with payload shape — subscribe via window.unchurn.events.on |
| Webhooks | Inbound Stripe webhooks consumed by the Unchurn backend — event types and verification |
| Environment variables | All environment variables required by the merchant’s server and browser |
| Error codes | HTTP error codes returned by the widget session API and the token signing handler |
Last updated on