Payment

Domain that contains payment related services and messages for processing financial transactions.

Domain Subdomain

Overview

The Payment Domain encompasses all services and components related to handling financial transactions within the system. It is part of the E-Commerce E-Commerce Domain v1.0.0 The E-Commerce domain is the core business domain of FlowMart, our modern digital marketplace. This domain orchestrates ... Owner dboyne , full-stack Map Repo View docs domain and manages entities like Payment Payment Entity v1.0.0 Represents payment transactions for orders in the e-commerce system. View docs , Transaction Transaction Entity v1.0.0 Represents a low-level interaction with a payment gateway or processor (e.g., authorize, capture, refund, void). View docs , and Invoice Invoice Entity v1.0.0 Represents a bill issued to a customer, detailing charges for products or services. View docs . The domain ensures secure, reliable, and efficient processing of all payment-related activities.

Services

PaymentService

The Payment Service Payment Service Service v0.0.1 Service that handles payments Publishes PaymentProcessed Subscribes PaymentInitiated Owner dboyne Map Repo View docs is the core payment orchestration service that coordinates payment workflows and maintains payment state. It publishes Payment Processed Payment Processed Event v1.0.0 Event is triggered after the payment has been successfully processed Owner dboyne Map View docs events.

FraudDetectionService

The Fraud Detection Service Fraud Detection Service Service v0.0.1 Analyzes payment transactions for fraudulent activity and risk assessment Publishes FraudCheckCompleted , FraudDetected +1 Subscribes PaymentInitiated Owner dboyne Map Repo View docs analyzes transactions in real-time to detect fraudulent activity using machine learning models and rule-based systems. It publishes Fraud Detected Fraud Detected Event v0.0.1 Emitted when a fraud is detected in a transaction Map View docs and Fraud Check Completed Fraud Check Completed Event v0.0.1 Emitted when a fraud check has been completed for a transaction Schema Map View docs events.

PaymentGatewayService

The Payment Gateway Service Payment Gateway Service Service v0.0.1 Manages integration with external payment processors (Stripe, PayPal, etc.) Publishes PaymentFailed Subscribes ProcessPayment , FraudCheckCompleted Owner dboyne Map Repo View docs manages integrations with external payment processors (Stripe, PayPal, etc.) and handles the Process Payment Process Payment Command v0.0.1 Command to process a payment through the payment gateway Schema Map View docs command.

Cross-Domain Integration

The Payment domain integrates with:

Bounded context

Messages for this domain

Sends messages (5)

Quickly find the message you need by searching for the name, type, or summary.
NameVersionTypeSummary
Payment Processed
v1.0.0eventEvent is triggered after the payment has been successfully processed
Fraud Check Completed
v0.0.1eventEmitted when a fraud check has been completed for a transaction
Fraud Detected
v0.0.1eventEmitted when a fraud is detected in a transaction
Risk Score Calculated
v0.0.1eventEmitted when a risk score is calculated for a transaction
Payment Failed
v0.0.1eventEmitted when a payment attempt fails

Receives messages (4)

Quickly find the message you need by searching for the name, type, or summary.
NameVersionTypeSummary
Payment Initiated
v0.0.1eventEvent is triggered when a user initiates a payment through the Payment Service
Payment Initiated
v0.0.1eventEvent is triggered when a user initiates a payment through the Payment Service
Process Payment
v0.0.1commandCommand to process a payment through the payment gateway
Fraud Check Completed
v0.0.1eventEmitted when a fraud check has been completed for a transaction