Fix for Instamojo Payment Gateway Authorization Failed Error

Posted on the 14 February 2019 by Pro Webguru @prowebguru

Instamojo is one of the best payment gateway systems I have used. Its quite easy to setup Instamojo payment gateway with WordPress & WooCommerce. They have a plugin for WordPress Woocommerce. I had setup this payment gateway long time back, but recently it started showing "Payment Gateway Authorization Failed" error after upgrade.

The error occurs when someone tries to do a checkout from the cart. The error might be because of following reason

Solution for Instamojo Payment Gateway Failed Error
  1. If you're using the plugin in "Test Mode" then make sure you're using the credentials obtained from your test account.
  2. Another reason could be that your credentials are not valid anymore. This can happen when your account might be disabled.

You can find more information about this error on instamojo payment gateway authorization failed description page.

To fix this issue try following steps

  1. Login to your WordPress Admin panel.
  2. Go to Woocommerce -> Settings.
  3. Go to Payments tab.
  4. Click on Instamojo.
  5. Under API Credentials, check if you have "Client ID" & "Client Secret" information entered.
  6. If its not there then you need to put that information there.

How to get "Client ID" & "Client Secret" ?

  1. Login to your Instamojo account.
  2. Go to "API & Plugins" section.
  3. You will find a button "Create new Credentials" there.
  4. Click on that and select the platform for which you would like to generate credentials.
  5. Once selected, click on "Generate Credentials".
  6. It will show you "Client ID" & "Client Secret".
  7. Copy those credentials and put it back in the WordPress WooCommerce configuration fields.
Generate Client ID & Client Secret for Instamojo Payment Gateway Account

Did it resolve your problem ? If you found any other solution, let us know.