PHP code example of zenditplatform / zendit-php-sdk
1. Go to this page and download the library: Download zenditplatform/zendit-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/ */
zenditplatform / zendit-php-sdk example snippets
Zendit\ZenditAPI;
$zendit = new ZenditAPI('YOUR_API_KEY');
try {
$result = $apiInstance->balanceGet();
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling ZenditSdk->balanceGet: ', $e->getMessage(), PHP_EOL;
}
bash
php example.php