# PayU

PayU is a global payment gateway trusted by thousands of merchants for offering fast, secure, and localized payment options. It supports cards, UPI, netbanking, EMI, and BNPL.

<figure><img src="https://1325107618-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FePPO97Ju334NhhCzTEZP%2Fuploads%2Fgit-blob-dbfd3985316793f19fdebf60ebb2ab0c690f708c%2Fdownload%20(13).png?alt=media" alt=""><figcaption></figcaption></figure>

**When you connect PayU with QuickReply you can:**

**Send Personalized Prepaid Links**\
Generate payment links using PayU APIs and deliver them via WhatsApp to convert COD orders.

**Trigger Prepaid Incentive Campaigns**\
Automate WhatsApp messages offering discounts or loyalty points for prepaid switches.

**Recover Lost Revenue from Cancelled CODs**\
Use PayU status data to retarget users who didn’t confirm or complete their COD orders.

To integrate PayU with QuickReply:

* Go to Integrations in your QuickReply dashboard
* Choose the software
* Click ‘Request Connection’
* Our team will take care of the rest

To enable this payment collection via PayU, you need to do the following setup

1. Create and share the following with us at <help@quickreply.ai>
   1. PayU Client ID
   2. Secret Key
   3. Merchant ID
2. Setup the Webhook in PayU

## 1. Generate Client-id & Secret Key

The API Keys section allows you to view and reset the existing API keys.\\

<figure><img src="https://1325107618-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FePPO97Ju334NhhCzTEZP%2Fuploads%2Fp1wZFFBKcEJIT1UXRNRq%2Fimage%20(41).png?alt=media&#x26;token=b81b0297-ef2c-4dcd-b105-2a2bd917860e" alt=""><figcaption></figcaption></figure>

To get the client ID and secret from the PayU Merchant Dashboard:

1. Navigate to the following URL and log in to Merchant Dashboard.:

<https://onboarding.payu.in/app/account>

2. Select **Payment Gateway** under **Collect Payments** from the menu on the left pane.

The *Payment Gateway Integrations* page is displayed similar to the following screenshot.

<figure><img src="https://1325107618-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FePPO97Ju334NhhCzTEZP%2Fuploads%2Fma5Hnfhco8sWYOHsNZHA%2Fimage%20(42).png?alt=media&#x26;token=6aefc860-4f70-49ad-be0f-0c5cb0ac4966" alt=""><figcaption></figcaption></figure>

2. Click **Get Client Details**.

The *Enter Password* pop-up page is displayed to confirm your password for security.

<figure><img src="https://devguide.payu.in/wordpress/index.php/wp-json/getobject?keyname=uploads/2023/01/Enter_Passwod_client_ID.png" alt=""><figcaption></figcaption></figure>

5. Enter your password and click **Proceed**.

The Client ID and Secret is displayed in the pop-up page.\\

<figure><img src="https://1325107618-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FePPO97Ju334NhhCzTEZP%2Fuploads%2FiKlBpDxpSR8H6pJkTHfa%2Fimage%20(43).png?alt=media&#x26;token=f2585100-322d-431e-a1c6-7fd3c64722a7" alt=""><figcaption></figcaption></figure>

## **2. Add Webhook Endpoint**

To add a new webhook:

1. Select **Settings** > **Webhook**.\\

   <figure><img src="https://1325107618-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FePPO97Ju334NhhCzTEZP%2Fuploads%2F5EacnccjFFrzRJS2GWe3%2Fimage%20(44).png?alt=media&#x26;token=c4195b15-73a4-4aad-9435-8d2c44257b95" alt=""><figcaption></figcaption></figure>

The Create Webhooks page is displayed with the list of webhooks.

2. Click **Create Webhook** on the top-right corner of the *Create Webhooks* page.

The *Create Webhook* pop-up page is displayed.

<figure><img src="https://1325107618-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FePPO97Ju334NhhCzTEZP%2Fuploads%2FSFYI2spuuKxn2J6U0NN4%2Fimage%20(45).png?alt=media&#x26;token=7574fee7-efdf-4e28-b024-db3121c87c94" alt=""><figcaption></figcaption></figure>

Select any of the following types from the Type drop-down list:

* **Payments**
* Select the event type from the **Event** drop-down list.
* **Successful**\\

2. Enter the webhook URL in the **Webhook URL** field. <https://app.quickreply.ai/api/payU/payment/webhook>
3. Click **Create** to finish.

Once Done, Please share the keys & Merchant-id with QuickReply.ai Support on <support@quickreply.ai>\
To get Merchant-id, kindly click on the profile section on the top right hand and you will see merchant-id
