sammy-kariuki / pesaway
PesaWay Payments Package
v1.0.0
2020-12-30 11:40 UTC
Requires
- php: ^5.4.0
Requires (Dev)
- orchestra/testbench: ^4.0
- phpunit/phpunit: ^8.0
This package is auto-updated.
Last update: 2024-04-05 14:43:44 UTC
README
This is a Laravel Package for PesaWay Limited's payment API.
Installation
You can install the package via composer:
composer require sammy-kariuki/pesaway
Configuration
Edit the Config/config.php
file and edit the following:
/*----------------------------------------- |The App consumer key |------------------------------------------ */ 'consumer_key' => '', /*----------------------------------------- |The App consumer Secret |------------------------------------------ */ 'consumer_secret' => '', /*----------------------------------------- |The paybill number |------------------------------------------ */ 'paybill' => ''
Usage
Trigger Payment
Trigger payment as follows:
$paymentResponse=Pesaway::pay_bill(100, '254700xxxxxx', '10');
Verify Manual Payment
Verify a payment that's been sent to the paybill as follows:
$verifyPaymentResponse=Pesaway::verify_payment(100, '254700xxxxxx', 'OBJ69DM0JD');
Testing
composer test
Changelog
Please see CHANGELOG for more information what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security
If you discover any security related issues, please email sammy.kariuki@pesaway.com instead of using the issue tracker.
Credits
License
The MIT License (MIT). Please see License File for more information.