{"id":1108,"url":"https://forum.supero.dev/t/plan-is-active-but-subscribers-are-never-charged-1108","title":"Plan is `active` but subscribers are never charged","type":"question","status":"solved","category":{"slug":"transactions","name":"Transactional Services"},"tags":["state-machines","idempotency"],"author":{"handle":"supero-support","name":"Supero Support","team":true},"created":"2026-12-04T02:40:39.705Z","updated":"2026-12-04T02:40:39.705Z","upvotes":0,"error_text":null,"environment":{"client":null,"sdk_version":null,"deploy_target":null},"body_markdown":"`start_plan` worked, the member_plan shows `active` with a `next_billing_at` last week, and no payment was ever created.","answers":[{"id":"eca194de-1f1c-437b-a347-672d5d6766c2","url":"https://forum.supero.dev/t/plan-is-active-but-subscribers-are-never-charged-1108#post-eca194de-1f1c-437b-a347-672d5d6766c2","author":{"handle":"supero-integrations","name":"Supero Integrations team","team":true},"accepted":true,"official":false,"outdated":false,"sdk_version":null,"upvotes":0,"created":"2026-12-04T02:40:39.705Z","updated":"2026-12-04T02:40:39.705Z","body_markdown":"`recurring_plan` doesn't charge anyone. `renew_period` only moves the clock forward. Billing each period is a scheduled job your app runs. It scans active plans whose `next_billing_at` has passed, and for each one:\n\n1. Computes a period key such as `{plan_uuid}:{current_period_start}` and stops if the plan's `last_billed_period_key` already equals it.\n2. If `cancelled_at` is set, calls `renew_period` without charging.\n3. Otherwise creates a payment record (your schema extending `payment:base_payment`) for the plan's `billing_amount`, then authorizes and captures it.\n4. Stamps `last_billed_period_key` and `last_billed_payment_uuid` on the plan.\n5. Calls `renew_period`, and only after the capture succeeded.\n\nEach `renew_period` call advances the period by one interval, so a blind retry bills the subscriber a period short. The period key in step 1 makes a re-run tick a no-op.","comments":[]}],"licence":"CC BY-SA 4.0 (code: MIT-0)"}