Pesa SDK
This is where your description should go. Try and limit it to a paragraph or two, and maybe throw in a mention of what PSRs you support to avoid any confusion with users and contributors.
Installation
You can install the package via composer:
composer require openpesa/pesa
Usage
use Openpesa\SDK\Pesa;
// Set the consumer key and consumer secret as follows
$username = 'YOUR_USERNAME'; // use 'sandbox' for development in the test environment
$apiKey = 'YOUR_API_KEY'; // use your sandbox app API key for development in the test environment
// Get one of the services
$pesa = new Pesa($public_key, $apiKey);
// Use the service
$result = $pesa->c2b($invoice_id, $phone_number, $amount, $reference_id, $shortcode);
print_r($result);
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 [email protected] instead of using the issue tracker.
Credits
License
The MIT License (MIT). Please see License File for more information.
PHP Package Boilerplate
This package was generated using the PHP Package Boilerplate.