---
page_source: https://juspay.io/in/docs/ec-headless/cordova/additional-features/paytm-all-in-one-flow
page_title: Paytm All In One Flow
---


# **Paytm All in One SDK** 




### Step 1.1. Substep


**Prerequisites** 

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

* Account creation with Paytm
* Configure the credentials provided by Paytm on Juspay Dashboard

**Dependencies** 

No gradle dependency required to be added for this flow.

**User Experience for Paytm in app flow** 

![Image](https://dth95m2xtyv8v.cloudfront.net/tesseract/assets/ec-headless/paytm_user_journey%20(1).png)



> **Note**
> The above user experience will be available only in case when the user has Paytm app installed on phone. If not, the user will be automatically redirected to the OTP login page of Paytm.






### Step 1.1. Key integration changes for integrating Paytm all in one flow via Hyper SDK:


**Step 1 - Customer context creation** 

[Create](https://docs.juspay.in/ec-headless/android/base-sdk-integration/createcustomer) or [Get](https://docs.juspay.in/ec-headless/android/base-sdk-integration/getcustomer) Customer on the Juspay Server. It is recommended to make this API call before opening the payment page.

**Step 2 - Order creation** 

[Create Order](https://docs.juspay.in/ec-headless/android/base-sdk-integration/create-order-api) on the Juspay Server.

**Step 3 - Check Device specific App/SDK** 

Check paytm app availability for the current device using isDeviceReady Call. Refer to the code Snippet on the right for details. Please consider the app to be present on the user device if the response is true.

**Step 4 - Initiate wallet transaction** 

Use walletTxn operation to initiate Paytm transaction. Please note to send the below two parameters for the walletTxn operation.

* paymentMethod :: PAYTM
* sdkPresent :: ANDROID_PAYTM (shall be passed based only if the response obtained in Step 3 is true)
  
  > **Note**
  > The above user experience will be available only in case when the user has paytm app installed on paytm . If not, the user will be automatically redirected to the OTP login page of Paytm.
  > 
  > The request payload given here is for **In-App Flow**

