PHP code example of masspayio / masspay-php-sdk
1. Go to this page and download the library: Download masspayio/masspay-php-sdk 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/ */
masspayio / masspay-php-sdk example snippets
asspaySdk\Client;
use MasspaySdk\Config\ApiConfig;
$config = new ApiConfig();
$config->bearer_token = 'YOUR_BEARER_TOKEN';
$client = new Client($config);
try {
$result = $client->account->getAccountBalance();
var_dump($result);
} catch (Exception $e) {
var_dump($e);
}
json
{
"repositories": [
{
"type": "vcs",
"url": "https://github.com/masspayio/masspay-php-sdk.git"
}
],
"