Difference between revisions of "Template:Gateways"

From WHMCS Documentation

Line 8: Line 8:
 
!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;"| Refunds
 
{{#if:{{{type|}}}|!style="border:1px #AAA solid;padding:0.2em;background:#F2F2F2;text-align:center;"{{!}} 3D Secure}}
 
{{#if:{{{type|}}}|!style="border:1px #AAA solid;padding:0.2em;background:#F2F2F2;text-align:center;"{{!}} 3D Secure}}
 +
{{#ifeq:{{{type|+}}}|{{{type|-}}}||!style="border:1px #AAA solid;padding:0.2em;background:#F2F2F2;text-align:center;"{{!}} Reversals}}
 
|-
 
|-
 
|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}}
Line 14: Line 15:
 
|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}}
 
{{#if:{{{type|}}}|{{!}}style="border:1px #AAA solid;padding:0.2em;{{#if:{{{3dsecure|}}}|color:darkgreen;|color:red;}}"{{!}} {{#if:{{{3dsecure|}}}|Yes|No}}}}
 
{{#if:{{{type|}}}|{{!}}style="border:1px #AAA solid;padding:0.2em;{{#if:{{{3dsecure|}}}|color:darkgreen;|color:red;}}"{{!}} {{#if:{{{3dsecure|}}}|Yes|No}}}}
 +
{{#ifeq:{{{type|+}}}|{{{type|-}}}||{{!}}style="border:1px #AAA solid;padding:0.2em;{{#if:{{{reversals|}}}|color:darkgreen;|color:red;}}"{{!}}
 +
{{#if:{{{reversals|}}}|Yes|No}}}}
 
|}
 
|}
 
{{#ifeq:{{{type|}}}|token|
 
{{#ifeq:{{{type|}}}|token|
Line 45: Line 48:
 
* recurring
 
* recurring
 
* refunds
 
* refunds
 +
* reversals
 +
* 3dsecure
 
* updatecc
 
* updatecc
 
* deletecc
 
* deletecc
 +
 
</noinclude>
 
</noinclude>

Revision as of 19:15, 5 February 2018

Registrar features grid template, produces something like:

Supported Features

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

To use:

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

You should only provide the options that the gateway supports. For example, saying 'onetime = no' will not work.

Full list of options (case sensitive):

  • type - token or cc. Omit for 3rd Party
  • onetime
  • recurring
  • refunds
  • reversals
  • 3dsecure
  • updatecc
  • deletecc