Skip to content

Payment method display

Show the Kustom payment methods available in a market with the kustom-payment-method-display element. Set locale, then filter the list with include and exclude.

The payment method display shows your customers which payment methods they can use. The list is tailored to the market in locale and holds only the methods configured on your account. It needs the installation script and a registered domain.

A product page with a row of payment method logos under the Choose size button, outlined in red: Klarna, Billie, Mastercard, Visa, Apple Pay, Google Pay and PayPal
<kustom-payment-method-display locale="en-SE"></kustom-payment-method-display>
AttributeRequiredWhat it does
localeYesThe market to show methods for. Use five characters, language-COUNTRY: the language sets the text and the country sets the market. See the supported locales
includeNoComma-separated identifiers to add even if the API doesn’t return them for your account. Identifiers already in the list are ignored
excludeNoComma-separated identifiers to hide
alignNostart (the default) or center

exclude is applied before include, so an identifier in both is hidden.

Hide methods the API returned for your account:

<kustom-payment-method-display
locale="en-SE"
exclude="klarna,swish"
></kustom-payment-method-display>

Add methods that aren’t enabled on your account yet, to preview them in Playground:

<kustom-payment-method-display
locale="en-SE"
include="applepay,googlepay"
></kustom-payment-method-display>

This page is also available as Markdown — append .md to its URL — and is indexed in llms.txt.