checkout: show the payment outcome on return to the account page #295

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

Problem

After checkout, the account page shows the same notice for every outcome: "If you completed the payment, your plan updates here within a few minutes". A customer whose payment failed, expired or was cancelled gets no clear message and no prompt to try again.

The page correctly never trusts the redirect for status. It just has no status to show.

Fix

  • Send a distinct cancel return URL (/account?checkout=cancelled#checkout) with the checkout request, plus the page language.
  • On return, read the latest charge status from the billing service's subscriptionStatus and show paid, pending, failed, expired or cancelled, with a retry button for the last three.

Needs the billing service to accept the cancel URL and locale and to expose the charge status.

Done when

  • Each outcome shows its own message on staging.
## Problem After checkout, the account page shows the same notice for every outcome: "If you completed the payment, your plan updates here within a few minutes". A customer whose payment failed, expired or was cancelled gets no clear message and no prompt to try again. The page correctly never trusts the redirect for status. It just has no status to show. ## Fix - Send a distinct cancel return URL (`/account?checkout=cancelled#checkout`) with the checkout request, plus the page language. - On return, read the latest charge status from the billing service's `subscriptionStatus` and show paid, pending, failed, expired or cancelled, with a retry button for the last three. Needs the billing service to accept the cancel URL and locale and to expose the charge status. ## Done when - Each outcome shows its own message on staging.
supernaut lade till detta till projektet Bitborg Web 2026-10-05 12:34:52 +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-web#295
Ingen beskrivning angiven.