Statistics
3
0
0
52d
Badges
Tags
api
Dependencies

FIO payment authorizator

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...
    }
);
  • v1.0.2 Add support for fulltext search of variable symbol in user message.

  • v1.0.1

  • v1.0.0

Is this addon outdated? Did you find an issue? Please report it.

Componette Componette admin@componette.com