Multi-platform payment gateways
Stripe and PayPal integrated across more than five e-commerce platforms, behind a shared checkout layer.
- Year
- 2024
- Client
- Confidential
- Sector
- Retail
- Type
- E-commerce
- Role
- Front-end developer
- Stack
- React · Node · Stripe · PayPal
Five different stores needed to charge through both Stripe and PayPal, and each had solved checkout on its own. The brief was to integrate both gateways without doubling the maintenance work.
The problem
Stripe and PayPal do not share a model. One confirms payment on the client, the other redirects off-site and comes back. Writing each store against both APIs would have left ten code paths failing in different ways.
What I did
A checkout layer with a single interface in front of it: the store asks for a payment intent and receives a state, without knowing which gateway is behind it. The flow differences stay encapsulated, including the return from PayPal, which is where most orders are lost.