BNI eCollection Callback
An extension to get BNI eCollection Callback API, (*1)
Requirements
PHP 5.4.0 and Yii2 ~2.0.5., (*2)
Installation
The preferred way to install this extension is through composer., (*3)
Either run, (*4)
composer require --prefer-dist bni-ecollection/ecoll-callback "*"
or add, (*5)
"bni-ecollection/ecoll-callback": "*"
to the require section of your composer.json
file., (*6)
Usage
Once the extension is installed, simply include the Callback class :, (*7)
use ecoll\callback\Callback;
then use it in your code like :, (*8)
$call = new Callback();
$sk = "clientSecretKey";
$raw_data = 'raw php://input data';
$BniHashingClass = "\app\components\BniHashing";
$parsed_data = $call->parseData($BniHashingClass, $raw_data, $sk);
print_r($parsed_data);