storewid / tigopesa
Tigopesa library for php developers
1.0.4
2021-11-07 15:21 UTC
Requires
- php: ^7.4|^8.0
- guzzlehttp/guzzle: ^7.4
Requires (Dev)
- phpunit/phpunit: ^9.0
README
Installation
Version Matrix
You can install the package via composer:
composer require storewid/tigopesa
Usage
This is unpinionated tigopesa php library .
<?php namespace App\Http\Controllers; use BillMe; use Illuminate\Http\Request; use Epmnzava\LocationDemografia\Models\Country; use Epmnzava\LocationDemografia\Models\State; use Epmnzava\Bulksms\Bulksms; use Epmnzava\Telerivet\Telerivet; use Epmnzava\Tigosecure\Tigosecure; use Spatie\SslCertificate\SslCertificate; use Storewid\Tigopesa; use Illuminate\Http\Request; class TransactionController extends Controller { public function transaction(){ //instatiate $payment=new Tigopesa($endpoint,$clientid, $clientsecret, $account_number, $pin, $account_id, $redirect_url, $callback_url, $lang, $currency); $response=$payment->processpayment("emmanuel","mnzava","devs@storewid.com",4000,"48fhldplofhf".rand(5,100)); return redirect($response->redirectUrl); }
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.