Skip to Content
ReferenceReference

Reference

Complete technical specifications for the Unchurn widget API, token format, events, and error codes.

PageContents
Widget APIshowCancelFlow, closeCancelFlow, useUnchurn, createUnchurnHandler — full signatures, parameter tables, return shapes
Token formatHMAC token structure, claims, signing algorithm, signPayload, encodePayload, verifyAuthToken
EventsEvery widget-emitted event with payload shape — subscribe via window.unchurn.events.on
WebhooksInbound Stripe webhooks consumed by the Unchurn backend — event types and verification
Environment variablesAll environment variables required by the merchant’s server and browser
Error codesHTTP error codes returned by the widget session API and the token signing handler
Last updated on