Ecom:Order.PaymentFee

Version: - price  

Summary

Returns the fee for the payment method.

Settings

The value is based on the available input fields on the Fees tab for a shipping method.

(Management Center > Ecommerce settings > Orders > Payment > Payment method > Fees tab)

Remarks

Includes the option to add price extensions in order to format the fee. See Price extensions (Prefix : Ecom:Order.PaymentFee).

Examples

Outputting the template tag

@GetPrice("Ecom:Order.PaymentFee")

Check if tag has a value

@if(!double.IsNullOrWhiteSpace(GetPrice("Ecom:Order.PaymentFee"))) { @* Tag has value, so let's do something useful here. *@ }

Assign tag to a value for later use

@{ double storedTag = GetPrice("Ecom:Order.PaymentFee"); }

Outputting the template tag

<!--@Ecom:Order.PaymentFee-->

Check if price has a value

<!--@If Defined(@Ecom:Order.PaymentFee)--> Let's output this tag here: <strong><!--@Ecom:Order.PaymentFee--></strong> <!--@EndIf(@Ecom:Order.PaymentFee)-->