andreig. Posted October 12, 2018 Share Posted October 12, 2018 Hi, I want to use Domains Reseller For WHMCS by modulesgarden to give my resellers the opportunity to resell .ro domains, the plugin is great and is working as expected, but I face an issue if somebody is trying to register a domain via php/curl using the documentation . I don't know how to create the array "domainfields" that will send to whmcs the identification details of the person that is registering the domain. whmcs has this additional fields defined in the dist.additionalfields.php for .ro domains $ro_person_type = array ( 'p|Private Person', 'ap|Authorized Person', 'nc|Non-Commercial Organization', 'c|Commercial', 'gi|Government Institute', 'pi|Public Institute', 'o|Other Juridicial', ); $additionaldomainfields['.ro'][] = array('Name' => 'CNPFiscalCode', 'Type' => 'text', 'Size' => '20'); $additionaldomainfields['.ro'][] = array('Name' => 'Registration Number', 'Type' => 'text', 'Size' => '20'); $additionaldomainfields['.ro'][] = array('Name' => 'Registrant Type', 'Type' => 'dropdown', 'Options' => implode(',', $ro_person_type), 'Required' => true); $additionaldomainfields['.arts.ro'] = $additionaldomainfields['.ro']; $additionaldomainfields['.co.ro'] = $additionaldomainfields['.ro']; $additionaldomainfields['.com.ro'] = $additionaldomainfields['.ro']; $additionaldomainfields['.firm.ro'] = $additionaldomainfields['.ro']; $additionaldomainfields['.info.ro'] = $additionaldomainfields['.ro']; $additionaldomainfields['.nom.ro'] = $additionaldomainfields['.ro']; $additionaldomainfields['.nt.ro'] = $additionaldomainfields['.ro']; $additionaldomainfields['.org.ro'] = $additionaldomainfields['.ro']; $additionaldomainfields['.rec.ro'] = $additionaldomainfields['.ro']; $additionaldomainfields['.ro.ro'] = $additionaldomainfields['.ro']; $additionaldomainfields['.store.ro'] = $additionaldomainfields['.ro']; $additionaldomainfields['.tm.ro'] = $additionaldomainfields['.ro']; $additionaldomainfields['.www.ro'] = $additionaldomainfields['.ro']; I tried with "domainfields" => base64_encode(serialize(array_values(array("ro_person_type"=>"c","CNPFiscalCode"=>"30911070") But is not working because the ro_person_type and CNPFiscalCode is not sent the correct way, this is what whmcs received https://prnt.sc/l4pq4x instead of this https://prnt.sc/l59abj I tried to contact modulesgaden but their support is slow or incapable of understanding the situation. Any help is appreciated. Thanks. 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.