service
Payment Worker

Payment Worker

Drives charges and refunds against the external payment processor and records the outcomes. It requests payments and refunds, and consumes the success/failure events Stripe returns.

Service

Overview

The Payment Worker drives money movement. It requests charges from the external StripeStripeSystemv1.0.0External payment processor used by Acme Inc to charge cards and issue refunds. It receives payment and refund requests a...Ownerpayments-platformMapView docs via Payment RequestedPayment RequestedEventv1.0.0Published when the Payment Processing System requests a charge from the payment processor. Ownerpayments-platformSchemaMapView docs and refunds via Refund RequestedRefund RequestedEventv1.0.0Published when the Payment Processing System requests a refund from the payment processor. Ownerpayments-platformSchemaMapView docs, then consumes the Payment SucceededPayment SucceededEventv1.0.0Published by Stripe when a charge succeeds. Ownerpayments-platformSchemaMapView docs and Payment FailedPayment FailedEventv1.0.0Published by Stripe when a charge fails. Ownerpayments-platformSchemaMapView docs events Stripe returns and records the outcome in the Payment DatabasePayment DatabaseContainerv1.0.0PostgreSQL database that is the system of record for payments and refunds.MapView docs.

Sends 2 messages

Payment and refund requests

Receives 2 messages

Payment outcomes from Stripe

Responsibilities

AreaDescription
ChargingRequests charges via Payment RequestedPayment RequestedEventv1.0.0Published when the Payment Processing System requests a charge from the payment processor. Ownerpayments-platformSchemaMapView docs.
RefundsRequests refunds via Refund RequestedRefund RequestedEventv1.0.0Published when the Payment Processing System requests a refund from the payment processor. Ownerpayments-platformSchemaMapView docs.
OutcomesConsumes Payment SucceededPayment SucceededEventv1.0.0Published by Stripe when a charge succeeds. Ownerpayments-platformSchemaMapView docs / Payment FailedPayment FailedEventv1.0.0Published by Stripe when a charge fails. Ownerpayments-platformSchemaMapView docs and records them.
PersistenceReads from and writes to the Payment DatabasePayment DatabaseContainerv1.0.0PostgreSQL database that is the system of record for payments and refunds.MapView docs.

Architecture diagram

Messages for this service

Sends messages (2)

Quickly find the message you need by searching for the name, type, or summary.
NameVersionTypeSummary
Payment Requested
v1.0.0eventPublished when the Payment Processing System requests a charge from the payment processor.
Refund Requested
v1.0.0eventPublished when the Payment Processing System requests a refund from the payment processor.

Receives messages (2)

Quickly find the message you need by searching for the name, type, or summary.
NameVersionTypeSummary
Payment Succeeded
v1.0.0eventPublished by Stripe when a charge succeeds.
Payment Failed
v1.0.0eventPublished by Stripe when a charge fails.
Event-driven architecture documentation: Acme Inc