Jump to content

Enom New TLDs AddOn Widget - Has Anyone Got it work?


WyteNyte

Recommended Posts

Hello hello.

 

I've spent 3days now trying to get the new TLDs Addon Widget to work. I spent 4 Hours last night talking to an Enom representative to no avail. I did message the nice people here at whmcs and I've searched the internet hard. I'm starting to lose faith. So here is what I beleive must be done.

 

1) you need you IP whitelisted from enom (Which I've Done)

2) You need to insert the snippet they give you behind a login page (Which I've tried in numerous places)

 

     <div id="tldportal-root"></div>
      <script src="https://tldportal.com/api/embed?<?php echo $TOKEN;?>' type="text/javascript">
      </script>

 

3) This Snippet does't work by itself. You must use php or perhaps asp to make it work. The php code that us and enom came up with looks like this.

 

<?php
$TOKEN = '';
$postfields = array();
$postfields['embeded'] = "1";
$postfields['uid'] = 'MyEnomResellerID';
$postfields['pw'] = 'MyEnomPassword';
$postfields['portaluserid'] = 'MY-Logged-In-User-ID';
$postfields['email'] = 'MY-Logged-In-User-Email@Email.com';
$postfields['command'] = "PORTAL_GETTOKEN";
$postfields['responsetype'] = "XML";

$query_string = "";
foreach ($postfields AS $k=$v)
$query_string .= "$k=".urlencode($v)."&";

$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'https://resellertest.enom.com/interface.asp');
curl_setopt($ch, CURLOPT_POSTFIELDS, $query_string);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0);
curl_setopt($ch, CURLOPT_CURLOPT_TIMEOUT, 100);
$data = curl_exec($ch);
if (curl_error($ch)) {
echo "CURL Error: ".curl_errno($ch)." - ".curl_error($ch);
}
curl_close ($ch);
$xmldata = simplexml_load_string($data);
$TOKEN = $xmldata->{'token'};

?>

------------------------------------------------------------------------------------

I'm starting to become really frustrated and I found out that others are having the same problem. Please offer any suggestion. I'm all ears. Thanks in advance.

 

-WyteNyte

Link to comment
Share on other sites

Yeah you guys are great, Thanks!

 

Problem Resolved

 

I made the mistake. I've spent 3 days turning over rocks looking for a resolution to a problem that didn't exist.

 

It turns out the New TLD Addon is configured pretty much correctly from the get go. No advance PHP skills are needed. lol.

 

What it turned out being was in the General settings of WHMCS I had the wrong url for the whmcs system location. Its imperative that you add The WWW in front of the .yourdomainname.com I overlooked something so so simple (shakes head).

Link to comment
Share on other sites

  • 9 months later...

I know this post is a year old, but I could use the same help! I just want to offer the New TLDs and it just seems SO HARD! The whois servers at WHMCS/enom solution don't just "support" this, so you have to use the widget that enom creates to access the API. I installed the WHMCS add-on for enom New TLDs, entered the information, saved it, but I don't know what to do next! There is not really any instruction.

 

From the above post, it indicates there should be no coding, but I am... well help!!! I have been through enom support and WHMCS support. Nothing.

 

Josh

Link to comment
Share on other sites

  • WHMCS Support Manager

Hi,

The new gTLDs are registered in the normal way (add your pricing to the Setup > Products/Services > Domain Pricing) and clients place their orders via cart.php or domainchecker.php.

 

WHMCS can check the availability of a number of the new gTLDs out-of-the-box, but with more and more being launched every day it's hard to keep up. If there are any specific ones you'd like to offer, instructions for adding them to the availability checker are published at http://docs.whmcs.com/Domains_Configuration#Adding_Additional_WHOIS_Services

 

The eNom new TLD Addon allows clients to monitor new gTLDs which have not yet reached general availability and will notify then when it enters general availability so they can go and register it.

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