Skip to content
Docs
Changelog

Billing proven on Workers and Node; RevenueCat account deletion and promotional grants

The same signed webhooks, checkouts and scheduled ticks now run against the built Worker and the Node server in CI, account deletion deletes the RevenueCat customer, and promotional entitlements grant Paid Access.

Markdown

  • Billing on Workers and on a Node server, tested together. pnpm test:billing:runtimes builds both targets and sends each the same signed Stripe, Polar, Pagar.me and RevenueCat deliveries, checkout, portal and Pix calls, an account deletion and a scheduled tick (the Worker's cron; jobs:run --once --production on Node), with local stubs for every provider API. Both must answer, call providers and store billing rows the same; they do. The e2e workflow runs it. See Payments.
  • Deleting an account deletes the RevenueCat customer. The deletion queues it in its own transaction; the cron calls RevenueCat's DELETE /v1/subscribers/{id}, retries with a backoff up to once a day, never blocks the deletion and records billing.customer_erased in the audit log. Store subscriptions are not cancelled by it. See RevenueCat.
  • Promotional entitlements grant Paid Access. A RevenueCat promotional grant (store promotional) counts in sandbox and production, never renews, and ends when revoked; its webhook is accepted on a sandbox server too.
  • Restore behavior. The template keeps RevenueCat's default, "Transfer to new App User ID", now documented as its choice.
  • Clearer store states in the app. A restore that finds nothing says so, and a failed plan load says the store could not be reached and loads the plans again on "Check subscription" instead of claiming nothing is for sale. Development builds turn on RevenueCat's debug logs. Copy in English, German, French and Brazilian Portuguese.
  • Go-live checklist per provider on Payments: keys, webhook URL on Workers or a Node server, plan ids and test mode.

PR #224

Edit on GitHubDocumentation is in English.
Cookie settings
We use essential cookies to make our app work. With your consent, we also use optional cookies to improve your experience.

Read our Cookie Policy and Privacy Policy.