PDA

View Full Version : Custom registrar module problem



liveq
01-27-10, 08:51 AM
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.

liveq
01-27-10, 07:46 PM
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. )

sparky
01-28-10, 05:22 AM
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

liveq
01-28-10, 04:55 PM
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.

liveq
01-28-10, 04:57 PM
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...

CSX
03-19-10, 03:07 AM
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...

hostdynamicnet
06-10-10, 03:34 PM
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,.