Skip to content

Razorpay Payment Extension for Opencart

Notifications You must be signed in to change notification settings

razorpay/razorpay-opencart

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Razorpay Payment Extension for Opencart

This extension utilizes Razorpay API and provides seamless integration with OpenCart, allowing payments for Indian merchants via Credit Cards, Debit Cards, Net Banking, Wallets, etc. without redirecting away from the OpenCart site.

Installation

Copy all files/folders recursively to opencart installation directory.

Go to Admin Panel, Extensions->Payments and install the Razorpay gateway extension.

Click on Edit next to Razorpay and do the following:

  • Add your Razorpay Key Id
  • Add your Razorpay Key Secret
  • Change plugin status to Enabled

Save the plugin settings

Installation via Extension Installer

  1. Download Razorpay Payment gateway extension from Opencart
  2. Login to the OpenCart Admin Panel
  3. Navigate to Extensions -> Installer and click on button Upload and choose the zip file razorpay.ocmod.zip
  4. Click install on same page
  5. Navigate to Extensions -> Payments and click install on Razorpay
  6. After installing, click on Edit
  7. Enable the extension and set the Razorpay Key Id and Secret.
  8. Please make sure that you have Webhooks setup on the Razorpay Dashboard to ensure that recurring payments are marked as paid on Opencart.
  9. This extension supports the following webhook events:
    • payment.authorized
    • payment.failed
    • order.paid

Note:

While installing the Razorpay plugin to Opencart 4 make sure to only have these folders/files and no hidden files in your zip folder:
admin/
catalog/
system/
install.json

Development

  • The master branch holds the plugin for OpenCart 4
  • The master-opencart3 branch holds the plugin for OpenCart 3
  • The opencart-2.x branch holds the plugin for Opencart 2
  • The opencart1.5 branch holds the plugin for Opencart 1.5
  • Tags are in either of these three series: opencart3-x.y.z or opencart2-x.y.z or opencart1.5-1.x.y
  • Subscription is available with Opencart 3 and Opencart 4
  • Opencart 3 and Opencart 4 latest versions support PHP 8

Support

Visit https://razorpay.com for support requests or email [email protected].