<script> tag:window object before calling any methods:UseePay using the public key retrieved from your UseePay Merchant Dashboard:paymentMethodMessaging element to automatically render BNPL promotional messaging (e.g., Klarna, Afterpay/Clearpay, Affirm) on your checkout page.| Parameter | Type | Required | Description |
|---|---|---|---|
appId | String | Yes | Domain or merchant identifier for the transaction entity. |
amount | Number | Yes | Order amount (e.g., 99 represents $99 USD). |
currency | String | Yes | 3-letter ISO currency code (e.g., USD). |
paymentMethodTypes | Array | Yes | List of BNPL payment methods to evaluate and display. |
countryCode | String | Optional | 2-letter ISO country code of the customer (e.g., US). |
paymentMethodTypes):klarna, afterpay_clearpay, affirmcurrency):USD, GBP, EUR, DKK, NOK, SEK, CAD, AUD, NZD, PLN, CZK, CHF, RONcountryCode):AT, AU, BE, CA, CH, CZ, DE, DK, ES, FI, FR, GB, GR, IE, IT, NL, NO, NZ, PL, PT, RO, SE, US🎉 Congratulations! Once mounted, the integration is complete!
auto (detects browser language automatically). The following locales are supported:| Value | Locale Description |
|---|---|
auto | Detects language automatically from the customer's browser |
ar | Arabic |
bg | Bulgarian (Bulgaria) |
cs | Czech (Czech Republic) |
da | Danish (Denmark) |
de | German (Germany) |
el | Greek (Greece) |
en | English |
en-GB | English (United Kingdom) |
es | Spanish (Spain) |
es-419 | Spanish (Latin America) |
et | Estonian (Estonia) |
fi | Finnish (Finland) |
fil | Filipino (Philippines) |
fr | French (France) |
fr-CA | French (Canada) |
he | Hebrew (Israel) |
hr | Croatian (Croatia) |
hu | Hungarian (Hungary) |
id | Indonesian (Indonesia) |
it | Italian (Italy) |
ja | Japanese (Japan) |
ko | Korean (South Korea) |
lt | Lithuanian (Lithuania) |
lv | Latvian (Latvia) |
ms | Malay (Malaysia) |
mt | Maltese (Malta) |
nb | Norwegian Bokmål |
nl | Dutch (Netherlands) |
pl | Polish (Poland) |
pt | Portuguese (Portugal) |
pt-BR | Portuguese (Brazil) |
ro | Romanian (Romania) |
ru | Russian (Russia) |
sk | Slovak (Slovakia) |
sl | Slovenian (Slovenia) |
sv | Swedish (Sweden) |
th | Thai (Thailand) |
tr | Turkish (Turkey) |
vi | Vietnamese (Vietnam) |
zh | Chinese Simplified (China) |
zh-HK | Chinese Traditional (Hong Kong) |
zh-TW | Chinese Traditional (Taiwan) |