Difference between revisions of "Template:Gateways"

From WHMCS Documentation

Line 1: Line 1:
 
<includeonly>
 
<includeonly>
==Gateway Properties==
+
==Supported Features==
 
{| class="wikitable" style="text-align:center;margin:1em 1em 1em 0;background:#F9F9F9;border:1px #AAA solid;border-collapse:collapse;width:100%;"
 
{| class="wikitable" style="text-align:center;margin:1em 1em 1em 0;background:#F9F9F9;border:1px #AAA solid;border-collapse:collapse;width:100%;"
 
|-
 
|-
Line 12: Line 12:
 
|style="border:1px #AAA solid;padding:0.2em;{{#if:{{{recurring|}}}|color:darkgreen;|color:red;}}"| {{#if:{{{recurring|}}}|Yes|No}}
 
|style="border:1px #AAA solid;padding:0.2em;{{#if:{{{recurring|}}}|color:darkgreen;|color:red;}}"| {{#if:{{{recurring|}}}|Yes|No}}
 
|style="border:1px #AAA solid;padding:0.2em;{{#if:{{{refunds|}}}|color:darkgreen;|color:red;}}"| {{#if:{{{refunds|}}}|Yes|No}}
 
|style="border:1px #AAA solid;padding:0.2em;{{#if:{{{refunds|}}}|color:darkgreen;|color:red;}}"| {{#if:{{{refunds|}}}|Yes|No}}
{{#ifeq:{{{type|}}}|"token"|
+
{{#ifeq:{{{type}}}|token|<nowiki>
 
|-
 
|-
!style='border:1px #AAA solid;padding:0.2em;background:#F2F2F2;text-align:center;'| Update Card
+
!style="border:1px #AAA solid;padding:0.2em;background:#F2F2F2;text-align:center;"| Update Card
!style='border:1px #AAA solid;padding:0.2em;background:#F2F2F2;text-align:center;'| Delete Card
+
!style="border:1px #AAA solid;padding:0.2em;background:#F2F2F2;text-align:center;"| Delete Card
!style='border:1px #AAA solid;padding:0.2em;background:#F2F2F2;text-align:center;'| Register Nameservers
+
!style="border:1px #AAA solid;padding:0.2em;background:#F2F2F2;text-align:center;"| Register Nameservers
!style='border:1px #AAA solid;padding:0.2em;background:#F2F2F2;text-align:center;'| DNS Record Management
+
!style="border:1px #AAA solid;padding:0.2em;background:#F2F2F2;text-align:center;"| DNS Record Management
 
|-
 
|-
|style='border:1px #AAA solid;padding:0.2em;{{#if:{{{updatecc|}}}|color:darkgreen;|color:red;}}'| {{#if:{{{updatecc|}}}|Yes|No}}
+
|style="border:1px #AAA solid;padding:0.2em;</nowiki>{{#if:{{{updatecc|}}}|color:darkgreen;|color:red;}}"<nowiki>| </nowiki>{{#if:{{{updatecc|}}}|Yes|No}}<nowiki>
|style='border:1px #AAA solid;padding:0.2em;{{#if:{{{deletecc|}}}|color:darkgreen;|color:red;}}'| {{#if:{{{deletecc|}}}|Yes|No}}
+
|style="border:1px #AAA solid;padding:0.2em;</nowiki>{{#if:{{{deletecc|}}}|color:darkgreen;|color:red;}}"<nowiki>| </nowiki>{{#if:{{{deletecc|}}}|Yes|No}}<nowiki>
|style='border:1px #AAA solid;padding:0.2em;{{#if:{{{regns|}}}|color:darkgreen;|color:red;}}'| {{#if:{{{regns|}}}|Yes|No}}
+
|style="border:1px #AAA solid;padding:0.2em;</nowiki>{{#if:{{{regns|}}}|color:darkgreen;|color:red;}}"<nowiki>| </nowiki>{{#if:{{{regns|}}}|Yes|No}}<nowiki>
|style='border:1px #AAA solid;padding:0.2em;{{#if:{{{dnsmanagement|}}}|color:darkgreen;|color:red;}}'| {{#if:{{{dnsmanagement|}}}|Yes|No}}|}}
+
|style="border:1px #AAA solid;padding:0.2em;</nowiki>{{#if:{{{dnsmanagement|}}}|color:darkgreen;|color:red;}}"<nowiki>| </nowiki>{{#if:{{{dnsmanagement|}}}|Yes|No}}}}
 
|}</includeonly><noinclude>
 
|}</includeonly><noinclude>
 
Registrar features grid template, produces something like:
 
Registrar features grid template, produces something like:
{{gateways
+
{{gateway
 
| type = token
 
| type = token
 
| recurring = yes
 
| recurring = yes
 
}}
 
}}
 
To use:
 
To use:
  <nowiki>{{gateways</nowiki>
+
  <nowiki>{{gateway</nowiki>
 
  | type = token
 
  | type = token
 
  | onetime = yes
 
  | onetime = yes
 
  | recurring = yes
 
  | recurring = yes
 
 
  <nowiki>}}</nowiki>
 
  <nowiki>}}</nowiki>
  
You should '''only''' provide the options that the gateway supports. For example, saying 'onetime = no' would not have worked.
+
You should '''only''' provide the options that the gateway supports. For example, saying 'whois = no' would not have worked.
  
 
Full list of options (case sensitive):
 
Full list of options (case sensitive):
 
* type - token or cc. Omit for 3rd Party
 
* type - token or cc. Omit for 3rd Party
 
* onetime  
 
* onetime  
* recurring
 
 
</noinclude>
 
</noinclude>

Revision as of 10:59, 9 October 2012

Registrar features grid template, produces something like: Template:Gateway To use:

{{gateway
| type = token
| onetime = yes
| recurring = yes
}}

You should only provide the options that the gateway supports. For example, saying 'whois = no' would not have worked.

Full list of options (case sensitive):

  • type - token or cc. Omit for 3rd Party
  • onetime