window.churnkeynamespace so that you can later initialize the offboarding flow for your customers. Place it in the HTML
window.churnkey.init('show'). Typically, you will attach an event listener to a "cancel" button.
customerIdparameter, you'll need to pass in
subscriptionIdas shown below. This approach is useful when customers have multiple subscriptions and you want precise control over exactly which subscription is being paused, discounted, or canceled. If you don't support multiple subscriptions and have no intention of doing so, the approach described in the next section might be appropriate.
subscriptionIdparameter while still including the required
customerIdparameter. This is useful when a customer has multiple plans and you want offers to apply to all current billing.
livemode, changes will hit your production Stripe environment. If you're not ready for live data, you can just set mode to
testand Churnkey will work with your Stripe account test data.
appIdis displayed within the code snippet we provide in your account settings. Simply navigate here to locate it https://app.churnkey.co/settings/embed.