- Card Number
- Card Holder
- Expiry
- CVV
- UPI
- UPI Intent
TBDropin SDK.
This overview explains:
- How the SDK loads
- What atoms are
- How mounting works
- How events & communication work
- What happens during payment
- Folder & architecture summary
Methods
1. Mount component
A component can be mounted in DOM container2. Unmount component
To unmount a component from DOM container. Use component.mount to mount again3. Get component data
To get the data and state of a componentReturn
| Name | Description | Default |
|---|---|---|
| element | Unique identifier / type of the component (e.g. tb_cardNumber, tb_upiCollect) | undefined |
| value | Current value of the component. Shape depends on component type | {} |
| error | Error object returned by the component, if any | null |
| isValid | Indicates whether the component input is valid | false |
| componentUrl | URL of the iframe source used to render the component | undefined |
4. Clear component
Trigger clear on component to empty it. Can only be applied if kind of the component is inputEvents
You can register a callback function to various events that occur with a component. The basic syntax iscomponent.on(eventName, callBackFunction)