https://github.com/baraja-core/fio-payment-authorizator
Fio bank payment authorizator
https://github.com/baraja-core/fio-payment-authorizator
authorizator bank fio fio-payment-authorizator payment
Last synced: about 1 month ago
JSON representation
Fio bank payment authorizator
- Host: GitHub
- URL: https://github.com/baraja-core/fio-payment-authorizator
- Owner: baraja-core
- License: mit
- Created: 2019-08-29T08:16:27.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2024-06-09T20:19:03.000Z (11 months ago)
- Last Synced: 2025-03-24T13:05:12.978Z (about 2 months ago)
- Topics: authorizator, bank, fio, fio-payment-authorizator, payment
- Language: PHP
- Homepage: https://php.baraja.cz
- Size: 47.9 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Fio bank payment authorizator
=============================
Simple package for search payments in your bank account by API and authorize new orders.
📦 Installation
---------------It's best to use [Composer](https://getcomposer.org) for installation, and you can also find the package on
[Packagist](https://packagist.org/packages/baraja-core/fio-payment-authorizator) and
[GitHub](https://github.com/baraja-core/fio-payment-authorizator).To install, simply use the command:
```
$ composer require baraja-core/fio-payment-authorizator
```You can use the package manually by creating an instance of the internal classes, or register a DIC extension to link the services directly to the Nette Framework.
And create service by Neon:
```yaml
services:
- FioPaymentAuthorizator(%fio.privateKey%)parameters:
fio:
privateKey: xxx
```Use
---In presenter use very simply:
```php
/** @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...
}
);
```📄 License
-----------`baraja-core/fio-payment-authorizator` is licensed under the MIT license. See the [LICENSE](https://github.com/baraja-core/template/blob/master/LICENSE) file for more details.