This project using composer.
$ composer require bearname/nowpayments-api-php Compatible with php8 and ignore platform requirements
$ composer require bearname/nowpayments-api-php --ignore-platform-reqs
Genrate random password.
<?phprequire ("vendor/autoload.php");
useNowPaymentsIO\NOWPaymentsApi;
$apiClient = newNOWPaymentsApi("YOUR API KEY");
echo$apiClient->status();require ("vendor/autoload.php");
useNowPaymentsIO\NOWPaymentsApi;
$apiClient = newNOWPaymentsApi("YOUR API KEY");
echo$apiClient->auth('username', 'password');require ("vendor/autoload.php");
useNowPaymentsIO\NOWPaymentsApi;
$apiClient = newNOWPaymentsApi('apiKey', 'token');require ("vendor/autoload.php");
useNowPaymentsIO\NOWPaymentsApi;
$apiClient = newNOWPaymentsApi('apiKey', 'token');
$params = [
id => 111,
offset => 0,
limit => 10,
order => 'DESC'
];
$apiClient.callGet('/sub-partner', $params);require ("vendor/autoload.php");
useNowPaymentsIO\NOWPaymentsApi;
$apiClient = newNOWPaymentsApi('apiKey', 'token');
$data = [
id => 111,
offset => 0,
limit => 10,
order => 'DESC'
];
$apiClient.callPost('/sub-partner/transfer', $data);