Componette

Componette

baraja-core

baraja-core / fio-payment-authorizator v1.2.2

Fio bank payment authorizator

download-cloud-line composer require baraja-core/fio-payment-authorizator

Fio bank payment authorizator

Integrity check

Simple package for search payments in your bank account by API and authorize new orders.

Install

By Composer:

composer require baraja-core/fio-payment-authorizator

And create service by Neon:

services:
    - FioPaymentAuthorizator(%fio.privateKey%)

parameters:
    fio:
        privateKey: xxx

Use

In presenter use very simply:

/** @var FioPaymentAuthorizator $fio **/
$fio = $this->context->getByType(FioPaymentAuthorizator::class);

// Or simply:

$fio = new FioPaymentAuthorizator('private-key');

dump($fio->process()); // Get last month bank data as TransactionResult.

// Check account and authorize new orders

$unauthorizedVariables = [];

$fio->authOrders(
    $unauthorizedVariables,
    function (Transaction $transaction): void {
        // Do something...
    }
);
bar-chart-fill

Statistics

download-cloud-fill
551
star-fill
3
bug-fill
0
flashlight-fill
12d
price-tag-2-line

Badges

guide-fill

Dependencies

php (>=7.1.0)
Componette Componette felix@nette.org