How Subscription Works
To use our subscription features, you will need to create a payment plan via our API or from your dashboard. Then, subscribe a customer to the plan by specifying the plan ID the first time you charge the customer. We’ll handle subsequent charges when the billing is due.Subscriptions are tied to a customer’s email address and cannot be changed afterwards. This means that if a customer changes their email address on your app, you’ll need to cancel any existing subscription and create a new one with the new email.
If we attempt to charge a customer and it fails three consecutive times, we’ll cancel the user’s subscription.
Creating a Payment Plan
To create a payment plan, you’ll need to specify these details:
Once you’ve got these details, call our create payment plans endpoint to create a new payment plan. Here’s an example using our backend SDKs:
Adding a Customer to a Subscription
To add a customer to a subscription, specify the payment plan ID when charging the customer for the first time. This works regardless of how you’re charging your customers—Inline, Standard, HTML checkout, or direct card charge.The
currency you specify when charging the customer must be the same as the currency you specified when creating the payment plan.Dynamic Amounts
When you want to charge customers different amounts on the same plan, or charge a different amount for the first month (for example, as a launch promo), you can do this by setting theamount when charging the customer. Here are your options:
- To charge a different amount per customer: Don’t set
amountwhen creating the payment plan. Theamountyou set when charging the customer will be used for that customer’s subscription. - To charge the customer a different amount the first time, and a standard amount for subsequent payments: Specify the standard
amountwhen creating the payment plan, and specify the customamountwhen charging the customer. We’ll charge the customer the custom amount for the first payment, and the standard amount on the plan for subsequent payments.
Cancelling and Activating
Cancelling a subscription can happen in one of three ways:- A customer can cancel their subscription using the cancellation link in our email reminders. You can disable this in the Account Settings page of your dashboard.
- You can cancel an individual customer’s subscription, either from the Payment Plans page on your dashboard or via the cancel subscription endpoint.
- You can cancel an entire payment plan, which will cancel all associated subscriptions. You can also do this from the Payment Plans page on your dashboard or via the cancel payment plan endpoint.