checkout: one-time annual payment with Swish, no auto-renewal #95

Stängd
öppnade 2026-10-05 12:57:22 +00:00 av supernaut · 0 kommentarer
Ägare

Goal

Offer two ways to buy the personal plan, at the same price:

Auto-renew One-time annual
Methods creditcard, Apple Pay, Google Pay swish
Mollie flow sequenceType: first, then a subscription plain one-off payment, no mandate, no subscription
Intervals monthly or annual annual only
Renewal Mollie charges the customer pays again

Swish is SEK only, supports full and partial refunds within 13 months, has no chargebacks and no recurring (https://docs.mollie.com/docs/swish). Pay by Bank is not an option: EUR and GBP only, Sweden not supported (https://docs.mollie.com/docs/pay-by-bank).

This is core launch scope.

Design

  • startCheckout takes renewal: "auto" | "none". "none" requires interval: "annual" and sends method: ["swish"] with no Mollie customer and no sequenceType: first. "auto" keeps the card-only set from #82.
  • Activation for "none": same transaction as today (charge, period, tier_pro grant, gapless invoice) but no createSubscription. The subscription row is created with cancelAtPeriodEnd = true, so the existing sweep ends it at period end with no grace.
  • Paying early: a one-time purchase by a customer whose one-time period is still running extends from the current periodEnd, not from the payment date. Invoice the new period from that date.
  • Withdrawal: unchanged rules (14 days from the first purchase, pro-rata refund). Swish partial refunds cover it.
  • Second checkout while an auto-renew subscription is live: refuse in startCheckout (today's rule refunds after the fact; refusing first is the better experience).
  • subscriptionStatus returns renewal and paidUntil, so the portal can show "Paid until ..." and a renew button.
  • Reconciliation: one-off payments carry the same subscriptionId metadata, so the existing replay path applies.

Done when

  • Unit tests: one-time activation without a subscription; early renewal extends from periodEnd; monthly + "none" rejected; withdrawal refunds pro rata via Swish.
  • Staging: buy with Swish, withdraw, buy again, renew early, let a period lapse.

Depends on #82 (method restriction per path). Portal side: bitborg/bitborg-web issues for the checkout choice and for renewal reminders.

## Goal Offer two ways to buy the personal plan, at the same price: | | Auto-renew | One-time annual | |---|---|---| | Methods | `creditcard`, Apple Pay, Google Pay | `swish` | | Mollie flow | `sequenceType: first`, then a subscription | plain one-off payment, no mandate, no subscription | | Intervals | monthly or annual | annual only | | Renewal | Mollie charges | the customer pays again | Swish is SEK only, supports full and partial refunds within 13 months, has no chargebacks and no recurring (https://docs.mollie.com/docs/swish). Pay by Bank is not an option: EUR and GBP only, Sweden not supported (https://docs.mollie.com/docs/pay-by-bank). This is core launch scope. ## Design - `startCheckout` takes `renewal: "auto" | "none"`. `"none"` requires `interval: "annual"` and sends `method: ["swish"]` with no Mollie customer and no `sequenceType: first`. `"auto"` keeps the card-only set from #82. - Activation for `"none"`: same transaction as today (charge, period, `tier_pro` grant, gapless invoice) but no `createSubscription`. The subscription row is created with `cancelAtPeriodEnd = true`, so the existing sweep ends it at period end with no grace. - Paying early: a one-time purchase by a customer whose one-time period is still running extends from the current `periodEnd`, not from the payment date. Invoice the new period from that date. - Withdrawal: unchanged rules (14 days from the first purchase, pro-rata refund). Swish partial refunds cover it. - Second checkout while an auto-renew subscription is live: refuse in `startCheckout` (today's rule refunds after the fact; refusing first is the better experience). - `subscriptionStatus` returns `renewal` and `paidUntil`, so the portal can show "Paid until ..." and a renew button. - Reconciliation: one-off payments carry the same `subscriptionId` metadata, so the existing replay path applies. ## Done when - Unit tests: one-time activation without a subscription; early renewal extends from `periodEnd`; monthly + `"none"` rejected; withdrawal refunds pro rata via Swish. - Staging: buy with Swish, withdraw, buy again, renew early, let a period lapse. Depends on #82 (method restriction per path). Portal side: bitborg/bitborg-web issues for the checkout choice and for renewal reminders.
supernaut lade till detta till projektet Bitborg Payment 2026-10-05 12:58:01 +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#95
Ingen beskrivning angiven.