maksa988 / monobank-acquiring
Requires
- php: ^7.4|^8.0
- guzzlehttp/guzzle: ^7.0
This package is auto-updated.
Last update: 2024-10-30 02:16:21 UTC
README
Unofficial SDK for Monobank Acquiring. https://api.monobank.ua/docs/acquiring.html
Accept payments via Monobank (monobank.ua) using this SDK package for your project.
- Invoices
- Wallet
- Merchant
- QR
PHP >= 8.0
Installation
Require this package with composer.
composer require "maksa988/monobank-acquiring"
Usage
To use this package you need to do some steps:
- Create config with your X-Token from acquiring cabinet or test token from api cabinet
$config = new \Maksa988\MonobankAcquiring\Config("YOUR X-TOKEN HERE");
To get more details about config read Wiki
- Create main object of SDK to call your requests and put config in constructor
$monobank = new \Maksa988\MonobankAcquiring\MonobankAcquiring($config);
- Now you can use methods from SDK
$request = new \Maksa988\MonobankAcquiring\Requests\MerchantDetailsRequest(); $result = $monobank->call($request); // $result is the Maksa988\MonobankAcquiring\Models\MerchantDetails object $result->getMerchantName(); // "12o4Vv7EWy" $result->getMerchantId(); // "Your Favourite Company"
To get more examples and methods use Wiki
Laravel
You can use this SDK with Laravel, just use maksa988/laravel-monobank-acquiring package instead
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security
If you discover any security related issues, please send me an email at maksa988ua@gmail.com instead of using the issue tracker.
Credits
License
The MIT License (MIT). Please see License File for more information.