Jump to content

Automate domain transfer with script


gei

Recommended Posts

Hello all,

 

I'm writing a registrar module and have most things working properly. One thing I'd like to automate is domain transfers.

 

At the moment a client CAN order a domain transfer using this custom module. However all the module will do is initiate the request for transfer. The registrant will have to confirm it manually via email. This is all fine.

 

What I'd like to do is build a script that will check the registry to see when the transfer has been completed, and then renew the domain for the length the original order was for (ie 1 year). And also update the expiry date in WHMCS. And run the script every couple of hours.

 

Here is what I'm thinking needs to be done:

 

- check tbldomains for type:"Transfer" and status:"Pending Transfer" and iterate through (or is there somewhere else I should be checking?)

 

- check the registry for each domain to see if it has been transfered (this I can do)

 

- if the domain is not transfered, do nothing. if it has been transfered, change tbldomains.status to Active and set the expiry date. (any other fields I need to set? like recurringamount, registrationperiod, nextduedate, nextinvoicedate?)

 

- before I set the new expiry date in tbldomains I need to renew the domain for the length of the original order. how can I get this info?

 

- delete the "to do" item (can this be automated? if so how do I figure out which one)

 

anything else I need to do (update any other tables/fields?) once the transfer has completed?

 

if I could get the code for that enomsync script it might make my life much easier...

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