Skip to main content

PHP SDK

Requires PHP 8.1+ and the ext-json extension (standard in all modern PHP distributions).

Client initialisation


Framework examples

Register as a singleton in a service provider:
Add the key in config/services.php:
Controller
Webhook controller
Routes
Queue jobs for async processingDispatching a job from the webhook endpoint keeps response times fast and prevents timeout retries:

STK Push


B2C Payout

Always supply an idempotencyKey so you can safely retry without double-paying:

Service wallet


Transactions


Payment wallet channels


Error handling

Common error codes