Plans
Methods for handling plans.
listPlans v1.0.0 read products Types
Get a paginated list of plans for the store.
- ESM
- UMD
import { listPlans } from '@rechargeapps/storefront-client';
await listPlans(session, {
limit: 25,
sort_by: 'id-asc',
});
await recharge.plan.listPlans(session, {
limit: 25,
sort_by: 'id-asc',
});
getPlan v1.0.0 read products Types
Get a plan.
- ESM
- UMD
import { getPlan } from '@rechargeapps/storefront-client';
await getPlan(session, 123);
await recharge.plan.getPlan(session, 123);