storewid / pesapal
Php library wrapper for pesapal
1.0.8
2024-09-23 07:16 UTC
Requires
- php: ^7.4|^8.0
- guzzlehttp/guzzle: ^7.4
Requires (Dev)
- phpunit/phpunit: ^9.0
README
This is a php library for intergrating with - [pesapal service] (https://developer.pesapal.com/) More information of this can be found here
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 storewid/pesapal
Usage
<?php namespace App\Http\Controllers; use Storewid\Pesapal; use Illuminate\Http\Request; class TransactionController extends Controller { // public function customer_makepayment(){ $payment=new Pesapal($key, $secret, $endpoint, $currency, $callback,null); $response=$payment->processpayment($firstname, $lastname, $phone_number, $email, $amount, $description, $reference, $type = "MERCHANT"); //response will be an iframe echo $response; }
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 devs@storewid.com instead of using the issue tracker.
Credits
License
The MIT License (MIT). Please see License File for more information.