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


# HDFCBANK_SMARTGATEWAY




## Pre-requisite : 



1. SmartGATEWAY MID.
2. API key obtained from SmartGATEWAY Dashboard.


### Step 1: Obtain the API Key from SmartGATEWAY(SG) Dashboard



A mail would be triggered from HDFC team mentioned that account has been created and admin email & MID would be provided. 

1. **Merchant Admin**  would need to login to SmartGATEWAY dashboard
   
   1. UAT / Sandbox : [https://dashboarduat.smartgatewayuat.hdfcbank.com/](https://dashboarduat.smartgatewayuat.hdfcbank.com/)
   2. Production : [https://dashboard.smartgateway.hdfcbank.com/](https://dashboard.smartgateway.hdfcbank.com/)
2. Post Successful login (After Reset Password,Setting up 2FA) merchant would need to navigate to left side hamburger button.
   
   1. In that navigate to Payments > Setting > Security
   2. Under Security section, merchants would be able to download the API key: Merchant would need to click on “Create New API Key button”
   3. The details would be downloaded in a config.json file which would contain the API and MIDs.
3. Now that you have MID and API key of SmartGATEWAY, Let’s start configuring on Juspay Dashboard


### Step 2 : Juspay Dashboard PG Configuration 



1. Login to the Juspay Dashboard : 
   
   1. Prod :
   2. SBX :
2. Navigate to Payments > PG Control Center > Other Gateways > Type “HDFCBANK_SmartGATEWAY”.
3. Click on the same.
4. Select Enviroement from where you have downloaded the SG API Key. 
   
   
   | Enviroment to be selected | SG Dashboard API Key |
   |---|---|
   | Live credentials  | If Downloaded from Production SG Dashboard  |
   | UAT credentials | If Downloaded from UAT SG Dashboard  |
5. Now you would get an option for entering gateway_reference_id. If you have the use case, kindly add the same.
6. Configuring the Details as obtained in config.json file
7. Payment Methods Configuration : 
   
   1. Juspay has sync enabled for SmatGATEWAY PG and payment methods enabled, would be added by default.
8. Advanced Flags : 
   
   1. If you have a UPI mandate use case, kindly enable : Emandate flag.
   2. If you have card mandate use case, Kindly enable : Card Mandate flag.

Step 3: Configuration of webhook URL on SmartGATEWAY Dashboard : 

1. You would get an URL under webhook tab. Kindly copy the URL.
2. Login to smartGATEWAY  dashboard and navigate to Payments > Settings > Webhooks.
3. Paste the copied webhook URL.
4. Select the below supported events from SG dashboard. 
   
   1. **Order Succeeded**
   2. **Order Failed**
   3. **Refund Initiated**
   4. **Refund Failed**
   5. **Refund Succeeded**
   6. **Refund Arn Captured**
   7. **Txn Created**
   8. **Txn Charged**
   9. **Txn Failed**

> **Note**
> Once a round of testing has been done from your end, Kindly reach out to your HDFC MRM for Security audit. 



---

## See Also

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