← docs.zero
docs.zero/Slash-Menü21 von 61WegLibrary · Seitenbaum›Seite lesen›Editor›Slash-Menü
‹›
docsEngineeringPayment service specEditDGTL, AGILE
SavingSave 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.

/

Basic blocks
TextPlain paragraph
Heading 1Big section heading#
Heading 2Medium heading##
Heading 3Small heading###
Bulleted listSimple list-
Numbered listSteps in order1.
ChecklistTrack open points[ ]
TableRows and columns
CodeCode with highlighting```
ImageUpload or pick from Files
CalloutNote that stands out>
DividerLine between sections---
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