# Razorpay Payment Gateway

## Introduction

1. To integrate your Razorpay account with the Artha Job Board, please share your KEY\_ID and KEY\_SECRET from Razorpay.
2. If you already have these, you can share them with our team. If not, follow the steps below to generate your API keys and connect to the webhook.

## Step 1: Generate API Keys

1. **Log in** to your [Razorpay dashboard](https://dashboard.razorpay.com/app) using your credentials.
2. **Select the mode** in which you want to generate the API key:
   1. **Test Mode:** A simulation mode to test your payment integration. Customers cannot make real payments.
   2. **Live Mode:** Once your integration is ready, switch to live mode and generate live API keys to accept real payments.
3. Navigate to **Account & Settings** → **API Keys** (under Website and App Settings).
4. Click on **"Generate Key"** for the selected mode.
5. A pop-up will display the Key ID and Key Secret. **Make sure to copy and store these safely**.

After generating the keys from the Dashboard, download and save them securely. You can use only one set of API keys. If you don't remember your API keys, you must regenerate them from the dashboard and update them wherever the previous keys were used for payment gateway integrations.

## Step 2: Setup Webhook

1. **Log in** to your Razorpay Dashboard and go to Accounts & Settings.
2. Under **Website and App Settings**, click on **Webhooks**.
3. Click the **+ Add New Webhook** button.
4. In the Webhook Setup pop-up, fill in the following details:
   1. **Webhook URL:** Enter <https://api.arthajobboard.com/webhook/rzp/verify> as the URL where webhook payloads will be sent when events are triggered.
   2. **Secret:** Set a secret key for the webhook endpoint. This will be used to verify that the webhook comes from Razorpay. **Do not share this secret publicly**.
   3. **Alert Email:** Provide an email address where you’ll receive notifications if a webhook fails, gets deactivated, or other related issues occur.
5. **Select the events** you want to receive notifications for:
   1. payment.captured
   2. payment.failed
6. Click **Create Webhook** to finish the process. Once set up, the webhook will appear in your list of webhooks.

<figure><img src="https://2082584992-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3TjBKG14VRZgguFLwlBD%2Fuploads%2Fo5SoheGwMl2ORF8exfST%2Fimage.png?alt=media&#x26;token=2d4b87d9-9980-4e08-8d88-7ac2ac8d8cec" alt=""><figcaption><p>Create Weebhook</p></figcaption></figure>

## Step 4: Integrate the Payment Gateway

You need to integrate the payment gateway by following the given steps:

{% content-ref url="" %}
[](https://docs.arthajobboard.com/admin/manage-portal/app-center/payment-integration)
{% endcontent-ref %}
