bni-ecollection/ecoll-callback

An extension to get BNI eCollection Callback Request

Installs: 1

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

Type:yii2-extension

0.0.1 2017-11-15 16:02 UTC

This package is not auto-updated.

Last update: 2025-04-27 07:56:07 UTC


README

An extension to get BNI eCollection Callback API

Requirements

PHP 5.4.0 and Yii2 ~2.0.5.

Installation

The preferred way to install this extension is through composer.

Either run

composer require --prefer-dist bni-ecollection/ecoll-callback "*"

or add

"bni-ecollection/ecoll-callback": "*"

to the require section of your composer.json file.

Usage

Once the extension is installed, simply include the Callback class :

use ecoll\callback\Callback;

then use it in your code like :

$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);