PHP code example of relesssar / epay2
1. Go to this page and download the library: Download relesssar/epay2 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/ */
relesssar / epay2 example snippets
use Relesssar\Epay2\Epay2;
$epay = new Epay2($_ENV['EPAY_IS_TEST_MODE'],$_ENV['EPAY_HOST'],$_ENV['EPAY_TERMINALID'],$_ENV['EPAY_CLIENTID'],$_ENV['EPAY_CLIENTSECRET']);
$token = $epay->getToken_pay($request);