chore(billing): small Mollie integration fixes #149

Stängd
öppnade 2026-10-12 13:15:07 +00:00 av supernaut · 0 kommentarer
Ägare

Small items from a review of the Mollie integration. None blocks launch.

  • Card expiry is never stored (src/provider/mollie.ts:99-103,121, exp is ""). It is on the mandate as details.cardExpiryDate. Storing it lets the 30-day reminder warn before an annual renewal is sure to fail.
  • A renewal records the previous charge's amount and ignores p.amountMinor (src/billing.ts:1086-1116). If the subscription amount changes at Mollie, the invoice and any refund are wrong. Send a mismatch to reconcile_orphan.
  • The applepay brand branch (src/billing.ts:419) is unreachable. Mollie creates Apple Pay payments as creditcard (https://docs.mollie.com/docs/apple-pay). Read details.wallet or drop the variant.
  • completeCheckout has no caller and reports open or pending as failed (src/provider/mollie.ts:400-402). Delete it.
  • The payment description has no identifier (src/provider/mollie.ts:358,378). Mollie recommends a unique one (https://docs.mollie.com/reference/create-payment). Append a short charge reference.
  • When payments are enabled, check the key and the enabled methods at startup, so a bad key fails the start instead of the first checkout.
  • The comment at src/provider/mollie.ts:85-87 says Google Pay has no method of its own. The account lists googlepay. Check its mandate behaviour in test mode, then fix the comment.
Small items from a review of the Mollie integration. None blocks launch. - Card expiry is never stored (`src/provider/mollie.ts:99-103,121`, `exp` is ""). It is on the mandate as `details.cardExpiryDate`. Storing it lets the 30-day reminder warn before an annual renewal is sure to fail. - A renewal records the previous charge's amount and ignores `p.amountMinor` (`src/billing.ts:1086-1116`). If the subscription amount changes at Mollie, the invoice and any refund are wrong. Send a mismatch to `reconcile_orphan`. - The `applepay` brand branch (`src/billing.ts:419`) is unreachable. Mollie creates Apple Pay payments as `creditcard` (https://docs.mollie.com/docs/apple-pay). Read `details.wallet` or drop the variant. - `completeCheckout` has no caller and reports `open` or `pending` as failed (`src/provider/mollie.ts:400-402`). Delete it. - The payment description has no identifier (`src/provider/mollie.ts:358,378`). Mollie recommends a unique one (https://docs.mollie.com/reference/create-payment). Append a short charge reference. - When payments are enabled, check the key and the enabled methods at startup, so a bad key fails the start instead of the first checkout. - The comment at `src/provider/mollie.ts:85-87` says Google Pay has no method of its own. The account lists `googlepay`. Check its mandate behaviour in test mode, then fix the comment.
supernaut lade till detta till projektet Bitborg Payment 2026-10-12 13:16:17 +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#149
Ingen beskrivning angiven.