PHP code example of fannypack / jpesa

1. Go to this page and download the library: Download fannypack/jpesa 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/ */

    

fannypack / jpesa example snippets


FannyPack\JPesa\JPesaServiceProvider::class,

'JPesa' => FannyPack\JPesa\JPesa::class,

jpesa.php

namespace App;

use FannyPack\JPesa\Billable;
use Illuminate\Database\Eloquent\Model;

class Account extends Model
{
    use Billable;
}

$response = JPesa::deposit($from_phone_number, $amount);

$response = JPesa::info($transactionId);

php artisan vendor:publish

php artisan migrate