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
Require this package with composer.
composer require "maksa988/monobank-acquiring"
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
You can use this SDK with Laravel, just use maksa988/laravel-monobank-acquiring package instead
Please see CHANGELOG for more information on what has changed recently.
Please see CONTRIBUTING for details.
If you discover any security related issues, please send me an email at maksa988ua@gmail.com instead of using the issue tracker.
The MIT License (MIT). Please see License File for more information.