checkout: pass locale and cancelUrl, expose the latest charge status #88

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

Problem

The first payment sets no locale and no cancelUrl (src/provider/mollie.ts:309-318). Mollie then guesses the checkout language, and a cancelled payment returns to the same redirectUrl as a successful one, so the portal cannot tell the two apart.

Mollie docs

Fix

  • Add locale (sv_SE or en_GB) and cancelUrl to the startCheckout contract and pass them to payments.create.
  • Expose the latest charge status through subscriptionStatus so the portal can show failed, cancelled or expired.

The portal side is bitborg/bitborg-web#295.

Found in the Mollie docs audit of 2026-10-05.

## Problem The first payment sets no `locale` and no `cancelUrl` (`src/provider/mollie.ts:309-318`). Mollie then guesses the checkout language, and a cancelled payment returns to the same `redirectUrl` as a successful one, so the portal cannot tell the two apart. ## Mollie docs - Create payment: "Setting a locale is highly recommended and will greatly improve your conversion rate" (https://docs.mollie.com/reference/create-payment). - Without a `cancelUrl`, a cancelled payment returns to `redirectUrl` (https://docs.mollie.com/docs/handling-payment-status). ## Fix - Add `locale` (`sv_SE` or `en_GB`) and `cancelUrl` to the `startCheckout` contract and pass them to `payments.create`. - Expose the latest charge status through `subscriptionStatus` so the portal can show failed, cancelled or expired. The portal side is bitborg/bitborg-web#295. Found in the Mollie docs audit of 2026-10-05.
supernaut lade till detta till projektet Bitborg Payment 2026-10-05 12:34: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#88
Ingen beskrivning angiven.