Payment Gateway Integrations
2019
Reliable integrations into Egyptian payment channels — Fawry, Aman, and Sahel — with routing and failover at user scale.
Results
What it did
The problem
Why it needed building
Utility and payment systems needed dependable connections to Egyptian payment channels, each with its own quirks and availability. A single failing provider could not be allowed to block payments for millions of users.
The approach
How it works
Integrated Fawry, Aman, and Sahel behind a routing layer that picks a channel, detects failures, and fails over to an alternate provider — so payments keep settling even when one channel degrades.
- Payment Request
- Channel Routing
- Failure Detection
- Settlement
- 01Payment RequestNormalized request enters the routing layer
- 02Channel RoutingRouter selects a provider — Fawry, Aman, or Sahel
- 03Failure DetectionTimeouts and errors trigger an automatic failover
- 04SettlementPayment settles via the first healthy channel
Live demo
Try it yourself
Illustrative gateway routing with failover across Fawry / Aman / Sahel — send a few times to see a retry.
Tech stack
Built with
Working on something like this?
Cite this case study
Mohamed Hosny, “Payment Gateway Integrations”, www.mohamed-hosny.dev. https://www.mohamed-hosny.dev/projects/payment-gateway-integrations
Referencing this? Please credit Mohamed Hosny and link to the original page.