Click to expand layers — documentation that adapts to your depth
Core microservice handling all payment processing
The Payment Service exposes a REST API with endpoints for charge creation, refund processing, and subscription management.
POST /api/v1/charges
{
"amount": 4999,
"currency": "usd",
"payment_method": "pm_xxx"
}
GET /api/v1/charges/{charge_id}
OAuth2 + JWT-based identity management
Implements OAuth 2.0 authorization code flow with PKCE. Supports social providers (Google, GitHub) and email/password authentication.
OAuth 2.0 Flow:
├── /auth/login → Initiate flow
├── /auth/callback → Handle provider response
├── /auth/token → Exchange for JWT
└── /auth/refresh → Refresh access token
Multi-channel messaging infrastructure
Event-driven notification system supporting email, SMS, push notifications, and in-app messages via pluggable providers.
Event: user.created
├── Email → Welcome sequence
├── Push → "New login" alert
└── Slack → Team notification