Subscriptions, invoices & the portal
The subscription lifecycle and a self-serve billing portal come built in.
The customer portal
Larz serves /larz/account โ customers see active subscriptions, cancel them,
view a credit balance, and download invoice receipts. No code required.
Cancel
app.money.cancel(subject, "plan:pro") class=com># at period end (keeps access)
app.money.cancel(subject, "plan:pro", immediate=True) class=com># revoke now
Invoices & receipts
Every payment records an invoice; a receipt renders at /larz/invoice/<id>
and is listed in the portal.
Entitlement events
Hook grants and revocations โ e.g. to send a welcome email or provision resources:
@app.money.on_grant
class=kw>def welcome(subject, sku):
app.jobs.enqueue(send_welcome_email, subject)
@app.money.on_revoke
class=kw>def offboard(subject, sku):
...