alphaolomi/php-evpay

Payments with Evpay

v1.0.1 2023-09-11 09:37 UTC

README

Tests Fix PHP code style issues Packagist Downloads

Installation

You can install the package via Composer:

composer require alphaolomi/laravel-evpay

Usage

use Alphaolomi\EvPay\EvPayService;

$evPayClient = new EvPayService([
    'name' => 'E-learning Platform',
    'username' => 'username',
    'callback' => 'https://e-learn-platform.com/callback',
]);

$response =  $evPayClient->paymentRequest([
    'mobileNo' => '0747991498',
    'amount' => 3000,
    'product' => 'Monthly Subscription',
    'network' => 'Mpesa',
]);

var_dump($response);

Testing

composer test

Changelog

Please see CHANGELOG for more information on what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security Vulnerabilities

Please review our security policy on how to report security vulnerabilities.

Credits

License

The MIT License (MIT). Please see License File for more information.