2017 © Pedro Peláez
 

library esunacq

EsunBank ACQ Payment API

image

corneltek/esunacq

EsunBank ACQ Payment API

  • Wednesday, May 11, 2016
  • by c9s
  • Repository
  • 1 Watchers
  • 12 Stars
  • 32 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 4 Forks
  • 1 Open issues
  • 2 Versions
  • 3 % Grown

The README.md

Payment Library for ESUN ACQ

Latest Stable Version Latest Unstable Version Total Downloads, (*1)

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., (*2)

Installation

composer require corneltek/esunacq

Usage

For the config variables, please check your documentation from Esunbank., (*3)

AuthRequestBuilder

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 = '...');

AuthResponseVerifier

use EsunBank\ACQ\AuthResponseVerifier;
$verifier = new AuthResponseVerifier('MAC KEY', [
    'MID' => '...',
]);
$this->assertTrue($verifier->verify($_REQUEST));

See examples for more details., (*4)

The Versions

11/05 2016

dev-master

9999999-dev

EsunBank ACQ Payment API

  Sources   Download

proprietary

The Requires

 

by Avatar c9s

11/05 2016

1.0.0

1.0.0.0

EsunBank ACQ Payment API

  Sources   Download

proprietary

The Requires

 

by Avatar c9s