feat(billing): complimentary pro subscriptions that can be withdrawn #134

Stängd
öppnade 2026-10-11 19:52:11 +00:00 av supernaut · 0 kommentarer
Ägare

Friends and testers need free pro accounts that can be withdrawn later. Today the only way is adding tier_pro by hand in Keycloak, with no record of who has it, why, or until when.

Add complimentary subscriptions to billing:

  • A subscription with plan pro and no payment provider, holding a reason, who granted it and an optional end date.
  • Granting it adds tier_pro (and removes the superseded tiers) through the same path a paid subscription uses, and kicks a reconcile.
  • Withdrawing it, now or at the end date, revokes through the same sweep paying users go through. The user falls back to participant.
  • An operator interface to grant, list and withdraw (an authenticated admin call or a CLI in the container; no public endpoint).
  • No invoice, no VAT, no charge. A complimentary user who later pays converts to a normal subscription.
  • Works with payments disabled, so it can run on prod before checkout goes live.

Backfill: accounts given tier_pro by hand before this exists get a complimentary record.

Friends and testers need free pro accounts that can be withdrawn later. Today the only way is adding `tier_pro` by hand in Keycloak, with no record of who has it, why, or until when. Add complimentary subscriptions to billing: - A subscription with plan pro and no payment provider, holding a reason, who granted it and an optional end date. - Granting it adds `tier_pro` (and removes the superseded tiers) through the same path a paid subscription uses, and kicks a reconcile. - Withdrawing it, now or at the end date, revokes through the same sweep paying users go through. The user falls back to participant. - An operator interface to grant, list and withdraw (an authenticated admin call or a CLI in the container; no public endpoint). - No invoice, no VAT, no charge. A complimentary user who later pays converts to a normal subscription. - Works with payments disabled, so it can run on prod before checkout goes live. Backfill: accounts given `tier_pro` by hand before this exists get a complimentary record.
supernaut lade till detta till projektet Bitborg Payment 2026-10-11 19:52:41 +00:00
Logga in för att delta i denna konversation.
Ingen milstolpe
Inget projekt
Inga tilldelade
1 deltagare
Notiser
Förfallodatum
Förfallodatumet är ogiltigt eller utanför gränserna. Använd formatet "åååå-mm-dd".

Inget förfallodatum satt.

Beroenden

Inga beroenden satta

Referens
bitborg/bitborg-payment#134
Ingen beskrivning angiven.