← docs.zero
docs.zero/Verweise22 von 61WegLibrary · Seitenbaum›Seite lesen›Editor›Verweise
‹›
docsEngineeringPayment service specEditDGTL, AGILE
SavedSave versionDone

Payment service spec

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.

Acceptance runs with LK@Luisa K. on staging, see pay

Tasks
DGTL-142 Payment acceptanceTask · DGTL · In progress
DGTL-151 Payment receiptsTask · DGTL · Open
Deals
Payment terminal rolloutDeal · Hansa Logistik · Quote
Projects
NWH Fixed priceProject · Nordwind Handel GmbH
Pages
Payment provider outagePage · Engineering / Runbooks
ADR-013 Payment providerPage · In review
No notification for # links
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.

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