Difference between revisions of "Template:Gateways"

From WHMCS Documentation

m
Line 4: Line 4:
 
|-
 
|-
 
!style="border:1px #AAA solid;padding:0.2em;background:#F2F2F2;text-align:center;"| Type  
 
!style="border:1px #AAA solid;padding:0.2em;background:#F2F2F2;text-align:center;"| Type  
!style="border:1px #AAA solid;padding:0.2em;background:#F2F2F2;text-align:center;"| Transfer
+
!style="border:1px #AAA solid;padding:0.2em;background:#F2F2F2;text-align:center;"| One Time
!style="border:1px #AAA solid;padding:0.2em;background:#F2F2F2;text-align:center;"| Renew
+
!style="border:1px #AAA solid;padding:0.2em;background:#F2F2F2;text-align:center;"| Recurring
!style="border:1px #AAA solid;padding:0.2em;background:#F2F2F2;text-align:center;"| Registrar Lock
+
!style="border:1px #AAA solid;padding:0.2em;background:#F2F2F2;text-align:center;"| Refunds
!style="border:1px #AAA solid;padding:0.2em;background:#F2F2F2;text-align:center;"| Update Nameservers
 
 
|-
 
|-
 
|style="border:1px #AAA solid;padding:0.2em;color:darkgreen;"| {{#switch:{{{type|}}} | token = Token | cc = Credit Card | #default = 3rd Party}}
 
|style="border:1px #AAA solid;padding:0.2em;color:darkgreen;"| {{#switch:{{{type|}}} | token = Token | cc = Credit Card | #default = 3rd Party}}
|style="border:1px #AAA solid;padding:0.2em;{{#if:{{{transfer|}}}|color:darkgreen;|color:red;}}"| {{#if:{{{transfer|}}}|Yes|No}}
+
|style="border:1px #AAA solid;padding:0.2em;{{#if:{{{onetime|}}}|color:darkgreen;|color:red;}}"| {{#if:{{{onetime|}}}|Yes|No}}
|style="border:1px #AAA solid;padding:0.2em;{{#if:{{{renew|}}}|color:darkgreen;|color:red;}}"| {{#if:{{{renew|}}}|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:{{{lock|}}}|color:darkgreen;|color:red;}}"| {{#if:{{{lock|}}}|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:{{{dns|}}}|color:darkgreen;|color:red;}}"| {{#if:{{{dns|}}}|Yes|No}}
+
{{#ifeq:{{{type}}}|token|"
 
|-
 
|-
!style="border:1px #AAA solid;padding:0.2em;background:#F2F2F2;text-align:center;"| Update WHOIS
+
!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;"| Get EPP Code
+
!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;background:#F2F2F2;text-align:center;"| Email Forwarding
 
 
|-
 
|-
|style="border:1px #AAA solid;padding:0.2em;{{#if:{{{whois|}}}|color:darkgreen;|color:red;}}"| {{#if:{{{whois|}}}|Yes|No}}
+
|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;{{#if:{{{getepp|}}}|color:darkgreen;|color:red;}}"| {{#if:{{{getepp|}}}|Yes|No}}
+
|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;{{#if:{{{regns|}}}|color:darkgreen;|color:red;}}"| {{#if:{{{regns|}}}|Yes|No}}
+
|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;{{#if:{{{dnsmanagement|}}}|color:darkgreen;|color:red;}}"| {{#if:{{{dnsmanagement|}}}|Yes|No}}
+
|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;{{#if:{{{emailforwarding|}}}|color:darkgreen;|color:red;}}"| {{#if:{{{emailforwarding|}}}|Yes|No}}
 
 
|}</includeonly><noinclude>
 
|}</includeonly><noinclude>
 
Registrar features grid template, produces something like:
 
Registrar features grid template, produces something like:
 
{{gateways
 
{{gateways
 
| type = token
 
| type = token
 +
| recurring = yes
 
}}
 
}}
 
To use:
 
To use:
 
  <nowiki>{{gateways</nowiki>
 
  <nowiki>{{gateways</nowiki>
 
  | type = token
 
  | type = token
 +
| onetime = yes
 +
 
  <nowiki>}}</nowiki>
 
  <nowiki>}}</nowiki>
  
Line 40: Line 40:
 
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
 
</noinclude>
 
</noinclude>

Revision as of 10:51, 9 October 2012

Registrar features grid template, produces something like:

Supported Features

Type One Time Recurring Refunds 3D Secure
Token No Yes No No
Remote Update Card Remote Delete Card AddPayMethod API
No No No

To use:

{{gateways
| type = token
| onetime = 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