youssouf / orange_money_php_sdk
Orange money PHP SDK
dev-main
2021-11-23 17:46 UTC
Requires
- guzzlehttp/guzzle: ^6.0
This package is auto-updated.
Last update: 2025-06-24 01:19:13 UTC
README
Orange money PHP SDK is a php package to implement orange money payment in an application
Installation
Use the package composer to install.
composer require youssouf/orange_money_php_sdk
Usage
use Donzo24\OrangeMoneySdk\OrangeMoneySdk; # returns 'object' $om = new OrangeMoneySdk([ 'clientId' => "clientId", 'clientSecret' => "clientSecret", 'merchant_key' => "key", 'currency' => "OUV", 'lang' => 'fr', 'reference' => "Compagny Name", 'production' => "true|false" ]); # returns 'bool' $response = $om->webPaymentTransactionInit([ 'order_id' => "72626272723", 'amount' => "20000", 'notif_url' => "", 'return_url' => "", 'cancel_url' => "", ]); if ($response) { echo $om->payment_url; echo $om->pay_token; echo $om->notif_token; }
Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.