Skip to content


How to Configure Webhook on KS Pay?

Configuring a webhook is essential for enabling real-time updates between your payment gateway and KS Pay. This guide walks you through setting up a webhook, specifically for Razorpay, on the KS Pay platform. By configuring the webhook, you ensure that payment events are instantly communicated to KS Pay, allowing you to track and manage transactions seamlessly.

Step 1: Obtain the Webhook URL and Secret Key from KS Pay

  1. Navigate to the Add Gateway Section: In the KS Pay dashboard, under Settings, click on Add Gateway.

  2. Select Razorpay: In the list of gateway options, choose Razorpay. Once selected, KS Pay will generate a Webhook URL and a Secret Key for you.

  3. Copy the Webhook Details: You will need both the URL and Secret Key to set up the webhook on the Razorpay platform.

Step 2: Configure Webhook on Razorpay

  1. Log in to the Razorpay Dashboard: Go to your Razorpay account and navigate to the Account & Settings section, then select Webhooks.

  2. Add a New Webhook:

  3. Click on Add New Webhook to start the configuration.

  4. Paste the Webhook URL from KS Pay into the Webhook URL field.

  5. Enter the Secret Key provided by KS Pay into the Secret field. This key helps secure the communication between Razorpay and KS Pay.

3. Select Events:

  1. In the Active Events section, check the events you want Razorpay to notify KS Pay about.

You can select additional events as needed, depending on the specific notifications you want KS Pay to receive.

  1. Save the Webhook Configuration: After you’ve entered all the details and selected the events, click Create Webhook. Razorpay will confirm that the webhook has been created and is active.

Step 3: Verification on KS Pay

  1. Return to KS Pay: Once the webhook is configured on Razorpay, go back to the KS Pay dashboard.

  2. Verify Webhook Configuration: In KS Pay, the webhook status should now reflect as Pending Verification. It will automatically update to Verified once the connection is established and tested successfully.

  3. Mark as Done: After verification, click on Mark as Done to finalize the webhook setup.

Test and Monitor

  1. Test the Webhook: To ensure everything is set up correctly, you can initiate a test transaction on Razorpay. You should see the corresponding event details reflected in KS Pay.

  2. Monitor Webhook Activity: In the Razorpay dashboard, you can view the webhook's event logs to monitor and troubleshoot any issues.

Configuring a webhook on KS Pay is a straightforward process that enables real-time payment event updates. By setting up a webhook, you enhance the transaction tracking capability on KS Pay, allowing for a seamless, automated, and secure payment experience for your platform.