1. Go to this page and download the library: Download zugetor/gbprimepay 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/ */
zugetor / gbprimepay example snippets
use Zugetor\Gbprimepay\Facade\QrCode;
$response = QrCode::setAmount(100.00)
->setRefNo("A001")
->setBackgroundUrl("http://www.test.example/webhook")
->qrCash();
dd($response);
use Zugetor\Gbprimepay\Facade\QrCode;
$response = QrCode::setAmount(100.00)
->setRefNo("A001")
->setBackgroundUrl("http://www.test.example/webhook")
->qrCredit();
dd($response);
use Zugetor\Gbprimepay\Facade\MobileBanking;
//004 = KPLUS , 014 = SCB EASY (Only open in mobile) , 025 = KMA (Krungsri), 002 = BBL (Only open in mobile), 006 = KTB (Krungthai)
$response = MobileBanking::setAmount(100.00)
->setRefNo("A001")
->setBackgroundUrl("http://www.test.example/webhook")
->setResponseUrl("http://www.test.example/order")
->setBankCode("004")
->send();
dd($response);
php artisan vendor:publish --tag=config
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.