PHP code example of vldmr-k / mono-acquiring
1. Go to this page and download the library: Download vldmr-k/mono-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/ */
vldmr-k / mono-acquiring example snippets
$token = '...';
$config = new \VldmrK\MonoAcquiring\Config($token);
$api = new \VldmrK\MonoAcquiring\Api($config);
$response = $api->call(new \VldmrK\MonoAcquiring\Query\PubkeyQuery());
print_r($response->toArray()); // ['key' => '....']
$token = '...';
$config = new \VldmrK\MonoAcquiring\Config($token);
$api = new \VldmrK\MonoAcquiring\Api($config);
$response = $api->call(new \VldmrK\MonoAcquiring\Query\DetailsQuery());
print_r($response); // [ 'merchantId' => 'test_A4EaPDryzz', 'merchantName' => 'Test Caption']