feat(checkout): one-time yearly payment by card and Apple Pay #181

Sammanfogat
supernaut sammanfogade 4 incheckningar från feat/one-time-card in i main 2026-10-13 21:11:39 +00:00
Ägare

A one-time checkout (renewal: "none") now offers card, Apple Pay and Swish on Mollie's hosted page. The customer picks there. No Mollie customer or mandate is created for any method.

  • A restricted (non-Swedish) one-time checkout offers cards from the declared country only, as an auto-renew checkout does. The card-country check refunds a mismatch. Tests cover a matching card, a card from another country and an unknown card country.
  • one_time_sweden_only is no longer returned. It existed only because of Swish. Launch still sells to Sweden only through BILLING_SELL_COUNTRIES. The code stays in the contract enum for old clients.
  • The contract shape is unchanged.
  • Early renewal, withdrawal and refunds work for every method. Billing never branched on the method. New tests cover a one-time card payment, early renewal across methods and a card withdrawal.
  • The withdrawal-window rule is unchanged (#150).
  • README: payment methods and test-mode behaviour updated.
  • Version 0.17.0.

Closes #180

A one-time checkout (`renewal: "none"`) now offers card, Apple Pay and Swish on Mollie's hosted page. The customer picks there. No Mollie customer or mandate is created for any method. - A restricted (non-Swedish) one-time checkout offers cards from the declared country only, as an auto-renew checkout does. The card-country check refunds a mismatch. Tests cover a matching card, a card from another country and an unknown card country. - `one_time_sweden_only` is no longer returned. It existed only because of Swish. Launch still sells to Sweden only through `BILLING_SELL_COUNTRIES`. The code stays in the contract enum for old clients. - The contract shape is unchanged. - Early renewal, withdrawal and refunds work for every method. Billing never branched on the method. New tests cover a one-time card payment, early renewal across methods and a card withdrawal. - The withdrawal-window rule is unchanged (#150). - README: payment methods and test-mode behaviour updated. - Version 0.17.0. Closes #180
supernaut lade till 4 incheckningar 2026-10-13 21:06:10 +00:00
A one-time checkout now offers card, Apple Pay and Swish on Mollie's hosted page. No customer or mandate is created for any of them. A non-Swedish one-time checkout offers cards from the declared country only, as an auto-renew checkout does, so one_time_sweden_only is no longer returned. The contract is unchanged.
Also re-wrap the countries bullet and note the retained enum entry in the contract.
test(checkout): type the card country in the one-off refund test
Alla kontroller lyckades
ci / ci (pull_request) Successful in 2m17s
472f8f99ee
supernaut sammanfogade incheckning 996032357c till main 2026-10-13 21:11:39 +00:00
supernaut tog bort grenen feat/one-time-card 2026-10-13 21:11:39 +00:00
Logga in för att delta i denna konversation.
Inga granskare
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!181
Ingen beskrivning angiven.