PHP code example of ben221199 / oxxa-api
1. Go to this page and download the library: Download ben221199/oxxa-api 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/ */
ben221199 / oxxa-api example snippets
$username = 'myUsername'; // Your API username
$password = 'myPassword'; // Your API password
$useMD5 = true; // When true, password is send in its MD5 form.
$isTesting = false; // When true, payment wil not occur
$oxxaApi = new \Ben221199\Oxxa\API\OxxaAPI('https://api.oxxa.com',$username,$password,$useMD5,$isTesting);
$xml = $oxxaApi->DOMAIN_CHECK([
'sld' => 'myDomain',
'tld' => 'com',
]);