Razorpay Addon

RazorPay Payment Gateway

This Add-on will add payment option for ARMember plan with one time payment & plan with subscription payment.

Important Note:This add-on will work with ARMember Version 4.4 or grater.


Steps For Installation And Activation

You can install plugin in following two ways. and ARMember – Razorpay plugin requires ARMember Plugin installed and active.

New install via FTP

  1. Download the plugin and extract it. You will find a directory armemberrazorpay.
  2. In your WordPress installation directory, upload armemberrazorpay to wp-content/plugins/
  3. Activate the ARMember - Razorpay Addon plugin through the Plugins menu from WordPress admin panel.

New install via the WordPress Uploader

  1. Download the plugin.
  2. Log in to your WordPress admin panel
  3. Go to Plugins -> Add New -> Upload
  4. Click on “choose file” and browse the download package. When the plugin uploads successfully, click on Activate Plugin.

Steps to Setup Razorpay For Your Website

Let’s setup membership for your website :

  1. When plugin activated then razorpay section will be display in ARMember -> General Settings -> Payment gateways.

    Please see below screen.

    general setting screen

  2. First of all need to activate the Razorpay payment gateway so you will be able to insert Key Id , Key Secret, Webhook secret and Contact Number. For activation click on active button.

  3. If you do not have Razorpay account then create it.

    For Live / Sandbox account click here.

  4. Where do I get the Key ID , Key Secret and Webhook secret?

    To obtain the Secrect key of Razorpay access the site with your login and the password follow the steps:

    Click Settings Menu -> API Keys

    You can see Key ID and For Secret Key you need to generate it.

    razorpay account credentials

    You can get Webhook secret by creating Webhook URL in your Razorpay account, Follow below steps to crete Webhook URL.

  5. From where I can set Webhook URL ?

    To set Webhook URL in Razorpay account, access the site with your login and the password follow the steps:

    Click on Settings -> Webhooks

    Navigate to + Add New Webhook button, It will open Webhook Setup pop-up page. In Webhook Setup pop-up:

    • Enter the Webhook URL where you want to receive the webhook payload when an event is triggered, as https://yoursitename.com/?arm-listener=arm_razorpay_api. We recommend to use HTTPS URL.

      You can set up to 5 URLs to receive Webhook notifications.

    • Enter a Secret(Webhook Secret) for the webhook endpoint. The secret is used to validate that the webhook is from Razorpay. Use this secret in ARMember Payment Gateway configuration page in Webhook Secret field.

    • In the Alert Email field, enter the email address to which the notifications should be sent in case of webhook failure. You will receive webhook deactivation notifications to this email address.

    • Select all available events from the list of Active Events. In order to receive notification when specific events occurs.

    • Click Create Webhook to add webhook. After you set a webhook, it appears on the list of webhooks.

      general setting screen

  6. After that you need to select Contact Number field which is required by Razorpay. If you have not added phone number field in signup form than you need to create that field first from ARMember -> Manage forms page click on Add/Edit Signup Form and add Phone Number/contact number field if not exists in signup form.

    Please see below given screenshot.

    armember signup form page

  7. After configured Razorpay configuration you can select Razorpay payment gateway for the setup form from ARMember -> Configure Plan + Signup Form -> Add/Edit Setup Form page.

    Please see below given screenshot.

    Configure Plan Screen

  8. Razorpay support for one time and plan with subscription payment with Razorpay

  9. ARMember Razorpay Addon supports payment with AED, ALL, AMD, ARS, AUD, AWG, BBD, BDT, BMD, BND, BOB, BSD, BWP, BZD, CAD, CHF, CNY, COP, CRC, CUP, CZK, DKK, DOP, DZD, EGP, ETB, EUR, FJD, GBP, GIP, GMD, GTQ, GYD, HKD, HNL, HRK, HTG, HUF, IDR, ILS, INR, JMD, KES, KGS, KHR, KYD, KZT, LAK, LBP, LKR, LRD, LSL, MAD, MDL, MKD, MMK, MNT, MOP, MUR, MVR, MWK, MXN, MYR, NAD, NGN, NIO, NOK, NPR, NZD, PEN, PGK, PHP, PKR, QAR, RUB, SAR, SCR, SEK, SGD, SLL, SOS, SSP, SVC, SZL, THB, TTD, USD, UYU, UZS, YER, ZAR Currencies.

    For more infomation about currencies please refer Razorpay documentation: click here

  10. If Error message display like below then, Add webhook secret in ARMember payment gateway configuration page which is defined at a Webhook URL creation time, if webhook URL is not created follow step 5 to create webhook URL in Razorpay account.

    Razorpay Webhook Secret Error Message

    If you have forgot the Webhook Secret then, you can change it from the the Razorpay Payment Gateway -> Settings -> Webhooks -> Edit Webhook page and then you can update that secret at the ARMember Razorpay Payment Gateway setting.

Important Note: If you have added Webhook and still user is not creating then then kindly check by changing webhook URL with http:// instead of https:// at Razorpay Payment Gateway account -> Settings -> Webhook -> Edit Webhook page.


Important Note: Razorpay Payment Gateway Limitations:

  1. Razorpay Payment Gateway does not support Trial Period for automatic subscription payments.
  2. Razorpay doesnot support automatic subscription payment method below 7 days
  3. For automatic subscription payment method apply coupon code, Razorpay Payment Gateway does not support to apply coupon on first payment so for apply coupon admin need to select “For Recurring Plan Apply to Entire Duration” from Add/Edit coupon page.