checkout: switch a one-time year to automatic renewal #103

Stängd
öppnade 2026-10-06 11:20:40 +00:00 av supernaut · 0 kommentarer
Ägare

Goal

Let a customer on a one-time yearly payment switch to automatic renewal without a gap or a double charge.

Today

startCheckout refuses an auto checkout while a one-time year runs (already_subscribed). The portal shows a hint near the end of the year instead of a switch.

Design

  • Accept an auto checkout during a running one-time year.
  • The first card payment sets up the mandate. The subscription's first paid period starts at the current periodEnd, so the remaining one-time period is not charged twice.
  • Withdrawal rules apply to the new purchase as usual.

Done when

  • Unit tests: switch during a running year starts renewals at periodEnd; no overlap; withdrawal on the switch refunds correctly.

Portal side: bitborg-web needs a "Switch to automatic renewal" button once this lands.

## Goal Let a customer on a one-time yearly payment switch to automatic renewal without a gap or a double charge. ## Today `startCheckout` refuses an auto checkout while a one-time year runs (`already_subscribed`). The portal shows a hint near the end of the year instead of a switch. ## Design - Accept an auto checkout during a running one-time year. - The first card payment sets up the mandate. The subscription's first paid period starts at the current `periodEnd`, so the remaining one-time period is not charged twice. - Withdrawal rules apply to the new purchase as usual. ## Done when - Unit tests: switch during a running year starts renewals at `periodEnd`; no overlap; withdrawal on the switch refunds correctly. Portal side: bitborg-web needs a "Switch to automatic renewal" button once this lands.
supernaut lade till detta till projektet Bitborg Payment 2026-10-06 11:24:47 +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#103
Ingen beskrivning angiven.