v1.0.0 Production Ready

Modern Payment
Infrastructure

An enterprise-grade, microservices-based payment gateway built for scale and security. Full PCI-DSS compliance, multi-currency support, and real-time settlement processing.

bash — 80x24
~curl-X POST https://paymentgateway.redahaloubi.com//v1/payments/authorize \
-H "Authorization: Bearer sk_test_..." \
-d '{
"amount": 9999,
"currency": "USD",
"source": "tok_visa"
}'
# Response
{ "id": "pay_123...", "status": "authorized" }

Enterprise-Grade Features

Built with Go microservices to handle high-volume financial transactions with precision and security.

PCI-DSS Compliant

Secure card tokenization service with AES-256-GCM encryption and automatic key rotation (90 days).

Microservices Arch

Decoupled services for Auth, Tokenization, and Ledgering communicating via high-performance gRPC.

Multi-Currency

Native support for USD, EUR, and MAD with real-time conversion and daily settlement batching.

Developer First

Idempotency keys, rate limiting, and webhooks built-in for a robust integration experience.

Auth & Security

JWT-based authentication, Role-Based Access Control (RBAC), and per-merchant API keys.

Ledger Integrity

Double-entry accounting principals ensuring financial data consistency and audit trails.

Distributed Systems Design

  • API Gateway (HTTP/REST) handles routing and rate limiting.
  • gRPC for low-latency internal service communication.
  • Asynchronous processing via Event-Driven architecture.
  • Redis for distributed caching and idempotency locks.
  • PostgreSQL with ACID compliance for transactional data.
System Topology
API Gateway
Port 8080
Auth
8001
Payment
8004
Merchant
8002
Tokenization
gRPC
Transaction
gRPC

Powered By

Go 1.23+
PostgreSQL
Redis
Docker
gRPC
Gin

Ready to integrate?

Check out our comprehensive documentation to get started with the Payment Gateway API.

Read the Docs