Razorpay Payment Gateway

This add-on allows you to accept credit cards with the Razorpay payment gateway.

Download “Razorpay Add-on for Studiocart”Sign up free to receive an activation code

Directions

After installing and activating this add-on plugin, head over to your Studiocart settings to enter your API key, enable your chosen payment methods under the Razorpay settings and choose a color theme (optional). Then in the General Settings tab add your Company Name and Logo Image.

Now you need to set up a Webhook in Razorpay. Go to your Razorpay Dashboard and navigate to Settings > Webhooks. Click the + add new Webhook button and in the pop-up page enter the HTTPS URL where you want to receive the Webhook payload when an event is triggered. Then enter a Secret for Webhook endpoint and enter an Alert Email for if the Webhook fails.

Now select any of the required Active Events from the following list:

  • order.paid
  • subscription.authenticated
  • subscription.activated
  • subscription.pending
  • subscription.charged
  • subscription.cancelled
  • subscription.completed
  • subscription.updated

Click Create Webhook and the Razorpay integration is complete.

Alternatively, to set up a Webhook for Subscription payments, you can enable the Flash Checkout Feature under the Configurations page in your Razorpay account. From there head over to the Studiocart settings, remove the Secret Key and Save. Then reenter the Secret Key and save again. This will automatically create a webhook for subscription payments with Razorpay.

Note: Daily subscription payments are only available if the Pay Interval is more than 7.

Note: Subscription payments are not available if the Tax setting is set to “Excluding”.

How To Troubleshoot Order Status Error

Follow these steps if the order status is not automatically updating from pending to paid.

Note: If you still experience issues after following the steps below please email the support team at support@studiocart.co

  1. Login to your Razorpay Dashboard and go to Settings>Webhook
  2. Then check if you have a webhook setup for your website. For example https://yourdomain/?sc-api=razorpay.
  3. If you don’t have a webhook setup follow step 4. If you do have a webhook setup skip to step 6
  4. First, select Add New Webhook
  5. Then add the webhook url  https://yourdomain/?sc-api=razorpay and select the following events
    > payment.failed
    > order.paid
    > subscription.activated
    > subscription.pending
    > subscription.charged
    > subscription.cancelled
    > subscription.completed
    > subscription.updated
  6. If the webhook is already there check the following events are selected and edit the webhook to select any that are missing.
    > payment.failed
    > order.paid
    > subscription.activated
    > subscription.pending
    > subscription.charged
    > subscription.cancelled
    > subscription.completed
    > subscription.updated