basalt / subscriptions/src / billingRoutes
Function: billingRoutes()
> billingRoutes(options): BasaltRoute[]
Defined in: subscriptions/src/plugin.ts:233
Hosted billing routes for the current tenant: POST /billing/checkout (subscribe via the gateway's hosted page) and POST /billing/portal (self-service management). Both return { url } to redirect to. The success/cancel/return URLs are configured here; the request body may override them per call, but only with URLs on the configured origins (or allowedRedirectOrigins).