Integration Methods
You can integrate the SDK in three ways:- Direct AAR file: Build or download the AAR and add it to your app’s
libs/directory. - Maven Local: Publish the SDK to your local Maven repository and add it as a dependency.
- Maven Central: (Coming soon) Add the SDK as a dependency from Maven Central.
What does the Drop-in SDK provide?
The Drop-in SDK offers:- Pre-built payment sheet (UPI, Terms & Conditions)
- PCI-compliant, secure payment handling
- UPI app listing and deep linking
- Customizable theming
- Device and network security checks
- Simple callback-based integration
How the Drop-in SDK Works
- Add the SDK to your project (AAR or Maven)
- Initialize the SDK with your publishable key and endpoints
- Add the Terms & Conditions view to your layout
- Launch the payment sheet with a config object
- Handle payment results via callback
Key Concepts
- PaymentSDK: Entry point for all payment operations. Handles initialization and launching the payment sheet.
- PaymentConfig: Holds all parameters for a payment (session, token, T&C, etc.).
- PaymentResultCallback: Interface for handling payment results (success, failure, cancel).
- TermsAndConditionsView: UI component for user consent.
- UPI App Listing: Utility to list and launch UPI apps for payment.