---
page_source: https://juspay.io/in/docs/ec-headless/cordova/additional-features/amazonpay-upi-sdk-flow
page_title: AmazonPay UPI SDK Flow
---


# Amazon Pay UPI SDK Flow




### Step 1.1. Flow


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.


#### Groovy Code Snippet:

```groovy
hyperSdkPlugin {
    clientId = "<CLIENT_ID>"
    sdkVersion = "2.1.13"
}
```


> **Note**
> _Please make sure you have mavenCentral() added in root build.gradle’s allProject repository section to fetch transitive dependencies of HyperAPayUPI SDK_ .






### Step 1.1. Integration


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](https://assets.juspay.in/juspay/docs/AmazonPay+UPI+SDK+Integration_v2.pdf).

