This payment library isn't tight coupled to the frameworks, models or db connections, you can use this library to build up the forms or verify the response separately.
composer require corneltek/esunacq
For the config variables, please check your documentation from Esunbank.
use EsunBank\ACQ\AuthRequestBuilder;
use EsunBank\ACQ\TxnType;
$builder = new AuthRequestBuilder('MAC KEY', [
'MID' => '...',
'CID' => '...',
'U' => '/path/to/response',
]);
$formFields = $builder->formFields('ORDER' . time(), 200, TxnType::INSTALLMENT, $ic = '...', $bpf = '...');
use EsunBank\ACQ\AuthResponseVerifier;
$verifier = new AuthResponseVerifier('MAC KEY', [
'MID' => '...',
]);
$this->assertTrue($verifier->verify($_REQUEST));
See examples
for more details.