WHMCS / sample-registrar-module

Sample domain registrar module for WHMCS
MIT License
40 stars 47 forks source link

Behaviour of WHMCS\Domains\DomainLookup\SearchResult::STATUS_UNKNOWN #11

Open playmono opened 3 years ago

playmono commented 3 years ago

Hi,

I'm developing some modules for WHMCS and I noticed some inconsistency behaviour using WHMCS\Domains\DomainLookup\SearchResult::STATUS_UNKNOWN.

When I Check Availability from Client Area (through CheckAvailability function), if I return STATUS_UNKNOWN, Client Area says that that domain is unavailable:

image

However, in suggested domains, when that domain shows up to be checked (consequently to call CheckAvailability function again), if I return STATUS_UNKNOWN, it allows me to add to the cart:

image

Conclusion: When I return STATUS_UNKNOWN for a domain, I can't register it through the regular way but I CAN register it through suggested domains.

I don't know if I'm missing something... Can someone clarify this?

Thank you.