Comment on page
How to Integrate Razorpay to aasaan
You can watch the video version of this article here:
Our regular method of setting up online payments, involves setting up aasaan Pay by entering your bank account details. This works if you don't have a payment gateway account like Razorpay.
But what if you do have an existing account on Razorpay? Here is how you connect it to aasaan:
Login to your existing razorpay account and click on Account & Settings > API Keys.
Since we already have existing API keys and need new ones, we will click on Regenerate Test Key.
Important note: This guide illustrates the steps for integrating Razorpay in test mode. You will need to integrate Razorpay to your store in live mode to be able to accept real payments. The Razorpay integration process is the same in both the test mode and live mode. So if you are carrying out this step in live mode, you will need to click on Regenerate Live Key.
To get new API keys, you will need to deactivate your existing ones. Choose Deactivate old key immediately and then click on Confirm and deactivate.
Copy and save your Key ID and Key Secret will be visible. You can download them by clicking on Download Key Details.
Important note: The key secret will be displayed only once.
Go to your installed Razorpay app in aasaan. Enter your Key ID and Key Secret.
Copy the Webhook URL.
Now you need to add the aasaan app Webhook URL into your Razorpay account.
In your razorpay settings, click on Webhooks > Add New Webhook.
Paste the webhook url in the top field, and choose payment.failed and payment.captured as the active events. Then click on Create Webhook.
Your webhook will be created.
Go back to your installed Razorpay app in aasaan and click on Verify.
You have successfully set up Razorpay on your store.