> ## Documentation Index
> Fetch the complete documentation index at: https://docs.flexype.io/llms.txt
> Use this file to discover all available pages before exploring further.

# PayU

Integrating PayU with FlexyPe enables fast, secure, and reliable payment processing directly through your checkout. With just a few steps, you can start accepting payments and ensure a smooth transaction experience for your customers.

## Getting the API Key and Salt

<Steps>
  <Step title="Access PayU Dashboard">
    <img className="rounded-lg" src="https://mintcdn.com/flexype/WQbYVterOEvhxHLt/images/integrations/payment/payu/payu-1.png?fit=max&auto=format&n=WQbYVterOEvhxHLt&q=85&s=c3d66a58e5f7fcf4afe76bc6041806a9" alt="Hero Dark" width="3024" height="1600" data-path="images/integrations/payment/payu/payu-1.png" />

    * Log in to [PayU Dashboard](https://onboarding.payu.in/app/account/signin).
    * Click on Developer on the left panel and select API Keys.
  </Step>

  <Step title="Get the API Key and Salt">
    <img className="rounded-lg" src="https://mintcdn.com/flexype/WQbYVterOEvhxHLt/images/integrations/payment/payu/payu-2.png?fit=max&auto=format&n=WQbYVterOEvhxHLt&q=85&s=18d05b37bffcaa390368f08ff9ac8f0d" alt="Hero Dark" width="3024" height="1600" data-path="images/integrations/payment/payu/payu-2.png" />

    * Under API Key Salt details, you will find the required keys.
    * Copy the **API Key** and **API Salt(32 bit)** and keep it handy for configuration.
  </Step>
</Steps>

## Integrate PayU with FlexyPe

<Steps>
  <Step title="Access PayU in FlexyPe Dashboard.">
    <img className="rounded-lg" src="https://mintcdn.com/flexype/WQbYVterOEvhxHLt/images/integrations/payment/payu/payu-3.png?fit=max&auto=format&n=WQbYVterOEvhxHLt&q=85&s=d0085b0224b0439d0922b00e92f58fca" alt="Hero Dark" width="3024" height="1600" data-path="images/integrations/payment/payu/payu-3.png" />

    * Log in to your [FlexyPe Dashboard](https://dashboard.flexype.io).
    * Click on the Settings menu and select Payments.
  </Step>

  <Step title="Configure PayU">
    <img className="rounded-lg" src="https://mintcdn.com/flexype/WQbYVterOEvhxHLt/images/integrations/payment/payu/payu-4.png?fit=max&auto=format&n=WQbYVterOEvhxHLt&q=85&s=cccbeffd70889f4a3585fe90a8798689" alt="Hero Dark" width="3024" height="1602" data-path="images/integrations/payment/payu/payu-4.png" />

    * Click the Configure button located within the PayU card to proceed with setup.
    * Paste the copied **API Key** into the designated field.
    * Paste the copied **API Salt** into the designated field.
    * Click Save to complete the configuration.
      <Warning>Do not delete the credentials if the payment provider is in use</Warning>
  </Step>

  <Step title="Use PayU for Your Payment Methods">
    <img className="rounded-lg" src="https://mintcdn.com/flexype/WQbYVterOEvhxHLt/images/integrations/payment/payu/payu-5.png?fit=max&auto=format&n=WQbYVterOEvhxHLt&q=85&s=dfea5bb5843e7cffac53e76da5a6eb0d" alt="Hero Dark" width="3024" height="1602" data-path="images/integrations/payment/payu/payu-5.png" />

    * In the section below, you'll see a list of payment methods.
    * If you want to use PayU to handle any of these methods, change the provider to **PayU**.
    * Repeat this for each method you wish to route through PayU.
      <Warning>Make sure PayU is fully configured before selecting it as a provider.</Warning>
  </Step>
</Steps>

## SetUp PayU Webhooks

<Steps>
  <Step title="Access PayU Dashboard">
    <img className="rounded-lg" src="https://mintcdn.com/flexype/WQbYVterOEvhxHLt/images/integrations/payment/payu/payu-6.png?fit=max&auto=format&n=WQbYVterOEvhxHLt&q=85&s=2de2372c563f27c2d062a8c6724f050c" alt="Hero Dark" width="3024" height="1602" data-path="images/integrations/payment/payu/payu-6.png" />

    * Return to your PayU Dashboard, where you are already logged in.
    * Click on Developer on the left panel and Webhooks.
  </Step>

  <Step title="Create a Webhook for Successful Payments">
    <Note>Webhooks set-up is a mandatory step as it confirms the order creation on your store</Note>

    <img className="rounded-lg" src="https://mintcdn.com/flexype/WQbYVterOEvhxHLt/images/integrations/payment/payu/payu-7.png?fit=max&auto=format&n=WQbYVterOEvhxHLt&q=85&s=3bdcae78eebc51480757aa27ea1a0e8a" alt="Hero Dark" width="3024" height="1598" data-path="images/integrations/payment/payu/payu-7.png" />

    * Click on the **Create Webhook** button.
    * In the event type, select **Payments – Successful**.
    * In the webhook URL field, paste the following URL:

    ```
    https://api.flexype.in/v1/public/pg/payu/webhook
    ```

    * Click **Save** to finalize the webhook.
  </Step>

  <Step title="Create a Webhook for Failed Payments">
    <Note>Webhooks set-up is a mandatory step as it confirms the order creation on your store</Note>

    <img className="rounded-lg" src="https://mintcdn.com/flexype/OeCtKm9kYsE8Xaqh/images/integrations/payment/payu/payu-8.png?fit=max&auto=format&n=OeCtKm9kYsE8Xaqh&q=85&s=4208891214de80fcb4a70d883c0de22d" alt="Hero Dark" width="3024" height="1596" data-path="images/integrations/payment/payu/payu-8.png" />

    * Click on the **Create Webhook** button.
    * In the event type, select **Payments – Failed**.
    * In the webhook URL field, paste the following URL:

    ```
    https://api.flexype.in/v1/public/pg/payu/webhook
    ```

    * Click **Save** to finalize the webhook.
  </Step>

  <Step title="Create a Webhook for Refunds">
    <Note>Webhooks set-up is a mandatory step as it confirms the order creation on your store</Note>

    <img className="rounded-lg" src="https://mintcdn.com/flexype/OeCtKm9kYsE8Xaqh/images/integrations/payment/payu/payu-9.png?fit=max&auto=format&n=OeCtKm9kYsE8Xaqh&q=85&s=f2e9b24d844b3a63ab37f109364c6d3d" alt="Hero Dark" width="3024" height="1598" data-path="images/integrations/payment/payu/payu-9.png" />

    * Click on the **Create Webhook** button.
    * In the event type, select **Refunds**.
    * In the webhook URL field, paste the following URL:

    ```
    https://api.flexype.in/v1/public/pg/payu/webhook
    ```

    * Click **Save** to finalize the webhook.
  </Step>

  <Step title="Complete Payment Setup">
    * After adding your payment credentials in FlexyPe and configuring the webhook, the setup is complete.
    * FlexyPe is now connected to your Shopify store and ready to process payments.
  </Step>
</Steps>

By following these steps, you’ll successfully integrate PayU with FlexyPe, enabling secure payment processing and a smooth checkout experience.
