Fraud Detection Service
Analyzes payment transactions for fraudulent activity and risk assessment
Overview
The Fraud Detection Service is responsible for analyzing payment transactions in real-time to detect potential fraudulent activity. It is part of the Payment Payment Domain v0.0.1 Domain that contains payment related services and messages for processing financial transactions. Owner dboyne Map View docs domain and works alongside Payment Service Payment Service Service v0.0.1 Service that handles payments Publishes PaymentProcessed Subscribes PaymentInitiated Owner dboyne Map Repo View docs and 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 .
The service receives Payment Initiated Payment Initiated Event v0.0.1 Event is triggered when a user initiates a payment through the Payment Service Owner dboyne Map View docs events and publishes 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 , Fraud Detected Fraud Detected Event v0.0.1 Emitted when a fraud is detected in a transaction Map View docs , and Risk Score Calculated Risk Score Calculated Event v0.0.1 Emitted when a risk score is calculated for a transaction Map View docs events based on its analysis.
Key Features
- Real-time Transaction Analysis: Analyzes transactions as they occur
- Machine Learning Models: Uses ML to identify suspicious patterns
- Risk Scoring: Calculates risk scores for each transaction
- Automated Blocking: Can automatically block high-risk transactions
- Manual Review Queue: Flags medium-risk transactions for manual review
API Endpoints
REST API
POST /api/fraud/check- Submit transaction for fraud checkGET /api/fraud/risk-score/{transactionId}- Get risk score for transactionPUT /api/fraud/override/{transactionId}- Manual override of fraud decision
Configuration
fraud_detection: risk_thresholds: high: 80 medium: 50 low: 20 auto_block_threshold: 90 ml_model_version: "2.3.1"