v0.45.0¶
Release Date: 2026-12-01
Billing says what is set to happen to a subscription, keeps the customer portal, and checks that the payment provider's account is set up. With payforge v0.3.0.
Fixed¶
The console said "Renews on" for a subscription that had been canceled or
downgraded. Nothing recorded either, so the plan was right and what people were
told was not. A console that does not know next now shows a cancellation.
What is next¶
- The billing API has
subscription.next: that the subscription ends or changes, when, and to which plan and interval.subscription.intervalis how it is billed. taxAddedsays that tax is added to the prices, andapp, frombilling.app, is the application to return to.
The host's command¶
billing synckeeps the customer portal too, from the pricing spec.billing.portalsets its headline and links, or leaves it to the dashboard.billing checkreports, without changing anything, whether products, prices, the portal, the key's read access and the webhook endpoint are right.billing listenprints the Stripe CLI's command for local development.
Upgrading¶
- Run the schema migration.
sf_subscriptionsgainsbilling_interval,next_kind,next_at,next_planandnext_interval. The text columns are required, with an empty default, andnext_atis nullable, so existing rows need nothing. Every deployment runs it, since every query of subscriptions reads the columns. - A deployment that takes payments also:
- subscribes its webhook endpoint to the
subscription_schedule.*events, before anyone downgrades - gives a restricted key read access to subscription schedules
- runs
billing sync, after comparing the portal's settings in the dashboard with what sync sets, or setsbilling.portal.dashboard - runs
billing check
- subscribes its webhook endpoint to the
- A subscription canceled or downgraded before the upgrade shows it from its next event.
Free mode needs only the migration.