billing: clean up a checkout the provider refused #129

Stängd
öppnade 2026-10-11 08:44:02 +00:00 av supernaut · 1 kommentar
Ägare

A checkout that fails at the provider leaves its subscription incomplete and its charge pending for good. On staging, two card attempts that Mollie refused at create ("No suitable payment methods found") left two such pairs next to the active subscription.

  • When payment creation fails, mark the charge failed and the subscription abandoned in the same transaction, or do not persist them until the provider accepts the payment.
  • A test that a provider error at create leaves no pending charge.

Done when: a refused checkout leaves no incomplete subscription or pending charge behind.

A checkout that fails at the provider leaves its subscription `incomplete` and its charge `pending` for good. On staging, two card attempts that Mollie refused at create ("No suitable payment methods found") left two such pairs next to the active subscription. - [ ] When payment creation fails, mark the charge failed and the subscription abandoned in the same transaction, or do not persist them until the provider accepts the payment. - [ ] A test that a provider error at create leaves no `pending` charge. Done when: a refused checkout leaves no `incomplete` subscription or `pending` charge behind.
supernaut lade till detta till projektet Bitborg Payment 2026-10-11 08:44:18 +00:00
Upphovsperson
Ägare

Staging 2026-10-11: the two stale signup-test pairs from before the fix were set to charge failed and subscription canceled with the one-off update. No pending charge or incomplete subscription is left. A new failed test payment after the fix ended failed directly.

Staging 2026-10-11: the two stale `signup-test` pairs from before the fix were set to charge `failed` and subscription `canceled` with the one-off update. No `pending` charge or `incomplete` subscription is left. A new failed test payment after the fix ended `failed` directly.
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#129
Ingen beskrivning angiven.