domain

Payments

The Payments domain takes payment for orders and processes refunds. It orchestrates authorization and capture through an external payment processor, and screens payments for fraud.

DomainCore domainBusiness Critical

Overview

The Payments domain is responsible for moving money. It authorizes and captures payment for orders, issues refunds, and screens payments for fraud. It owns one internal system and integrates with two external providers:

Payment Processing System

Orchestrates authorization, capture and refunds for orders.

Stripe

External payment processor that charges cards and issues refunds.

Fraud Detection

External provider that screens payments for fraud.

How the systems work together

The Payment Processing System is the internal orchestrator. When the Ordering domain authorizes a payment, it requests payment via the external Stripe system and, in parallel, asks Fraud Detection to screen the payment. Stripe reports back whether the payment succeeded or failed, and the Payment Processing System records the outcome.

System Diagram

The systems in this domain, how they relate, and the people who interact with them.