container
Payment Database

Payment Database

PostgreSQL database that is the system of record for payments and refunds.

Databasepostgres@16Residency: eu-west-1Retention: 7yAccess Mode: readWrite

What is this?

The Payment Database is the authoritative store for payments and refunds at Acme Inc. The Payment APIPayment APIServicev1.0.0Receives payment authorization requests from the Ordering domain and records the payment intent, kicking off the charge ...Subscribesauthorize-paymentOwnerpayments-platformMapRepoView docs and Payment WorkerPayment WorkerServicev1.0.0Drives charges and refunds against the external payment processor and records the outcomes. It requests payments and ref...Publishespayment-requested, refund-requestedSubscribespayment-succeeded, payment-failedOwnerpayments-platformMapRepoView docs read from and write to it as payments are authorized, charged and refunded.

What does it store?

  • Payments — one row per payment: id, order, amount, status and timestamps.
  • Refunds — one row per refund: id, payment, amount, status and timestamps.

Schema

Retention

Payments and refunds are financial records and are retained for 7 years (see frontmatter) to meet accounting and audit requirements.