Widgets
Integrate Juspay Hyperswitch SDK using individual payment widgets for granular control over your payment flow.

Requirements
Android 6.0 (API level 23) and above
Gradle 8.8+
1. Setup the server
Follow the Server Setup section.
2. Build checkout page on your app
2.1 Add the Buildscript Classpath
To start integrating the Juspay Hyperswitch SDK, add the following classpath to the buildscript block of your project-level build.gradle file:
2.2 Apply the Plugin
Add the following plugin to the plugins block of your app-level build.gradle file:
2.3 Implement the HyperInterface
Next, implement the HyperInterface in your Activity. This involves extending FragmentActivity and implementing the HyperInterface:
2.4 Initialize Payment Configuration
Set up the SDK using your publishable key:
3. Implementation
Choose from list of available widgets to integrate:
Card Element
Google Pay
PayPal
Express Checkout
Final Step
Congratulations! You have successfully integrated Juspay Hyperswitch widgets into your app. This approach gives you granular control over each payment method and allows for custom UI/UX design while leveraging Juspay Hyperswitch's payment processing capabilities.
Next step:
Last updated
Was this helpful?

