PHP code example of hannanyusop / toyyibpay

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

    

hannanyusop / toyyibpay example snippets


Hannan\Toyyibpay\ToyyibpayServiceProvider::class,

'Toyyibpay' => Hannan\Toyyibpay\ToyyibpayFacade::class,

use Toyyibpay;

class MyController extends Controller
{
  // Controller functions here...
}

Toyyibpay::getBanks();

Toyyibpay::getBanksFPX();

Toyyibpay::getPackages();

Toyyibpay::createCategory($name, $description);

Toyyibpay::getCategory($code);

Toyyibpay::createBill($code, $bill_object);

Toyyibpay::billPaymentLink($bill_code);

php artisan vendor:publish --provider="Hannan\Toyyibpay\ToyyibpayServiceProvider"