Jump to content

send domain additional fields to whmcs


andreig.

Recommended Posts

 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.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated