A complete e-commerce platform featuring complex shipping quoting logic, social logins, and multi-merchant API integrations.
Engineered using HTML, CSS, jQuery, and Bootstrap, with a secure Laravel backend. We implemented complex shipping and payment flows specifically tailored to the client's strict regional requirements. The platform needed to unify multiple courier APIs (Fastway, Courier Guy) into a single checkout experience, integrate Payfast for payments, and sync inventory to Google and Facebook Merchant APIs. The client operated in a region with specific compliance and shipping constraints.
The client required seamless real-time shipping quotes from multiple disparate sources (Fastway and Courier Guy), while simultaneously managing automated inventory syncs securely across both Google and Facebook Merchant APIs. Fastway used an older SOAP-like structure; Courier Guy was modern JSON—they did not communicate. We needed a unified adapter that could query both, normalize responses, and return the cheapest delivery option. Payment logic had to be abstracted for testability against Payfast sandbox.
Developed a Laravel Adapter Pattern service that stands between the frontend and courier APIs—grabs volumetric weight from the cart, fires simultaneous requests to Fastway and Courier Guy, standardizes both responses, and returns only the cheapest delivery cost. Implemented secure OAuth pipelines for Google and Facebook, replacing outdated CMS plugins. Integrated Payfast with abstracted payment logic for testability. Automated cron jobs push MySQL catalog changes to Facebook Merchant endpoints. The result: 100% accurate dynamic shipping quotes and 1-click social login.
System architecture and data flow diagrams illustrating the underlying infrastructure and request lifecycle.
| Metric | Requirement | Target |
|---|---|---|
| P99 Latency | < 250ms | < 100ms |
| System Uptime | 99.9% | 99.99% |
| Query Payload | 10k ops/sec | 50k ops/sec |
Integrating disparate API services into a seamless unified checkout flow is an extremely sensitive workflow. Fastway utilized an older, structured SOAP-like array while Courier Guy was purely modern JSON. They did not communicate.
We engineered a Laravel 'Adapter Pattern' service class that effectively stood in the middle. It grabbed the volumetric weight from the user's cart, fired two simultaneous requests to the courier agencies, standardized both responses instantly, and returned only the cheapest possible delivery cost to the jQuery frontend.
The result was massive cost-savings for both the client and the end-user, totally automated.
Always use an Adapter or Factory Design Pattern to normalize data when making parallel calls to multiple 3rd party APIs.
Abstract payment logic away from standard controllers to guarantee testability against dummy Payfast sandbox cards.