← docs.zero
docs.zero/Seite · Menü More10 von 61WegLibrary · Seitenbaum›Seite lesen›Seite · Menü More
‹›
docsEngineeringPayment service specDGTL, AGILE

Payment service spec

Draftv15 · Edited 2 h ago by Sarah T.

Changes since v1.2 (approved). 3 versions by Sarah T. and you. Readers see the latest state.

Overview

The payment service takes card and SEPA payments for invoices from backoffice and sends the receipt. It replaces the manual export to the bank portal. Owner ST@Sarah T., tracked in Task DGTL-142In progress.

Approved scope is v1.2. Refunds above €5,000 still need a second approver, see Page Error handlingApproved v2.0.

Goals

  • Done: Card and SEPA direct debit for invoices
  • Done: Receipt as PDF to the billing contact
  • Open: Partial refunds from the invoice

Payment flow

  1. Invoice is sent from backoffice
  2. Customer pays by card or SEPA direct debit
  3. Provider confirms with a webhook
  4. Invoice is marked paid and the receipt goes out
backofficePayment serviceProviderWebhookinvoice sentchargepayment.succeeded
Payment flow from invoice to receipt

Refunds

Refunds start from the invoice. Full refunds go out right away, partial refunds need a reason and stay below the limit.

2
CaseWho approvesLimit
Full refundBilling team€5,000
Partial refundBilling team€2,500
Above the limitLena H.no limit

Webhooks

payment.succeeded
{
  "event": "payment.succeeded",
  "invoice": "INV-2026-4012",
  "amount": 630000,
  "currency": "EUR"
}

Open questions