1. Go to this page and download the library: Download obrainwave/paygate 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/ */
use Paygate;
$payload = array(
'provider' => 'gtpay',
'provider_token' => 'GTPAY_SECRET_KEY', // Make sure you don't expose this in your code
'reference' => 'T2CZ143DUMG',
);
$payment = Paygate::verifyPayment($payload);