Articles on: Settings

Connect Razorpay to your store

Razorpay is the payment solution in India that allows businesses to accept, process and disburse payments with its product suite. This article has been crafted to assist you in effortlessly connecting Razorpay as the preferred payment gateway for your online store.

In this article



A. Set up Razorpay Business Account
B. Get the key ID, key secret in Razorpay
C. Configure webhooks
D. Activate Razorpay as your payment method
E. Deactivate your Razorpay account

A. Set up Razorpay Business Account



Log in to Razorpay dashboard with your business account. . If you haven't created an account yet, please register one.

To get the official account, you need to submit KYC. Please contact Razorpay for more information and specific details regarding the KYC submission process.

B. Get the key ID, key secret in Razorpay



Go to Razorpay dashboard > Click Account & Settings > In Website and app settings section, click API keys tab.


By clicking on API Keys option you will be able to generate Key Id and Key Secret.

Copy the Key ID and the Key Secret.


Select the appropriate option to generate API keys for either the test mode or the live mode.



Please note that the test mode is only for testing purposes and cannot be used to receive actual payments.

C. Configure webhooks



Go to Razorpay dashboard > Click Account & Settings > In Website and app settings section, click Webhooks.


Click Add New Webhook.


Complete the necessary field.

Webhook URL: add the corresponding URL for the following modes

Test mode: https://gapi.dev.shopbase.net/provider-whk?provider=razorpay&env=dev

Live mode: https://api.shopbase.com/provider-whk?provider=razorpay&env=prod

Active Events: select all events in the Payment Events, Order Events, and Refund Events categories.


Then click Create Webhook.



D. Activate Razorpay as your payment method



From your ShopBase admin site, go to Settings > Payment providers.


In Third-party providers section, click Add account.


Select Razorpay.


Paste the Key ID and Key Secret in API keys you copy from step B into 2 boxes. Click Add account.



Turn on Test mode then use the API keys from Test account if you just want to test the store.

To enhance the security of your account, ShopBase will not share any information related to your store, including your store name, store domain, product name, etc., with payment gateways. This measure is in place to mitigate the risk of your account being restricted.

E. Deactivate your Razorpay account



After connecting your Razorpay account to the store, you can deactivate it anytime by 2 ways and still be able to re-activate it later.

In the Payment providers dashboard > Toggle the active Razorpay account to deactivate.


Or in the Razorpay management dashboard, click Deactivate.





Overview of Payment
Place a test order (draft order) on ShopBase

Updated on: 18/01/2024

Was this article helpful?

Share your feedback

Cancel

Thank you!