1. Go to this page and download the library: Download simpaypl/simpay 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/ */
simpaypl / simpay example snippets
iguration = new Configuration('your_api_key', 'your_api_password', 'en');
$client = new Client([
'base_uri' => Configuration::API_BASE_URI,
]);
$api = new Simpay\DirectBillingApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
$client,
$config
);
try {
$result = $api->directBillingGetServices();
print_r($result);
} catch (\Exception $e) {
echo 'Exception when calling DirectBillingApi->directbillingGetServices: ', $e->getMessage(), PHP_EOL;
}
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.