1. Go to this page and download the library: Download bhavinjr/eazypay 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 Bhavinjr\Eazypay\Eazypay;
class PaymentController extends Controller
{
public function payment()
{
$amount = 10;
$refrenceNo = 1; //stands for order id or any other related to database table
$optionalField = '10|10|10|10'; (optional) //must be pass in pipe delimeter based on icici eazypay payment integration kit
$eazypay = new Eazypay();
$paymentUrl = $eazypay->getPaymentUrl($amount,$refrenceNo,$optionalField);
return redirect()->to($paymentUrl); //it will redirect to your payment gateway site
}
}