legal: withdrawal function and consent to start at once, before paid checkout #259

Stängd
öppnade 2026-09-24 13:48:05 +00:00 av supernaut · 2 kommentarer
Ägare

Problem

Paid checkout needs two consumer-law pieces that do not exist yet.

  1. Withdrawal function. Directive (EU) 2023/2673, in Swedish law as 2 kap. 10 a § lagen (2005:59) from 19 June 2026, requires a withdrawal function on the website when the contract is concluded online. It must be easy to find and stay available for the whole 14-day withdrawal period. The updated Terms (#254) already refer to it.
  2. Consent to start at once. A proportional charge on withdrawal (2 kap. 15 §) is only allowed if the consumer explicitly asked the service to start during the withdrawal period. Checkout must record that request.

Done when

  • A signed-in consumer can withdraw from the account page for 14 days after purchase, gets an email receipt with the date and time, and the withdrawal reaches the billing service.
  • Checkout asks for, and stores, the explicit request to start the service at once, with a timestamp.
  • Both are in place before paid checkout is switched on.

Epic: bitborg/bitborg-docs#5

## Problem Paid checkout needs two consumer-law pieces that do not exist yet. 1. **Withdrawal function.** Directive (EU) 2023/2673, in Swedish law as 2 kap. 10 a § lagen (2005:59) from 19 June 2026, requires a withdrawal function on the website when the contract is concluded online. It must be easy to find and stay available for the whole 14-day withdrawal period. The updated Terms (#254) already refer to it. 2. **Consent to start at once.** A proportional charge on withdrawal (2 kap. 15 §) is only allowed if the consumer explicitly asked the service to start during the withdrawal period. Checkout must record that request. ## Done when - A signed-in consumer can withdraw from the account page for 14 days after purchase, gets an email receipt with the date and time, and the withdrawal reaches the billing service. - Checkout asks for, and stores, the explicit request to start the service at once, with a timestamp. - Both are in place before paid checkout is switched on. Epic: bitborg/bitborg-docs#5
supernaut lade till detta till projektet Bitborg Web 2026-09-24 13:48:11 +00:00
Upphovsperson
Ägare

Implementation in PR #273 (version 1.13.0). Off until BILLING_API_URL and BILLING_API_TOKEN are set.

Before merge: a read of the Swedish and English consent, withdrawal and receipt wording. After merge: migrations 0007 to 0009 apply on deploy, and checkout (#145 / #149) must call beginCheckout. This closes once a test-mode withdrawal reaches the billing service end to end.

Implementation in PR #273 (version 1.13.0). Off until `BILLING_API_URL` and `BILLING_API_TOKEN` are set. Before merge: a read of the Swedish and English consent, withdrawal and receipt wording. After merge: migrations 0007 to 0009 apply on deploy, and checkout (#145 / #149) must call `beginCheckout`. This closes once a test-mode withdrawal reaches the billing service end to end.
Upphovsperson
Ägare

Done in #273. The account page has the withdrawal function ("Right of withdrawal" / "Ångerrätt"), shown while the billing service reports an open withdrawalDeadline. The request is stored in withdrawal_requests before the billing service is called, an email receipt with date and time is sent, and checkout asks for and stores the explicit request to start the service at once, with a timestamp, in checkout_consents (beginCheckout in src/lib/checkout-consent.ts, called from src/pages/api/checkout.ts). The remaining condition was a test-mode withdrawal reaching the billing service end to end. That ran on staging on 2026-10-11 (see bitborg-infra#579): a signed-in withdrawal from the account page sent the receipt mail, revoked tier_pro, cancelled the Mollie subscription and created the pro-rata refund. #327 added the separate renewal consent and closed #309, so it is not part of this issue. Closing.

Done in #273. The account page has the withdrawal function ("Right of withdrawal" / "Ångerrätt"), shown while the billing service reports an open `withdrawalDeadline`. The request is stored in `withdrawal_requests` before the billing service is called, an email receipt with date and time is sent, and checkout asks for and stores the explicit request to start the service at once, with a timestamp, in `checkout_consents` (`beginCheckout` in `src/lib/checkout-consent.ts`, called from `src/pages/api/checkout.ts`). The remaining condition was a test-mode withdrawal reaching the billing service end to end. That ran on staging on 2026-10-11 (see bitborg-infra#579): a signed-in withdrawal from the account page sent the receipt mail, revoked `tier_pro`, cancelled the Mollie subscription and created the pro-rata refund. #327 added the separate renewal consent and closed #309, so it is not part of this issue. Closing.
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-web#259
Ingen beskrivning angiven.