<?php
// Example only. Rename the module to match your provider, e.g. acmereg/acmereg.php.

function acmereg_MetaData() {
    return ['DisplayName' => 'Acme Registrar', 'APIVersion' => '1.1'];
}

function acmereg_getConfigArray() {
    return [
        'ApiKey' => ['FriendlyName'=>'API Key','Type'=>'password','Size'=>'60'],
        'Sandbox' => ['FriendlyName'=>'Sandbox','Type'=>'yesno','Description'=>'Use test API'],
    ];
}

function acmereg_RegisterDomain($params) {
    // $params includes sld, tld, regperiod, ns1..ns5, client/contact details and ApiKey.
    // Call your registrar API here.
    // return ['error' => 'Provider message']; // on failure
    return []; // success
}

function acmereg_RenewDomain($params) { return []; }
function acmereg_TransferDomain($params) { return []; }
function acmereg_SaveNameservers($params) { return []; }
function acmereg_SaveRegistrarLock($params) { return []; }
function acmereg_GetEPPCode($params) { return ['eppcode'=>'EXAMPLE-CODE']; }
