How Compliance Works
When the merchant callsTBDropin.pay():
- The SDK validates the payment components.
- The SDK decodes the provided Session Token.
- If compliance is not required, the payment flow continues immediately.
- If compliance is required, the SDK automatically opens a secure Compliance Checks popup.
How Compliance Requirements are Determined
The SDK derives the compliance configuration by decoding the Session Token provided toTBDropin.pay().
Based on the decoded configuration, the SDK determines which compliance fields should be displayed.
Field Availability
- Customer Name
- Mobile Number
- PAN
- Mobile OTP Verification
The merchant does not need to configure or render these fields manually. The SDK automatically evaluates the configuration and displays only the required fields.
Automatic Flow
- Merchant calls
pay(). - SDK validates payment components.
- SDK decodes the Session Token.
- SDK determines whether compliance is required.
- Compliance popup opens automatically.
- Customer submits the required information.
- SDK resumes the payment automatically.
- Payment Status popup is shown.
Security
The Compliance Form follows the same security model as the payment components.- Rendered inside a secure iframe.
- Merchant never receives raw compliance data.
- Data is encrypted before being sent to the SDK.
Merchant Responsibilities
The merchant only needs to provide:Notes
- The Compliance Form appears only when required.
- The popup closes automatically after successful submission.
- If the customer closes the Compliance popup, the payment is cancelled.
- The SDK reuses previously submitted compliance data only for the same payment session.