purchasePrivacyProtection() - Buy Whois Protection
If the whois hiding feature of the domain name is paid, this function enables purchasing and activation.
public function purchasePrivacyProtection($params=[]){
$domain = idn_to_ascii($params["domain"],0,INTL_IDNA_VARIANT_UTS46);
$apply = $this->api->purchase_whois_privacy($domain);
if(!$apply){
$this->error = $this->api->error;
return false;
}
return true;
}
Parameters;
- $params Provides the value of [options] index in the $order variable in the class.
Retrieval Value;
Boolean (true or false)