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.
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.
Responsibilities
| Area | Description |
|---|---|
| Charging | Requests charges via Payment RequestedPayment RequestedEventv1.0.0Published when the Payment Processing System requests a charge from the payment processor. Ownerpayments-platformSchemaMapView docs. |
| Refunds | Requests refunds via Refund RequestedRefund RequestedEventv1.0.0Published when the Payment Processing System requests a refund from the payment processor. Ownerpayments-platformSchemaMapView docs. |
| Outcomes | Consumes 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. |
| Persistence | Reads from and writes to the Payment DatabasePayment DatabaseContainerv1.0.0 |