1. Go to this page and download the library: Download onubrooks/glade-pay 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/ */
onubrooks / glade-pay example snippets
use onubrooks\GladePay\GladePay;
$glade = new GladePay();
$amount = 30000;
$user_data = '
{
"firstname":"John",
"lastname":"Wick",
"email":"[email protected]",
"ip":"192.168.10.5",
"fingerprint": "cccvxbxbxbc"
}
';
$business_name = "Happy Glade Customer";
$user = json_decode($user_data);
//Initiate a bank transfer Transaction, country and currency are optional and defaults to 'NG' and 'NGN'
// user and business_name are also optional
$transaction = $glade->bankTransfer($amount, $user, $business_name);
//After the transaction is completed, verify to confirm final status.
$verification = $glade->verify("GP61548131820210220X");
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.