<?php
require_once('cpayeer.php');
$accountNumber = 'xxxxxxx';
$apiId = 'xxxxxxx';
$apiKey = 'xxxxxxxxxxx';
$payeer = new CPayeer($accountNumber, $apiId, $apiKey);
if ($payeer->isAuth())
{
$arPs = $payeer->getPaySystems();
echo '<pre>'.print_r($arPs, true).'</pre>';
}
else
{
echo '<pre>'.print_r($payeer->getErrors(), true).'</pre>';
}
?>
Убираю <pre>, выводится массив:
Array
(
[auth_error] => 0
[list] => Array
(
[xxxxxxxxxx] => Array
(
[id] => xxxxxxxxx
[name] => Bitcoin
[gate_commission] => Array
(
[BTE] => 0.21%+0.0010021
)
[gate_commission_min] => Array
(
)
[gate_commission_max] => Array
(
)
[currencies] => Array
(
[0] => BTE
)
[commission_site_percent] => 2.9
[r_fields] => Array
(
[ACCOUNT_NUMBER] => Array
(
[name] => Bitcoin-address
[reg_expr] => #^([A-Za-z0-9]+)$#
[example] => dmfksdfu89d7sfsjdklfn
)
)
)
как мне заставить работать этот код? Спасибо.