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

# Razorpay

> Link your Razorpay account inside Cashfree FlowWise to orchestrate cards, UPI, netbanking, and wallet payments alongside other gateway partners.

* [x] Cards (Credit, Debit and Prepaid)
* [x] UPI
* [x] Netbanking (all banks)
* [x] Wallets

We offer two guides: one for non-S2S merchants and another for S2S merchants. If you don’t have a PCI certificate and S2S enablement isn’t available with Razorpay, you can still easily accept payments on FlowWise with just a few simple steps.

<Tabs>
  <Tab title="S2S not available">
    You can setup this integration without having S2S enabled.

    1. Log in to the **[Merchant Dashboard](https://merchant.cashfree.com/auth/login)**.
    2. On the home page, click ‘Payment Gateway’, then select Flowwise from left navbar. Select ‘Gateways’
    3. On the top right, click **Add Gateways**
    4. Select Razorpay from dropdown, and add a unique name and description for the gateway. Then click **Next**
    5. Select ‘PROD’ environment if you are configuring your production **KeyID** and **Secret Key**. Click ‘Submit’.

    You have now added Razorpay on to Flowwise.

    ## Configure webhooks

    To configure Flowwise webhooks on Razorpay dashboard to receive updates about all payment events

    1. Go to razorpay dashboard
    2. Under ‘Accounts and Settings’, click **Webhooks**.
    3. Add `https://push.cashfree.com/push/v1/pg/pa_razorpaypg`, and under Secret, add your Razorpay secret key (steps to obtain secret key written below).
    4. Under Active Events, select payment.authorized, payment.failed, payment.captured and order.paid
  </Tab>
</Tabs>

## How to find your key and salt

There are three ways of obtaining your key and salt

<Tabs>
  <Tab title="Ask your account manager">
    1. Your Razorpay Account manager will provide you the details on the mail.
  </Tab>

  <Tab title="Search your existing integration">
    Look into your current integration with Razorpay, and find the **keyId** and **secret** from the integration code at your backend. You would also have them saved somewhere on your system.
  </Tab>

  <Tab title="Generate a new pair">
    You can also generate a new KeyID and Secrey Key from [Razorpay’s Dashboard](https://dashboard.razorpay.com/).

    <Warning>
      Generating new credentials will render your old credentials invalid, so it might affect your integration with Razorpay’s standard checkout APIs. Only generate new keys just before going live on flowWise.
    </Warning>

    1. Login into your Razorpay Dashboard (Razorpay Dashboard )
    2. Under Accounts and Settings, you will find an option to ‘Generate new key’
  </Tab>
</Tabs>
