razachisibrahimah / sevotransact
sevotransact package for payment
Installs: 11
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 1
Forks: 1
Open Issues: 0
pkg:composer/razachisibrahimah/sevotransact
Requires
- prinx/dotenv: ^0.4.3
Requires (Dev)
- phpunit/phpunit: ^9.5
README
Interact easily with the Sevotransact API.
Installation
composer require razachisibrahimah/sevotransact
Usage
$momo = new MomoCollection; $amount = 0.2; $phone = '233...'; $channel = ''; // MTN|VODAFONE|AIRTEL $response = $momo->pay($amount, $phone, $channel); $status = $response['status']; // 200 $message = $response['message']; // success $transactionId = $response['data']['client-reference']; $code = $response['data']['code']; // 100 $msisdn = $response['data']['msisdn'];