PHP code example of maksa988 / monobank-acquiring

1. Go to this page and download the library: Download maksa988/monobank-acquiring library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

maksa988 / monobank-acquiring example snippets

 php
$config = new \Maksa988\MonobankAcquiring\Config("YOUR X-TOKEN HERE");
 php 
$monobank = new \Maksa988\MonobankAcquiring\MonobankAcquiring($config);
 php 
$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"