I am trying to make a simple hosting order form and I go key by key from the documents. all was working fine until i reached the "domains" key. although it says optional it says "invalid domains data' if I do try to put a domain and 'type' it says I must choose between 'register','transfer', or 'existing' and even after I choose either.. I still get the same answer.. here is that part of the PHP code. and I'll share the entire code so far if needed.
$data = Array(
"section"=>"order",
"command"=>"create",
"firstname"=>$first_name,
"lastname"=>$last_name,
"email"=>$email,
"address1"=>$address1,
"city"=>$city,
"zip"=>$zip,
"ip"=>$_SERVER['REMOTE_ADDR'],
"country"=>$country,
"phone"=>$phone,
"plan"=>65209,
"period"=>12,
"payment_method"=>"Wallet",
"return_url"=>"https://www.lcsitmediahosting.com/",
"price_type"=>"wholesale",
"domains"=>Array("type"=>"host")
);
$data = Array(
"section"=>"order",
"command"=>"create",
"firstname"=>$first_name,
"lastname"=>$last_name,
"email"=>$email,
"address1"=>$address1,
"city"=>$city,
"zip"=>$zip,
"ip"=>$_SERVER['REMOTE_ADDR'],
"country"=>$country,
"phone"=>$phone,
"plan"=>65209,
"period"=>12,
"payment_method"=>"Wallet",
"return_url"=>"https://www.lcsitmediahosting.com/",
"price_type"=>"wholesale",
"domains"=>Array("type"=>"host")
);
Comment