---
page_title: PHONEPE
product: Payment Gateway Integrations
page_source: https://juspay.io/in/docs/payment-gateway-integrations/docs/payment-gateways/phonepe
llms_txt: https://juspay.io/in/docs/llms.txt
product_llms_txt: https://juspay.io/in/docs/payment-gateway-integrations/llms.txt
---


# PhonePe 




## Step 1: Procure Gateway Credentials 



Obtain the merchant credentials from the PhonePe team for Sandbox (testing) and Production (live).

Please find below a sample format of credentials that you can expect from PhonePe. 

* **Merchant Id*: MERCHANT**
* **Key Index1*: 1**
* **Key 1*: 32********************************b3**
* **Key Index2: 2**
* **MCC: Your merchant Category Code**
* **Mandate Name**
* **Phonepe Client Id**
* **Phonepe Client Secret**
* **Phonepe Client Version**
* **Key 2: b0********************************bd**
* **Transaction note**

> **Note**
> The fields marked *****  are mandatory and are required to be configured to proceed with the testing. Rest of the fields are optional and only required for specific features/flows.




## Step 2: Configure Gateway Credentials on Juspay Dashboard 



* Log in to the Juspay Sandbox environment for testing. You can alternatively use Prod environment directly for testing, in case there is no traffic for your Juspay account in production yet and you have prod gateway credentials.
  
  * Sandbox: [https://sandbox.portal.juspay.in](https://sandbox.portal.juspay.in)
  * Production: [https://portal.juspay.in](https://portal.juspay.in)
* Navigate to: Payments Module > PG Control Centre > Other Gateways > Search & Select "PHONEPE".
* A pop-up titled "Select Environment" will appear. Choose Live or Test Credentials based on your access, and click Proceed.
* (Optional) You may skip adding a Gateway Reference ID at this stage. [Click here](https://docs.juspay.in/resources/docs/common-resources/gateway-reference-id) to know more about gateway reference ID.


## Step 3: Configure Payment Methods 



Configure the payment methods as per your business needs using the Juspay Dashboard. Enable or disable payment methods your business will accept through PhonePe on this screen.


## Step 4: Advanced Features (Optional) 



Following Advanced Feature Flags are available under PhonePe:

* **Send Customer ID:** Note: This is used to pre-login users authenticated on PhonePe. We'll be sending the Unique CustomerID passed by merchants during order creation to PhonePe.
* **Waiting Page Expiry in Seconds** : Provide the wait page timer in seconds only if you want the payment gateway's wait page to be shown for UPI collect transactions. The recommended value is 300.
* **CVV-less** : Enable it if you have integrated Juspay’s CVV Less feature and the same is enabled at PhonePe end for your MID.
* **Direct Debit:** Once user's account is linked, money gets debited using authentication token without any redirection
* **Emandate** : Enabling this flag enables you to make Mandate payments with payment instruments other than CARD.
* **Pre-authorization:** Preauthorization payment
* **Split Settlement** : Enabling this flag enables you to settle the transaction amount into multiple aquiring bank accounts.


## Step 5: Configure Juspay URLs at Gateway 



Refer to the Webhook Section to get the list of Juspay URLs that need to be whitelisted at the gateway end.


## Step 6: Testing 



Test all payment flows using the sandbox environment. Ensure that all enabled payment methods work as expected and the callbacks are received correctly.For testing UPI intent in sandbox you can make use of the PhonePe simulator app -  [https://docs.phonepe.com/public/qEvFKpQBX6u70UQ1EaOE](https://docs.phonepe.com/public/qEvFKpQBX6u70UQ1EaOE)You can check out the PhonePe UAT test doc for any further information - [https://developer.phonepe.com/payment-gateway/uat-testing-go-live/uat-sandbox](https://developer.phonepe.com/payment-gateway/uat-testing-go-live/uat-sandbox)


## Step 7: Go Live



Switch your configuration to production credentials on Juspay Dashboard after thorough testing, and inform PhonePe to enable your production credentials if required.

---

## See Also

- [UNLIMIT](https://juspay.io/in/docs/payment-gateway-integrations/docs/payment-gateways/unlimit)
- [TPSL](https://juspay.io/in/docs/payment-gateway-integrations/docs/payment-gateways/tpsl)
