QuickPay3.testmode
Version: - stringSummary
Returns the state of the Test mode
checkbox.
Settings
The value comes from the Test mode field for the payment gateway.
(Management Center > eCommerce settings > Orders > Payment > Payment method > General > Parameters > Test mode)
Examples
Outputting the template tag
@GetString("QuickPay3.testmode")
Check if tag has a value
@if(!string.IsNullOrWhiteSpace(GetString("QuickPay3.testmode"))) {
@* Tag has value, so let's do something useful here. *@
}
Assign tag to a value for later use
@{
string storedTag = GetString("QuickPay3.testmode");
}
Outputting the template tag
<!--@QuickPay3.testmode-->
Check if string has a value
<!--@If Defined(@QuickPay3.testmode)-->
Let's output this tag here: <strong><!--@QuickPay3.testmode--></strong>
<!--@EndIf(@QuickPay3.testmode)-->