Marketplace

Subscriptions

Other

Plans, trials, subscribe/cancel/upgrade — over the payment plugin.

togo-framework
bash
togo install togo-framework/subscriptions

Install

bash
togo install togo-framework/subscriptions
<h1 align="center">togo · subscriptions</h1>

Subscription management for togoplans, 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/plansList plans
POST/api/plansCreate a plan ({name, price, currency, interval, features})
GET/api/subscriptions?user_id=A user's subscriptions
POST/api/subscriptionsSubscribe ({user_id, plan_id, trial_days})
POST/api/subscriptions/{id}/cancelCancel
POST/api/subscriptions/{id}/changeUpgrade/downgrade ({plan_id})
Rows per page
1–6 of 6
Page 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> &nbsp;·&nbsp; <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>