Marketplace
<h1 align="center">togo · subscriptions</h1>
<div align="center"> <h3>Premium sponsors</h3> <p> <a href="https://id8media.com"><strong>ID8 Media</strong></a> · <a href="https://one-studio.co"><strong>One Studio</strong></a> </p> <p><sub>Support togo — <a href="https://github.com/sponsors/fadymondy">become a sponsor</a>.</sub></p> </div>
Subscriptions
OtherPlans, trials, subscribe/cancel/upgrade — over the payment plugin.
togo-framework
bash
togo install togo-framework/subscriptionsInstall
bash
togo install togo-framework/subscriptionsSubscription management for togo — plans, subscribe / cancel /
change, trials, and status — built on the payment
plugin. Charges are delegated to whatever PaymentProvider is registered in the
kernel; with no payment provider installed it still manages subscription state.
Install
bash
togo install togo-framework/subscriptions
# usually alongside a payment provider:
togo install togo-framework/payment-stripe
Tables (plans, subscriptions) are created on boot.
API
Method | Path | Description |
|---|---|---|
| GET | /api/plans | List plans |
| POST | /api/plans | Create a plan ({name, price, currency, interval, features}) |
| GET | /api/subscriptions?user_id= | A user's subscriptions |
| POST | /api/subscriptions | Subscribe ({user_id, plan_id, trial_days}) |
| POST | /api/subscriptions/{id}/cancel | Cancel |
| POST | /api/subscriptions/{id}/change | Upgrade/downgrade ({plan_id}) |
Rows per page
1–6 of 6Page 1 of 1
Payment integration
The plugin looks up the payment service from the kernel container and, if it
satisfies the local Charger interface (CreateSubscription), creates a
provider-side subscription and stores the provider_ref. No hard import on
payment, so subscriptions builds and runs standalone.
MIT
<div align="center"> <h3>Premium sponsors</h3> <p> <a href="https://id8media.com"><strong>ID8 Media</strong></a> · <a href="https://one-studio.co"><strong>One Studio</strong></a> </p> <p><sub>Support togo — <a href="https://github.com/sponsors/fadymondy">become a sponsor</a>.</sub></p> </div>