PHP code example of tarsoft / toyyibpay

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

    

tarsoft / toyyibpay example snippets


use Toyyibpay;

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

Toyyibpay::getBanks();

Toyyibpay::getBanksFPX();

Toyyibpay::getPackages();

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

Toyyibpay::getCategory($category_code);

Toyyibpay::createBill($category_code, [
    'billName' => $request->bill_name,
    'billDescription' => $request->bill_description,
    ...
]);

Toyyibpay::createBill($category_code, (object)$array)

Toyyibpay::billPaymentLink($bill_code);

php artisan vendor:publish --provider="Tarsoft\Toyyibpay\ToyyibpayServiceProvider"
Toyyibpay::createBill($category_code, $array)