Billing 0.28.0: Subscribers who pay by invoice stay subscribed
Billing 0.28.0 fixes subscriptions paid by bank transfer: once the period’s invoice is paid, the subscription moves on to its next period within seconds, instead of staying past due and being cancelled.
Paying the invoice renews the subscription
A subscriber without a saved payment method gets the period’s invoice at renewal, and the subscription becomes past due until it is paid. Before 0.28, recording that payment did not help: the daily retry skipped a subscription with no card, so it never saw the invoice was paid, and when the grace period ran out the subscription was cancelled, paid.
Now the retry checks the invoice first. When the period’s invoice is paid in full, by Record Payment on the invoice page or by a payment provider, the subscription moves on to its next period, even when its last retry is due. A retry is queued at once, so this happens within seconds rather than the next day. While the invoice is still unpaid, nothing is counted as a failed attempt, so a subscriber paying by invoice has the whole grace period. A part payment, or paying an invoice of another period, does not move the subscription on.
Retries stay with their period
Each retry now belongs to the period it was queued for and does nothing once the subscription has moved on, so a late retry can’t charge a later period off its schedule. Without a card, the retry now makes the period’s invoice when there is none, as it does with a card, so voiding that invoice means the next retry issues a new one.
Upgrading
Billing 0.28 needs PhoenixKit 3.5 or later: update core first if you are on 3.4. Billing has no migration, and retries queued before the upgrade still run as before.
Full release notes: Billing 0.28.0
0.28.0 · 15 November 2026
A subscriber who pays by invoice instead of a card stays subscribed: paying the period’s invoice moves the subscription on to its next period. Core 3.5.0 is now the floor.
Upgrading. Needs core 3.5.0 or later: update core first if the host is on 3.4. Billing has no migration. Dunning jobs queued before the upgrade still run.
Fixed
- A subscription paid by invoice moves on to its next period. Without a saved payment method (a subscriber paying by bank transfer), a renewal leaves the period’s invoice open and the subscription past due. Marking that invoice paid, or recording its payment by hand, left the subscription past due until the grace period ran out and dunning cancelled it, paid: dunning skipped the charge path for a subscription with no card, so it never found the invoice paid. Dunning now runs that path without a card, which starts the next period when the invoice is paid and waits for the next day as before when it is not, counting no attempt. Paying the period’s invoice in full outside a charge (Mark paid, a payment recorded by hand, or a provider webhook) also queues a retry at once, so the subscription is active again within seconds; that retry is not dropped next to the one scheduled for the next day. If that run cannot move the period on, it still schedules the next day, including while it is the job Oban is running. A part payment queues none, and neither does paying an invoice of another period, or a payment made inside the caller’s own transaction: there the scheduled retry moves the subscription on. Failing to queue that retry is logged and never turns the committed payment into an error.
- A period paid by bank transfer is not cancelled at the last retry. Dunning checked the attempts and the grace period before anything else, so a subscription whose last card retry was due ended even though its invoice had been marked paid. A paid period now moves on first.
Changed
Changes that can break a caller:
- Requires
phoenix_kit >= 3.5.0 and < 4.0.0(was>= 3.4.0), the ecosystem-wide minimum core. A host on core 3.4 updates core first. Billing has no migration.
Other changes:
- Dunning for a subscription without a card takes the charge path, which makes the period’s invoice when it has none, as it does for a card. So if that invoice is voided, the next retry issues a new one.
- A dunning job belongs to the period it was queued for (
period_endin its args) and does nothing once the subscription has moved to another period, so a delayed retry cannot charge a later period off its schedule. A job withoutperiod_end, such as one queued before this release or by hand, runs as before. - A card attached while a no-card retry runs is charged like any card retry: a decline counts an attempt, and a charge the ledger refused is not retried.
Billing 0.28.0. Install or update: {:phoenix_kit_billing, "~> 0.28"}, then mix deps.get && mix phoenix_kit.update. Full history: CHANGELOG.