UseePay Open API
UseePay PortalMechant Dashboard
Product Docs
Product Docs
  • V2.0
  • V1.0
UseePay PortalMechant Dashboard
Product Docs
Product Docs
  • V2.0
  • V1.0
  1. Message
  • Integration
    • Welcome to the UseePay Demo Page
    • Payment Product Overview
      • Hosted Checkout Integration Guide
      • Embedded Checkout Integration Guide
      • Express Checkout Integration Guide
      • Server to Server Integration Guide
    • About Payment Methods
      • Card
      • Klarna
      • Naver pay
      • Kakao Pay
      • Toss Pay
      • Payco
      • Affirm
      • Blik
      • Trustly
      • Cashapp
      • Pay with Link
      • AfterPay_ClearPay
      • Pix
      • iDEAL
      • Pse
      • ApplePay
        • Apple Pay
        • Apple Pay Web Integration (API Integration)
      • GooglePay
        • Google Pay
        • Google Pay Web Integration (API Integration)
    • Subscription
      • Get started with Subscription
    • Online payment
      • Get started with online payments
    • Payment Capabilities
      • Adaptive Price
      • Supported Payment Methods for Checkout
    • Checkout session
      • Checkout Session Guide
  • Developer
    • Introduction
    • Authentication
    • Integrate Local Payment Methods
    • Error code
      • last_payment_error documentation
      • Errors
    • Best Integration
      • Quickly create a paymentIntent for a subscription
      • Auto-Charge Subscription Guide
    • Payment Intents
      • Payment Intent Overview
      • Quickly create a paymentIntent
      • Create a PaymentIntent
      • Retrieve a PaymentIntent
      • Update a PaymentIntent
      • Confirm a PaymentIntent
      • Cancel a PaymentIntent
      • Capture a PaymentIntent
      • List all payment intents
    • Customers
      • Create a customer
      • Retrieves a customer
      • Update a customer
      • List all customers
    • Subscriptions
      • Create a subscription
      • Retrieves a subscription
      • Update a subscription
      • List all subscriptions
      • Cancel a subscription
    • Invoices
      • Create a invoice
      • Retrieves a invoice
      • List all invoices
      • Pay a invoice
    • Payment Methods
      • Retieve Payment Method Session
    • Mandates
      • Create a mandate
      • Retrieves a mandate
      • List all mandates
    • Refunds
      • Create a refund
      • Retrieves a refund
      • List all refunds
    • Webhooks
      • Webhook Integration Guide(version 2026-04)
      • Integration details
        • Supported Webhook Events
        • Webhook Activation/Signature Verification Steps
        • Webhook events for example
        • Dispute Webhook Integration Document
        • Difference between version 2026-04 and 2026-10-10
      • archive
        • 2024-10-10
          • Webhook Integration Guide(version 2024-10-10)
      • Create a webhook
      • Retrieves a webhook
      • Update a webhook
      • List all webhooks
    • Embedded Checkout
      • UseePay Elements Appearance
      • Payment Element
      • Payment Element (Deferred Intent)
      • Express Checkout Element
      • Checkout Session Element
    • Payment Method Configuration
      • Retieve Payment Method Configuration
    • Checkout Session
      • Create Checkout Session
      • Retrieve Checkout Session
    • Trackers
      • upload trackers
      • Retrieve a tracker
    • Capture
      • Capture Overview
      • List captures by intent id
    • Payement Attempt
      • ECI Indicator (3-D Secure) Reference
      • Retrieve PaymentAttempt
    • Schemas
      • CheckoutSessionCreateRequest
      • PaymentMethod
      • CreatePaymentIntentRequest
      • LineItem
      • Customer
      • Address
      • ProductData
      • Shipping
      • SubscriptionData
      • Error
      • DiscountPeriodConfig
      • DeviceData
      • CheckoutSessionResponse
      • ErrorResponse
      • Order
      • Product
      • PaymentMethodOptions
      • RiskControlOptions
      • Mandate
      • PaymentIntent
      • Billing
      • Card
      • AliPay
      • Wallet
      • Klarna
      • WechatPay
      • Refund
      • Subscription
      • Recurring
      • PriceData
      • SubscriptionItem
      • Invoice
      • NextAction
      • Webhook
      • CollectableOptions
      • PaymentLink
      • last_payment_error
      • discount_period_config
      • Capture
      • three_ds
      • PaymentAttempt
  • Message
    • Messaging Element
  • About Testing
    • Test Cards
    • ApplePay&GooglePay
  • Reconciliation
    • SFTP Access for Reconciliation
  • FAQ
    • Unable to receive Webhook notifications
    • FAQ
    • Introduction
  1. Message

Messaging Element

Payment Method Messaging Element#

image.png

Product Illustration#

Overview#

The Payment Method Messaging Element is a UI component designed to notify customers about available "Buy Now, Pay Later" (BNPL) payment options. It automatically calculates eligible plans and conditions, generates localized descriptions, and renders them seamlessly within your checkout form's theme.

Integration Guide#

Quick Start#

1. Include the SDK#

Add UseePay's official JavaScript SDK to your HTML using a <script> tag:

2. Verify SDK Loading#

Ensure the SDK is properly mounted on the window object before calling any methods:

3. Initialize UseePay#

Instantiate UseePay using the public key retrieved from your UseePay Merchant Dashboard:

4. Create Elements Instance#

Initialize the UseePay Elements manager to create and handle UI components:

5. Create PaymentMethodMessaging Element#

Create the paymentMethodMessaging element to automatically render BNPL promotional messaging (e.g., Klarna, Afterpay/Clearpay, Affirm) on your checkout page.
Options Parameter Reference#
ParameterTypeRequiredDescription
appIdStringYesDomain or merchant identifier for the transaction entity.
amountNumberYesOrder amount (e.g., 99 represents $99 USD).
currencyStringYes3-letter ISO currency code (e.g., USD).
paymentMethodTypesArrayYesList of BNPL payment methods to evaluate and display.
countryCodeStringOptional2-letter ISO country code of the customer (e.g., US).
Supported Capabilities#
Payment Method Types (paymentMethodTypes):
klarna, afterpay_clearpay, affirm
Currencies (currency):
USD, GBP, EUR, DKK, NOK, SEK, CAD, AUD, NZD, PLN, CZK, CHF, RON
Countries / Regions (countryCode):
AT, AU, BE, CA, CH, CZ, DE, DK, ES, FI, FR, GB, GR, IE, IT, NL, NO, NZ, PL, PT, RO, SE, US

6. Mount the Element#

Mount the element to a container element on your page using its DOM ID:
Here is the updated section with direct method descriptions and examples:
Method#
Example#
HTML:
JavaScript:
🎉 Congratulations! Once mounted, the integration is complete!

Supported Locales#

By default, the locale is set to auto (detects browser language automatically). The following locales are supported:
ValueLocale Description
autoDetects language automatically from the customer's browser
arArabic
bgBulgarian (Bulgaria)
csCzech (Czech Republic)
daDanish (Denmark)
deGerman (Germany)
elGreek (Greece)
enEnglish
en-GBEnglish (United Kingdom)
esSpanish (Spain)
es-419Spanish (Latin America)
etEstonian (Estonia)
fiFinnish (Finland)
filFilipino (Philippines)
frFrench (France)
fr-CAFrench (Canada)
heHebrew (Israel)
hrCroatian (Croatia)
huHungarian (Hungary)
idIndonesian (Indonesia)
itItalian (Italy)
jaJapanese (Japan)
koKorean (South Korea)
ltLithuanian (Lithuania)
lvLatvian (Latvia)
msMalay (Malaysia)
mtMaltese (Malta)
nbNorwegian Bokmål
nlDutch (Netherlands)
plPolish (Poland)
ptPortuguese (Portugal)
pt-BRPortuguese (Brazil)
roRomanian (Romania)
ruRussian (Russia)
skSlovak (Slovakia)
slSlovenian (Slovenia)
svSwedish (Sweden)
thThai (Thailand)
trTurkish (Turkey)
viVietnamese (Vietnam)
zhChinese Simplified (China)
zh-HKChinese Traditional (Hong Kong)
zh-TWChinese Traditional (Taiwan)
Previous
PaymentAttempt
Next
Test Cards
Built with