1. Go to this page and download the library: Download gopal-g/payment 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/ */
gopal-g / payment example snippets
7.1
/* All Required Parameters by your Gateway */
$parameters = [
'tid' => '1233221223322',
'order_id' => '1232212',
'amount' => '1200.00',
];
$order = Payment::prepare($parameters);
return Payment::process($order);