Cancel widget
One script that turns cancellations into second chances.
Install
Settings → Widget gives you a snippet to paste into your app:
<script src="…/cancel.js" data-key="pk_…"></script>
Then, where your "Cancel subscription" button lives, call:
ChurnhookCancel.open({ customerId, subscriptionId });
The Widget section also shows your public key and the API base URL (both copyable), and lets you pick the widget language, independent of your dashboard language.
What the customer sees
A small dialog, in your product, that runs the exit flow:
- Why are you leaving? — a short survey (too expensive, missing feature, switching tools…).
- A pause instead? — one or two months with collection paused; the subscription resumes on its own.
- Cancellation — if they proceed anyway, the cancellation goes through normally, and a win-back sequence can follow.
Answers land in Cancellations → Exit surveys.
Callbacks
ChurnhookCancel.open() accepts onAbort, onProceed, and onError handlers so your app can react: close a dialog, refresh the subscription state, log the outcome.
