Amazon Pay UPI SDK Flow
Flow
Integration
The objective of this new integration is to improve user experience and success rates by reducing unnecessary redirections for the end user.
Prerequisites
Amazon Pay SDKs are included in a new SDK HyperAPayUPI. Merchant needs to add its dependency in addition to the existing HyperSDK dependency in the app’s build.gradle.
Please make sure you have mavenCentral() added in root build.gradle’s allProject repository section to fetch transitive dependencies of HyperAPayUPI SDK.
The SDK integration has been done in a way to minimise the changes needed to be done for live merchants. In the proposed implementation, merchants call Juspay SDK with upiTxn action and "getAvailableApps": true and "version": “v2
parameters which internally calls Amazon Pay SDK’s prefetch function and returns the call with the corresponding package based on the response from Amazon Pay SDK. Sample Request and Response are available on the right side of this screen.
The extra parameter (“version” : “v2”) is being added to maintain backward compatibility. This extra parameter needs to be passed in the UPITxn getAvailableApps and the subsequent transaction call as well. For more details, please refer to this document.