Official PHP SDK for ModemPay payment processing. Simple, fast, and framework-agnostic with first-class Laravel support.
modempay/modempay-php is a Laravel package for official php sdk for modempay payment processing. simple, fast, and framework-agnostic with first-class laravel support..
It currently has 0 GitHub stars and 477 downloads on Packagist (latest version v1.0.0).
Install it with composer require modempay/modempay-php.
Discover more Laravel packages by modempay
or browse all Laravel packages to compare alternatives.
Last updated
Official PHP SDK for ModemPay payment processing.
composer require modempay/modempay-php
use ModemPay\ModemPay;
$modemPay = new ModemPay('your_api_key');
// List payment intents
$payments = $modemPay->paymentIntents()->list(['limit' => 10]);
// Create a transfer
$transfer = $modemPay->transfers()->initiate([
'amount' => 1000,
'account_number' => '7012345',
'network' => 'wave',
'currency' => 'GMD',
'beneficiary_name' => 'John Doe'
], 'idempotency-key');
// Validate webhook
$event = $modemPay->webhooks()->composeEventDetails(
file_get_contents('php://input'),
$_SERVER['HTTP_X_MODEMPAY_SIGNATURE'],
'your_webhook_secret'
);
The SDK auto-registers with Laravel. View Laravel documentation →
use ModemPay\Laravel\Facades\ModemPay;
ModemPay::paymentIntents()->list();
MIT License - see LICENSE for details.