---
page_source: https://juspay.io/in/docs/ec-headless/cordova/additional-features/googlepay--tokenized-card-and-upi
page_title: GooglePay-Tokenized Card and UPI
---


# **GooglePay - Tokenized Card and UPI** 




### Step 1.1. Prerequisites:


All prerequisites and authorization required for Google Pay shall be completed by merchant.

* **Account creation with Google Pay:**  Refer [Google Pay Website for account creation process](https://developers.google.com/pay/india/api/otherapis/omnichannel/prerequisites)
* Whitelisting of merchant VPA at Google Pay end
* Additional prerequisites for Google Pay Tokenized cards flow:
  
  * Submit designs and ensure that the payment page user experience for GPay tokenized cards flow is approved by Google team
  * Your application’s domain name needs to be whitelisted and enabled for the Tokenized cards flow on Google Play console


#### **Dependencies:** 



Ensure that dependency is added for the GooglePay SDK in your _build.gradle dependencies section_ 


#### build.gradle Code Snippet:

```build.gradle
dependencies {
    		implementation 'in.juspay:google-pay-client-api:1.0.0'
}
```





### Step 1.1. User Experience for GooglePay


Flows:

![Image](https://dth95m2xtyv8v.cloudfront.net/tesseract/assets/ec-headless/gpay_cards_user_journey-bAFWD.png)
*GooglePay Tokenized Cards Flow User Journey*



![Image](https://dth95m2xtyv8v.cloudfront.net/tesseract/assets/ec-headless/gpay_upi_user_journey%20(1).png)
*GooglePay UPI Flow User Journey*






### Step 1.1. Key integration changes for integrating GooglePay via Hyper SDK


**tep 1 - Order creation** 

[CreateOrder](https://docs.juspay.in/ec-headless/android/base-sdk-integration/create-order-api) on Juspay Servers.

**Step 2 - Displaying Gpay option on payment page** 

The GPay in-app flow is allowed only when four conditions are satisfied:

1. Gpay app is installed,
2. User is registered,
3. Bank account is linked and
4. Gpay app version is compatible for the flow.

* **Scenario 1:** If the preference is to use only Gpay in-app flow, the merchant shall perform isDeviceReady call (refer code snippet on the right) for the current device and display GooglePay on UI only if it isDeviceReady response is true.
* **Scenario 2:**  If the preference is to use Gpay in-app flow along with UPI Intent as fallback option, then the merchant shall check whether GPay app is present on user device and accordingly display the GPay option. Pls use the List available UPI Apps call for this operation. The isDeviceReady call is not relevant for this scenario.

**Step 3 - Initiate wallet transaction** 

Use walletTxn operation to initiate GooglePay. Please ensure that you pass below params, specifically for GooglePay **in-app flow** 

* paymentMethod :: GOOGLEPAY
* sdkPresent :: ANDROID_GOOGLEPAY
* allowedMethods :: ["UPI","CARD"] (Pass UPI or CARD or both the flows to whitelist the flows that must be allowed)
* useFallback :: true/ false (if passed as true, user shall fallback to UPI intent flow, when GPay app version does not support in-app flow, default value will be true)
  
  > **Note**
  > Ensure that below Gpay configs are added at Juspay end-
  > 
  > * Enable/ Disable fallback flow
  > * Choose the fallback flow required (UPI Intent)

