1. Go to this page and download the library: Download epmnzava/tigosecure library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
php
namespace App\Http\Controllers;
use Tigosecure;
use Illuminate\Http\Request;
class TransactionController extends Controller
{
public function customer_transaction(){
// Tigosecure::make_payment("customerfirstname","customerlastname","customerlastname","amount","transaction_id");
$tigopesa_response=Tigosecure::make_payment("jacob","laizer","[email protected]","3000","98778835628");
return redirect($tigopesa_response->redirectUrl);
}
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.