TransferSync
%Plugin_Name%_TransferSync
Purpose
Use this function to get the status of domain transfer operation.
Input Parameters
configarray
: an array of parameters defined during plugin configuration.sld
: a second-level domain name.tld
: a top-level domain name.additionalfields
: supplementary data for further domain processing.
Return Parameters
The method returns an associative array with the following elements:
completed
: either 'true
' if the operation successfully completed, orfalse
if the operation is in progress. In case of 'false
', the method must be called again, until either 'true
' is received or an error occurs.expirydate
(optional): the domain expiration date.additionalfields
(optional): supplementary data for further domain processing.
Mandatory
No
Example
function Example_TransferSync($params) { $sld = $params["sld"]; $tld = $params["tld"]; // Restore OrderID which was previously saved by Example_RegisterDomain() $orderID = $params['additionalfields']['OrderID']; // Check if domain has been registered // $domainInfo = $api->getOrderInfo($orderID); $result = array( "completed" => true, "expirydate" => $domainInfo["expirydate"], ); // Return "completed" => false in case of pending status // return array("completed" => false); return $result; }