Open source · Fintech

Laravel ALATPay SDK

Open-source Laravel SDK for ALATPay, the payment service from Wema Bank.

Role
Lead developer
Category
Open source · Fintech
Company
Royal Bcode Ventures
Status
Published on Packagist

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 ALATPay SDK architecture Laravel app to ALATPay SDK; ALATPay SDK to Bank transfer; ALATPay SDK to USSD; ALATPay SDK to Account debit; ALATPay SDK to Static wallets Laravel app your code ALATPay SDK laravel-alatpay Bank transfer virtual accounts USSD pay with phone Account debit direct debit Static wallets ALATPay 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.