Razorpay
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:
Note: Make sure to install Razorpay from the aasaan app market. Click here to learn how to install apps from your app market.
STEP 1:
Login to your existing razorpay account and click on Account & Settings > API Keys.

STEP 2:
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.

STEP 4:
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.

STEP 5:
Go to your installed Razorpay app in aasaan. Enter your Key ID and Key Secret.

STEP 6:
Copy the Webhook URL.

STEP 7:
Now you need to add the aasaan app Webhook URL into your Razorpay account.
In your razorpay settings, click on Webhooks > Add New Webhook.

STEP 8:
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.

STEP 10:
Go back to your installed Razorpay app in aasaan and click on Verify.

You have successfully set up Razorpay on your store.

Last modified 1mo ago