How mohithkinthada2006-crypto/hyperswitch works
Hyperswitch is a composable payments platform: merchants configure processors and submit payment requests, while the platform provides payment processing, intelligent routing, payment-method vaulting, retries, and operational analytics. The graph retains these documented product capabilities and distinguishes API routing, payment-domain handling, processor integration, persistence, and analytics. Some subsystem paths are directory-level because their implementation files appear in the tree but were not sampled; only documented or excerpt-visible relationships are connected.
Main entry points: core Payment processing · offer_engine Offer engine · routes HTTP API routes · app.rs Router application
Components 17
API and orchestration
- HTTP API routes
crates/openapi/src/routes - Router application
crates/router/src/routes/app.rs - Offer API routes
crates/router/src/routes/offer_engine.rs - Offer API specification
crates/openapi/src/routes/offer_engine.rs
Payment capabilities
- Payment processing
crates/router/src/core - Intelligent routing
crates/router/src/core - Retries and recovery
crates/router/src/core - Payment methods vault
crates/payment_methods/src/controller.rs - Offer engine
crates/router/src/core/offer_engine - Payment domain models
crates/hyperswitch_domain_models/src/router_request_types/unified_authentication_service.rs
Integrations and data
- Processor connectors
crates/hyperswitch_connectors/src/connectors - 3DS authentication
crates/hyperswitch_connectors/src/connectors/unified_authentication_service.rs - Payment persistence
crates/router/src/types/storage.rs - File storage
crates/external_services/src/file_storage.rs
Operations and insight
- Analytics and observability
crates/analytics/src/query.rs - Scheduled workflows
crates/router/src/workflows/offer_engine_notify.rs
Other components
- Merchant / client
Connections 14
- Merchant / client → HTTP API routes: submits requests
README.md - HTTP API routes → Router application: routes requests
- Router application → Payment processing: dispatches flows
- Payment processing → Intelligent routing: selects processor
- Payment processing → Retries and recovery: applies retries
- Payment processing → Payment methods vault: uses payment methods
- Payment processing → Processor connectors: sends transactions
- Payment processing → Payment persistence: persists payment state
- Offer API specification → Offer API routes: documents browse API
crates/openapi/src/routes/offer_engine.rs - Offer API routes → Offer engine: dispatches browse
crates/router/src/routes/offer_engine.rs - Offer engine → Scheduled workflows: schedules notifications
crates/router/src/workflows/offer_engine_notify.rs - Scheduled workflows → Offer engine: executes notifications
crates/router/src/workflows/offer_engine_notify.rs - 3DS authentication → Payment domain models: uses request types
crates/hyperswitch_connectors/src/connectors/unified_authentication_service.rs - File storage → File storage: selects backend
crates/external_services/src/file_storage.rs