Coder Social home page Coder Social logo

sample-registrar-module's People

Contributors

davidneimeyer avatar jstanford87 avatar mattpugh avatar remitur avatar whmcs-juan avatar whmcspeter avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

sample-registrar-module's Issues

cant be cloned

Cloning into 'sample-registrar-module'...
[email protected]: Permission denied (publickey).
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

GetDomainSuggestions must return an instance of \WHMCS\Domains\DomainLookup\ResultsList

Function registrarmodule_GetDomainSuggestions must return an instance of \WHMCS\Domains\DomainLookup\ResultsList

Stack Trace:

InvalidArgumentException: Return must be an instance of \WHMCS\Domains\DomainLookup\ResultsList in /var/www/whmcs/vendor/whmcs/whmcs-foundation/lib/Domains/DomainLookup/Provider/AbstractProvider.php:0
Stack trace:
#0 /var/www/whmcs/admin/whois.php(0): WHMCS\Domains\DomainLookup\Provider\AbstractProvider->getSuggestions()
#1 {main}

Consistency in 'success' index on return array

There is no consistency on when return 'success' => true or 'success' => 'success' . I suspect that the backend is evaluating success index as a boolean and therefore the string 'success' is true. Otherwise, what we should return when 'success' is false in the cases where we are returning a string?

'success' => 'success' (9)

'success' => true (7)

Configuration is not saved

Hello,

I wish to write a registrar module.

I Cloned the repo,
Renamed the module directory and file.
Replaced all occurrences of registrarmodule_ with the new name.
Uploaded the directory and activated the module.

When trying to edit configuration information, the information can't be saved.

Always "Duplicate host record" when adding record, even if record was deleted

If a previously created A record is deleted via the API, recreating a new one always produces a "Duplicate host record" when trying to recreate the record. I have verified that the record does not exist by listing all the A records first, before issuing the POST.

As far as I can tell, there there is no update option (even if you specify the RecordId during the POST), so I thought it would be best to first delete all the records, then add all the updated records from the DNS Management form. Despite the error, the records still get created.

I posted an earlier Issue that relates to this but for some reason my issue was removed. I would appreciate knowing why.

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

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.