gei Posted November 20, 2009 Share Posted November 20, 2009 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... 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.