Skip to main content
Integrate TBDropin into your website in minutes. This guide provides a step-by-step walkthrough to help you integrate TBDropin into your website or application within minutes. You’ll learn how to load the SDK, initialize it, mount payment components, and trigger a payment.

1. Prerequisites

Before you begin, ensure you have:
  • A Billing Session ID, Subscription ID, or Mandate ID

2. Initialize TBDropin

Initialize the SDK using your publishable key and session identifier.

3.Inject the Dropin SDK

4. Initialize the SDK

Initialize the SDK using your publishable key and session identifier.

5. Mount Payment Components

Create container elements in your HTML where components will be mounted.

6. Create & Mount Components

All payment fields are created using TBDropin.create() and attached to the DOM using mount(). Card Payment Components
Returned Value cardNumber Card Number Object
cardExp Card Expirey Object
cardCvv Card CVV Object
cardHolder Card Holder Object
Fields Explained Terms & Conditions

7. Terms & Conditions

Each component emits updates whenever the user types or validation changes.

8. Customization & Configuration Options

TBDropin allows you to customize the appearance and behavior of all components using configuration objects. These options can be reused across Card, UPI, and Popup components. Fonts Configuration You can load and use custom fonts inside TBDropin components.
Usage
Input Style (inputStyle) Used to style the actual input field inside the iframe.
Applicable To
  • tb_cardNumber
  • tb_cardHolder
  • tb_cardExp
  • tb_cardCvv
Frame Style (frameStyle) Controls the iframe container that wraps the input.
Why this matters
  • Adjust spacing
  • Match your design system
  • Avoid iframe overflow issues
Icon Configuration (iconConfig) Used to customize or hide card / UPI icons.
Popup Configuration (popupOptions) Used to customize the payment popup UI (success, failure, processing, timer, etc.).
Apply Popup Config at Init
Passing Options to Components All customization options are passed during component creation.
Summary of Customization Options

9. Triggering a Payment

Once components are valid, call pay().
Next Steps
  • A Customize component styles
  • Add multiple payment methods using tabs
  • Handle payment confirmation on backend
  • Set up webhooks for payment status
Need Help? Explore the following sections for more details:
  • API Reference
  • Customization
  • Examples
  • FAQ
If you need assistance, our support team is here to help 🚀