Jump to content
  • 0

Domain Year Limits For New Domain Registrar Plugin


Paul Battaglia

Question

I'm developing  a new plugin for Synergy Wholesale. Is there a general rule on how to define the year limits for registration of domains. For example, .com domains can be registered from 1 to 10 years but .com.au can only be registered for 2 years.

 

I want to stop admins from allowing periods that the registrar will reject.

 

I'm looking at a best practice way of doing this.

Link to comment
Share on other sites

3 answers to this question

Recommended Posts

  • 0

I assume you mean 'module' rather than 'plugin', as they have very different meanings in Blesta.

 

When a service is added, the module is checked for validation against the given domain name. This is where an error should be raised if the module determines the period is invalid for the domain's TLD rules.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...