command

Charge Card

Request sent from PaymentGatewayService to Stripe to charge a customer's card. Maps to Stripe's `POST /v1/charges` API.

POST /v1/charges
CommandExternal API Call

Overview

ChargeCard represents the request our Payment Gateway Service Payment Gateway Service Service v0.0.1 Manages integration with external payment processors (Stripe, PayPal, etc.) Publishes PaymentFailed , ChargeCard Subscribes ProcessPayment , FraudCheckCompleted +2 Owner dboyne Map Repo View docs makes to the Stripe Stripe Service v1.0.0 External payment processor used by the Payment domain to charge cards and receive webhook events for charge outcomes. Publishes StripeChargeSucceeded , StripeChargeFailed Subscribes ChargeCard Map Repo View docs external system to charge a customer’s card. It is the catalog’s view of Stripe’s Create a Charge API call.

Example Request

{
"amount": 4999,
"currency": "usd",
"source": "tok_visa_4242",
"description": "Order #pay_123456",
"metadata": {
"paymentId": "pay_123456",
"customerId": "cust_XYZ789"
}
}
Event-driven architecture documentation: Acme Inc