Jump to content
  • 0

Help to understand how WHMCS with Namecheap registrar plugin works, please


Antonio

Question

Hello. I'm a developer and facing with WHMCS in first time and need to find out how this works.

Sorry if I'm wrinting my question in wrong place, but would be grateful for any help.

I have WHMCS installed with Namecheap.com WHMCS Registrar Plugin module installed and enabled (https://github.com/namecheap/domains-whmcs) and have some differences with understanding how to add domain into system.

Trying to perform "Domain Register" API request and responce is "Domain Not Found"

https://developers.whmcs.com/api-reference/domainregister/

Just instead of "domainid" I'm sending "domain" parameter with value like "testmywebsite.info" for example.

This is example of code

$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'https://MYWEBSITE/includes/api.php');
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS,
    http_build_query(
        array(
            'action' => 'DomainRegister',
            'username' => $username,
            'password' => $pass,
            'domain' => 'testmywebsite.info',
            'responsetype' => 'json',
        )
    )
);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
$response = curl_exec($ch);
curl_close($ch);

I've checked this domain here https://www.sandbox.namecheap.com/domains/domain-name-search.aspx and it was available.

I also enabled "System Module Debug Log" in WHMCS as written here https://github.com/namecheap/domains-whmcs but no logs appeared.

The thing is I don't know how this process should flow. How the needed domain should appear in WHMCS with Namecheap Registrar Plugin? Maybe I should register it via Namecheap API first and then they grab from there wo my WHMCS somehow?

Thank you.

 

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

Guest
This topic is now closed to further replies.
  • 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