razachisibrahimah / sevotransact
sevotransact package for payment
v1.0.0
2021-05-12 14:33 UTC
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'];