Prints the Klarna banner that presents the payment methods that are available for a product via Klarna.

Kuvaus

Klarna Checkout was updated to the new v3 version in all MyCashflow online stores on 15 December 2020

This tag doesn't work in the new version of Klarna Checkout.

Learn more about the update and the changes it brings.

If Klarna's services are not enabled, the tag won't print anything.

The tag is mainly used on the product page, in which case it displays the most suitable Klarna payment method available for the product. If possible, the banner will display also an installment plan for the product.

To find out more about the Klarna payment method banner, see the Klarna help center.

Syntaksi

{KlarnaPaymentMethodWidget(
    type: string,
    width: int,
    height: int
)}

Näkyvyys

Attribuutit

type:

Defines the banner's layout.

Allowed values:

  • 'pale'
  • 'dark'
  • 'deep'
  • 'deep-extra'
  • 'pale-v2' (default value)
  • 'dark-v2'
  • 'deep-v2'
  • 'deep-extra-v2'

You can find the values' descriptions in the Klarna help center.

width:

Defines the banner's width.

Allowed values:integers (default value 210)

height:

Defines the banner's height.

Allowed values:integers (default value 70)

after/before:

By using the after and before 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 and before 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.'