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. Embedded Checkout
  • 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
      • Affirm
      • AfterPay_ClearPay
      • Bank Transfer
      • Blik
      • Card
      • Cashapp
      • iDEAL
      • Kakao Pay
      • Klarna
      • Konbini
      • Korean Card
      • Naver pay
      • Payco
      • Pay with Link
      • Pix
      • Pse
      • Samsung Pay
      • Tmoney
      • Toss Pay
      • Trustly
      • 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
      • konbini
  • Message
    • Messaging Element
  • About Testing
    • Test Cards
    • ApplePay&GooglePay
  • Reconciliation
    • SFTP Access for Reconciliation
  • FAQ
    • Unable to receive Webhook notifications
    • FAQ
    • Introduction
  1. Embedded Checkout

Payment Element

🔒 Embedded Checkout#

📷 Product Diagram#

image.png

📝 Overview#

This is an SDK designed to integrate UseePay’s embedded checkout experience. It allows developers to easily and securely accept subscription payments.

💳 Supported Payment Methods#

(Refer to the official documentation for the latest list.)

🚀 Quick Start#

Create a PaymentIntent#

On your server, create a PaymentIntent to manage the full lifecycle of the customer’s payment.
In the response, return the clientSecret and id. These will be used on the frontend to complete the payment.
Click to view API docs

1. Include UseePay SDK:#


2. Verify SDK Availability:#


3. Initialize UseePay with your OpenAPI Public Key:#

🧠 Note:
You do not need to manually specify whether you’re using sandbox or production.
UseePay SDK will automatically detect the environment based on the prefix of your public key:
PK_TEST_**** → sandbox
PK_**** → production

4. Initialize UseePay Elements:#

Example:

5. Create the Payment Element:#

Example:

OptionTypeDefaultDescription
layout'accordion' | Object'accordion'Specifies the layout for the Payment Element. You can pass a string ('accordion') to use the default accordion layout, or pass an object for fine‑grained control.
Detailed explanation:
String ('accordion') – When you pass only the string 'accordion', the Payment Element renders using the accordion layout with its default settings.
Object – You can also pass an object to configure the accordion layout with additional custom parameters, giving you more control over the rendering behavior.

layout Object Configuration#

FieldTypeRequiredDefaultDescription
typeStringYes'accordion'The layout style of the Payment Element.
hideHeaderWhenSingleBooleanNofalseWhen set to true, automatically hides the accordion header if only a single payment method is available.

6. Mount the Element to the DOM:#

Example:

7. Confirm the Payment:#


🔍 Parameters#

ParameterTypeDescription
paymentIntentObjectThe resulting payment intent
errorObjectError object if any occurs

error Object#

FieldTypeDescription
typeStringType of error

Possible error.type Values#

ValueDescription
no_select_payment_methodNo payment method selected
validation_errorForm validation error

✅ Payment Status#

⚠️ When calling confirmPayment, always check the result status and handle accordingly.
📘 Click here to view full result code documentation

If you’ve followed all the steps above — congratulations!
You’ve successfully integrated the UseePay Embedded Subscription Checkout.

🎉 Tips#

If you want to use a specific payment method, you should set payment_method_types when creating the paymentIntent.
807c0951c0cc5498ccd13e77d582aa3e.png

Video Demo#

If the video doesn’t load, please click the link:
https://youtube.com/shorts/4u2yg7IcH3A?feature=share
Previous
UseePay Elements Appearance
Next
Payment Element (Deferred Intent)
Built with