Skip to content

maksa988/monobank-acquiring

Repository files navigation

Monobank Acquiring PHP SDK

🇺🇦 Українською

Unofficial SDK for Monobank Acquiring. https://api.monobank.ua/docs/acquiring.html

Latest Stable Version Build Status CodeFactor Total Downloads License

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:

  1. 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

  1. Create main object of SDK to call your requests and put config in constructor
$monobank = new \Maksa988\MonobankAcquiring\MonobankAcquiring($config);
  1. 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.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages