baraja-core / fio-payment-authorizator
FIO payment authorizator.
Installs: 2 718
Dependents: 1
Suggesters: 0
Security: 0
Stars: 3
Watchers: 2
Forks: 0
Open Issues: 0
Requires
- php: ^8.1
- baraja-core/bank-transaction-authorizator: ^2.0
Requires (Dev)
- nette/caching: ^3.1
- phpstan/extension-installer: ^1.1
- phpstan/phpstan: ^1.0
- phpstan/phpstan-deprecation-rules: ^1.0
- phpstan/phpstan-nette: ^1.0
- phpstan/phpstan-strict-rules: ^1.0
- roave/security-advisories: dev-master
- spaze/phpstan-disallowed-calls: ^2.0
README
BRJ organisation 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 for installation, and you can also find the package on Packagist and GitHub.
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:
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... } );
📄 License
baraja-core/fio-payment-authorizator
is licensed under the MIT license. See the LICENSE file for more details.