Difference between revisions of "Template:Gateways"
From WHMCS Documentation
(40 intermediate revisions by 4 users not shown) | |||
Line 1: | Line 1: | ||
<includeonly> | <includeonly> | ||
− | ==Supported Features== | + | {{#switch:{{{level|}}}|4 = ====Supported Features==== | 3 = ===Supported Features=== | 2 = ==Supported Features==| #default = ==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%;" | ||
|- | |- | ||
!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;"| | + | !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;"| | + | !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;"| | + | !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;"| | + | {{#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}} |
− | |style="border:1px #AAA solid;padding:0.2em;{{#if:{{{ | + | |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:{{{ | + | |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:{{{ | + | |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:{{{ | + | {{#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;}}"{{!}} |
− | !style="border:1px #AAA solid;padding:0.2em; | + | {{#if:{{{reversals|}}}|Yes|No}}}} |
− | !style=" | + | |} |
− | !style="border:1px #AAA solid;padding:0.2em;background:#F2F2F2;text-align:center;" | + | {{#ifeq:{{{type|}}}|token| |
− | !style="border:1px #AAA solid;padding:0.2em;background:#F2F2F2;text-align:center;" | + | {{{!}} class="wikitable" style="text-align:center;margin:1em 1em 1em 0;background:#F9F9F9;border:1px #AAA solid;border-collapse:collapse;width:100%;" |
− | !style="border:1px #AAA solid;padding:0.2em;background:#F2F2F2;text-align:center;" | + | {{!}}- |
− | + | !style="border:1px #AAA solid;padding:0.2em;background:#F2F2F2;text-align:center;"{{!}} Remote Update Card | |
− | + | !style="border:1px #AAA solid;padding:0.2em;background:#F2F2F2;text-align:center;"{{!}} Remote Delete Card | |
− | + | !style="border:1px #AAA solid;padding:0.2em;background:#F2F2F2;text-align:center;"{{!}} AddPayMethod API | |
− | + | {{!}}- | |
− | + | {{!}}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:{{{deletecc|}}}|color:darkgreen;|color:red;}}"{{!}} {{#if:{{{deletecc|}}}|Yes|No}} | |
− | + | {{!}}style="border:1px #AAA solid;padding:0.2em;{{#if:{{{addpaymethod|}}}|color:darkgreen;|color:red;}}"{{!}} {{#if:{{{addpaymethod|}}}|Yes|No}} | |
+ | {{!}}} | ||
+ | }}</includeonly><noinclude> | ||
Registrar features grid template, produces something like: | Registrar features grid template, produces something like: | ||
{{gateways | {{gateways | ||
| type = token | | type = token | ||
+ | | onetime = yes | ||
+ | | recurring = yes | ||
}} | }} | ||
To use: | To use: | ||
<nowiki>{{gateways</nowiki> | <nowiki>{{gateways</nowiki> | ||
| type = token | | type = token | ||
+ | | onetime = yes | ||
+ | | recurring = yes | ||
<nowiki>}}</nowiki> | <nowiki>}}</nowiki> | ||
− | You should '''only''' provide the options that the gateway supports. For example, saying ' | + | You should '''only''' provide the options that the gateway supports. For example, saying 'onetime = no' will not work. |
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 | ||
+ | * recurring | ||
+ | * refunds | ||
+ | * reversals | ||
+ | * 3dsecure | ||
+ | * updatecc | ||
+ | * deletecc | ||
+ | * addpaymethod | ||
+ | |||
</noinclude> | </noinclude> |
Latest revision as of 11:12, 21 September 2021
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
- addpaymethod