Subscription Setup
The Subscriptions section in the left menu contains a list of all subscriptions created in the project. Here you can create new subscriptions, edit existing ones, and delete outdated ones.
Subscription List
When the module is opened, a table of all project subscriptions is displayed. In the list, you can see:
- Subscription Name.
- Payment Account linked to the subscription.
- Period — how often payment is required in days.
- Cost — the total price of the products included in the subscription.
- Actions — edit and delete.
Creating a Subscription
To create a subscription, click the "Create" button above the list and fill out the form:
- Name — the displayed name of the subscription.
- Marker — a unique string by which the subscription is identified in the API.
- Payment Account — select one of the created accounts of type
stripe,midtrans, orcustom. For information on creating accounts, see the payment accounts section. - Period (in days) — how often payment is required to renew the subscription. For example,
30for a monthly subscription,365for an annual one. - Products — select one or more products from the catalog. The total cost of the subscription is the sum of their prices. The list of available products is formed from the catalog.
After filling out the form, click "Save". The subscription will appear in the general list and will be available for processing through the API.
To fully set up a subscription, you will need:
- at least one payment account (
stripe,midtrans, orcustom) — this is selected in the "Selection of payment accounts" field; - products in the catalog — the cost of the subscription is based on their prices.
Without a payment account and products, the subscription cannot be saved with working parameters.
Editing a Subscription
To change a subscription, click the edit icon in the row of the desired subscription.
In edit mode, all the same fields are available for modification: name, payment account, period, and product composition.
Changing the price of one of the products included in the subscription will automatically recalculate the cost of all active subscriptions with that product. The new cost will be applied starting from the next billing period — the current paid period is not affected.
Deleting a Subscription
To delete a subscription, click the delete icon in the row of the desired subscription and confirm the action in the dialog box.
Deleting a subscription from the admin panel does not automatically cancel subscriptions already processed for users. Active stripe and midtrans subscriptions will continue to be billed until the end of the current period, after which they will not renew. Custom subscriptions will remain in the user's account until they are explicitly canceled.