PHP code example of epmnzava / tigosecure

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/ */

    

epmnzava / tigosecure example snippets


Epmnzava\Tigosecure\TigosecureServiceProvider::class,

'Tigosecure' =>\Epmnzava\Tigosecure\TigosecureFacade::class,
bash
php artisan vendor:publish --provider="Epmnzava\Tigosecure\TigosecureServiceProvider"
 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);

    }