WebView SDK for Intent flows

Merchants integrating payment page via Juspay and rendering the same on webviews run into a restriction of not having UPI Intent support. This is because Android’s webview, by default, doesn’t provide intent support and hence we would not be able to either check for intent apps in the user’s device or make an intent switch to the corresponding app.

To work around this inherent restriction from Android and to have a near-native experience on WebView, we have made a lightweight SDK solution, which adds a JavaScriptInterface to register functionalities to fetch available UPI apps, and make payment with them natively, instead of handling the Intent URI. These functions are then called from the our existing code running in hyper-sdk-web. Listing below the steps to integrate the same

Step 1.1
Getting the SDK
Step 1.2
Integrating the SDK
Last updated 1 year ago