Skip to content

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.interval is how it is billed.
  • taxAdded says that tax is added to the prices, and app, from billing.app, is the application to return to.

See What is set to happen.

The host's command

  • billing sync keeps the customer portal too, from the pricing spec. billing.portal sets its headline and links, or leaves it to the dashboard.
  • billing check reports, without changing anything, whether products, prices, the portal, the key's read access and the webhook endpoint are right.
  • billing listen prints the Stripe CLI's command for local development.

Upgrading

  1. Run the schema migration. sf_subscriptions gains billing_interval, next_kind, next_at, next_plan and next_interval. The text columns are required, with an empty default, and next_at is nullable, so existing rows need nothing. Every deployment runs it, since every query of subscriptions reads the columns.
  2. 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 sets billing.portal.dashboard
    • runs billing check
  3. A subscription canceled or downgraded before the upgrade shows it from its next event.

Free mode needs only the migration.