razachisibrahimah/sevotransact

sevotransact package for payment

v1.0.0 2021-05-12 14:33 UTC

This package is auto-updated.

Last update: 2024-05-12 22:01:14 UTC


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'];

Licence

MIT