Prints a list for selecting a payment method at checkout.
Description
The tag doesn't print anything if there are no products in the shopping cart.
Syntax
{CheckoutPaymentMethods(
ajax: boolean,
exclude: string,
includetax: boolean,
notifications: boolean,
preselect: boolean
)}
Scope
Required scope: globaali
This tag is used only in the checkout part in which the payment method is selected (multi-page checkout/single-page checkout).
If you use the tag in the single-page checkout, make sure to place the tag in the <div>
or the <fieldset>
element and use the tag's name as that element's id
.
Attribuutit
ajax:
Sets the tag to return either the whole page or only the content it produces as a response to an AJAX request when the form is sent by using JavaScript.
Allowed values:
- true: returns only the content produced by the tag.
- false: returns the whole page (default value).
exclude:
Defines whether the selected payment method should be omitted from the list. The attribute's value is used only if the customer has already selected a payment method.
If the value is set to 'current', the tag won't print the selected payment method.
Allowed values: 'current' / false. The default value is false.
includetax:
Defines whether the payment method fee should be printed on the list including VAT.
Allowed values:true/false. The default value is true.
notifications:
Defines whether to print notifications related to payment methods.
The notifications are printed from the
'Payment'
category.Allowed values:true/false. The default value is true.
preselect:
Defines whether the first payment method on the list should be automatically selected at checkout.
Allowed values:true/false. The default value is true.
after/before:
By using the
after
andbefore
attributes you can define content that is output either after or before the tag's output.Allowed values:The HTML and Interface markup
E.g.
before:
'<p>Tämä merkkaus näkyy ennen tagin omaa sisältöä.</p>'after:
'<p>Tämä taas näkyy tagin oman sisällön jälkeen.</p>'
If the tag does not produce any content, neither the content of the
after
andbefore
attributes will be output.escape:
Adds an escape character before quotation marks in the output.
The attribute makes it easier to process the tag-produced content when using JavaScript.
Allowed values:true/false. The default value is false.
or:
Defines alternative content that is displayed if the tag itself does not produce any content.
Allowed values:The HTML and Interface markup
E.g.
or:
'Sisältöä ei löytynyt.'