Open source · Fintech
Laravel ALATPay SDK
Open-source Laravel SDK for ALATPay, the payment service from Wema Bank.
Package royalbcode/laravel-alatpay MIT licence
Technology
- PHP
- Laravel
Overview
A Laravel package that wraps ALATPay’s publicly documented HTTP API, so a Laravel application can take payments without hand-rolling the integration.
Problem
Payment integrations are repetitive and easy to get subtly wrong: each channel has its own request flow and status checks, and every project ends up rebuilding them.
Approach
Expose each ALATPay payment channel through a Laravel-native interface, and make the whole package testable without real credentials.
Architecture
- Laravel appyour code
- ALATPay SDKlaravel-alatpay
- Bank transfervirtual accounts
- USSDpay with phone
- Account debitdirect debit
- Static walletsALATPay API
- Application code talks to the SDK, never to ALATPay directly.
- The SDK owns the HTTP layer for each payment channel.
Implementation
- Bank transfer: generate one-time virtual accounts and confirm transaction status.
- USSD (Pay with Phone): initiate and complete phone-based direct debits.
- Pay with Account Number: direct debit from a customer’s account.
- Static wallets.
Key engineering decisions
- Every HTTP call in the test suite is faked with Laravel’s Http::fake(), so the tests run without live ALATPay credentials.
- Published as an independent, community-built SDK under the MIT licence — not affiliated with Wema Bank or ALATPay.