liveq Posted January 27, 2010 Share Posted January 27, 2010 Hello, I'm trying to implement a custom registrar module, and i've got a problem with domain reservation. This is how i see it: - user orders a domain - user choose nameservers/contact details, and payment type - user makes a checkout .... HERE DOMAIN SHOULD BE RESERVED - user makes a payment .... HERE DOMAIN IS REGISTERED But, i don't see any function in API which could reserve a domain for my customer. I've seen few WHMCS installations ( on other companies websites ), which works exactly like I said above. Which function is triggered after "CHECKOUT"? I was trying debug all functions without any success. I'll be very appreciate for any help. 0 Quote Link to comment Share on other sites More sharing options...
liveq Posted January 27, 2010 Author Share Posted January 27, 2010 Ok, I've found that "Automatic domain registration" could help. But it doesn't. Still any registrar function is not triggered by the system. Also, i've tried to use a hook with "AfterShoppingCartCheckout" and ok, hook was triggered, but array looks like this: Array ( [OrderID] => 45 [OrderNumber] => 4438630828 [invoiceID] => 31 [Products] =>. [Addons] =>. [Domains] => Array ( [0] => 33 ) ) No domain data.... What could be wrong? My registrar api implementation works fine from admin panel ( when i choose register it registers me a domain, etc. ) 0 Quote Link to comment Share on other sites More sharing options...
sparky Posted January 28, 2010 Share Posted January 28, 2010 This part [Domains] => Array ( [0] => 33 ) tells me that there is 1 domainand has an id of 33 Do a DB lookup to retrieve the domain details 0 Quote Link to comment Share on other sites More sharing options...
liveq Posted January 28, 2010 Author Share Posted January 28, 2010 Ok... I've made some review today in hole admin part of whmcs. The most weird thing is... That the new domain registration is added to database but without default registrar which was set in domains pricing module. This field is just empty. The second thing is... When i'm trying to transfer an existing domain ( in the same way - from client area ), everything works fine... domain is added with my default registrar, and custom module api function is triggered correctly. What could be a difference in registration and transfer? What could I miss in whmcs configuration? Best regards. 0 Quote Link to comment Share on other sites More sharing options...
liveq Posted January 28, 2010 Author Share Posted January 28, 2010 Oh, and about this hook thing... Let me leave it as a last chance to save my ass I know now how to resolve it with hook ( domain with this ID exists ), but I will be very happy to use this module without any SQL workarounds... 0 Quote Link to comment Share on other sites More sharing options...
CSX Posted March 19, 2010 Share Posted March 19, 2010 Ok... I've made some review today in hole admin part of whmcs. The most weird thing is... That the new domain registration is added to database but without default registrar which was set in domains pricing module. This field is just empty. The second thing is... When i'm trying to transfer an existing domain ( in the same way - from client area ), everything works fine... domain is added with my default registrar, and custom module api function is triggered correctly. What could be a difference in registration and transfer? What could I miss in whmcs configuration? Best regards. Same problem... 0 Quote Link to comment Share on other sites More sharing options...
hostdynamicnet Posted June 10, 2010 Share Posted June 10, 2010 I want help. I want to know how I cand ad in whmcs the client data when he registry himself. The invoice come just with his name and domain. I need fields like: company name, VAT, adress, phone etc Please help me,. 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.