How to integrate RazorPay payment gateway within your platform using API ? ?

Created by Ayush Sharma, Modified on Sat, 19 Apr at 11:58 AM by Ayush Sharma

This is a step by step self-help guide to integrate RazorPay payment gateway within your course platform.


You can easily integrate multiple payment gateways within your course platform. This guide specifically talks about how to integrate RazorPay. For those of you who don't know RazorPay helps in collecting online payments for anything that you sell online or offline.


Integrate RazorPay Payment Gateway 


Sign up with RazorPay.


Go to Razorpay.com and sign up. It is a simple 4 step process. However, for any help, refer here. 


Once your account has been set-up, you will be redirected to "Dashboard". If you haven't, just click here.  


 

On the bottom left corner, scroll down and select the last option "settings".  


 

 

Click on "API Keys" from your tab. Here you will get the private keys using which you will integrate the Razorpay into your course platform. 


 

 

Now click on "Generate New Key". Your private keys will be generated. You need to copy it and paste it on your course platform. Alternatively, you can also “download Key Details”. 


 

Settings within your Course Platform.


Open a new tab and login to your course platform. 


Now, visit your Dashboard, scroll down and select "SETTINGS". 

 

 

 


In the landing page, select "Payment" placed right in the top. 


 


 

Choose the currency you would like to collect payment in. If the majority of learners are in India, select "Indian Rupee". 

 


Under the "Payment Gateway" select "RazorPay". If you want to charge tax, click on "GST", "VAT" or click on "No Tax". If you want to charge tax, enter the percentage charged under "Default Tax Rate". 


 


Click on "Save" to save the above changes.


Go back to your Course Platform where you have last left.  Now paste RazorPay Key Id & Key Secret in here. 


 

Click on "Save" to save the above changes.


Generating Webhook URL & Secret from your Course Platform


Now, scroll down till the Private Keys details under the "Payment Gateway Details". From here copy the “Razorpay Webhook Secret”. From the right side of the webpage, copy the “Webhook URL” 


 


Setting up Webhook in your RazorPay Account


Now, select “Webhook” and click on “Setup your New Webhook”.  

 

 


A new section will pop up. Here you need to do paste the “Webhook URL” & “Secret” which has been automatically generated on your course platform.  

 


Keep this tab open and open a new tab on your PC.


Go back to the Razorpay tab you have left open. Here, paste Webhook URL & Secret that you have copied. 


Check the first box named “payment authorized”, scroll down & click on “Save” to save the above changes. 

  

Now, scroll down & click on “Save” to save the required changes.


Now, you need to copy API Keys from your RazorPay Account


Your RazorPay payment gateway integration is complete.


Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article