Jump to content
  • 0

Domain Year Limits For New Domain Registrar Plugin


Question

Posted

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.

3 answers to this question

Recommended Posts

  • 0
Posted

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.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...