OpenCart 2.3–4.1 extension

Supreme Razorpay

Supreme Razorpay - UPI, Cards, EMI and Pay Later for India

$20
Supreme Razorpay — overview

Detailed description

Supreme Razorpay adds Razorpay as a payment method in your OpenCart checkout. The shopper chooses Razorpay, pays in the Razorpay pop-up on your own page and your order is confirmed only when the payment has been verified by your server. A shopper cannot mark an order as paid from the browser.

New in 1.1

  • Pay Later and EMI line on product pages (optional): under the product name it shows "Pay Later and EMI available at checkout with Razorpay.", or, if you choose a split of 2, 3, 4, 6, 9 or 12, "Or 3 payments of Rs 1,000 with Pay Later or EMI at checkout." The amount is the product's price on the page (with tax and special price) divided by the split, in the shop's currency.
  • The line only appears where Razorpay can actually be used: Razorpay switched on, the price within your minimum and maximum order total, and for INR only when you offer Razorpay only for INR orders.
  • Maximum order total: Razorpay is not offered at checkout for orders above it (0 = no maximum).
  • The descriptions of the payment methods on the settings page and the product page line come from the language files, so they can be translated.
  • Upgrading from 1.0 keeps your keys and settings; the product page hook is added the first time you open the settings page.

What your customer sees

  • Razorpay offered on the payment step, under a name you choose.
  • The Razorpay pop-up with UPI (GPay, PhonePe, Paytm, BHIM), cards, netbanking, wallets, EMI and Pay Later (Simpl, LazyPay, ICICI PayLater and more, as enabled on your Razorpay account). You can switch each method on or off.
  • The pop-up accent colour matches your store (you choose it).
  • A clear success page when the payment goes through, and a clear failure page when it does not.

How payments are protected

  • The payment signature is checked on the server.
  • The payment is then fetched from Razorpay and its order, amount and currency are compared with your order before the order is confirmed.
  • A failed or altered payment leaves the order unpaid.
  • Your Key secret and Webhook secret are never shown again after saving. Leave a field blank to keep the saved value.

Webhooks

  • The settings page shows a Webhook URL with a Copy button.
  • Supported events: payment.captured, payment.failed and order.paid.
  • Orders are confirmed even if the shopper closes the browser after paying.
  • Repeated notifications are ignored, so an order is never confirmed twice.
  • Optional automatic capture of authorised payments.

What you control in the admin

  • One status switch to offer Razorpay at checkout or not.
  • Key ID and Key secret, with a Test keys button that checks them for you.
  • Webhook secret and the copy-ready Webhook URL.
  • Payment methods in the pop-up: UPI, cards, netbanking, wallets, EMI and Pay Later.
  • Offer only for INR orders (the default).
  • Minimum and maximum order total, geo zone and sort order.
  • The Pay Later / EMI line on product pages and its split.
  • Order status after payment.
  • Name shown at checkout and accent colour.

Payment log

  • A log table keeps the Razorpay order id, the payment id and the status for reconciliation.
  • The log is kept even after you uninstall the module.

Built for safety

  • Does not change any core OpenCart file. It works through the normal extension system and one product page event, so updates and other extensions are not affected.
  • Works with standard OpenCart checkouts.

Compatibility

OpenCart 2.3.x, 3.0.x, 4.0.x and 4.1.x. A separate, ready-to-install package is included for each version. Tested on 2.3.0.2, 3.0.5.1, 4.0.2.3 and 4.1.0.4, including install, order creation, successful and failed payments, webhook handling, the maximum order total, the product page line (off, plain, split, hidden outside the limits, for another currency and when Razorpay is off), uninstall and reinstall. Tests used a simulated Razorpay server; please test with your own Razorpay test keys before going live.

Installation

1. Go to Extensions > Installer and upload the package that matches your OpenCart version.

2. Go to Extensions > Extensions, choose Payments, find Supreme Razorpay and click Install, then Edit.

3. Paste your Key ID and Key secret (Razorpay Dashboard > Account and Settings > API Keys), press Test keys, switch it on and save.

4. Add the Webhook URL shown on the page under Razorpay Dashboard > Settings > Webhooks (events: payment.captured, payment.failed, order.paid) and paste the webhook secret you chose.

OpenCart 2.3 note: the 2.3 installer copies files over FTP, so enter your FTP details in Settings first, or upload the contents of the upload folder to your store root.

Updating from 1.0: on OpenCart 2.3 and 3.0 upload the new package over the old one; on 4.0 and 4.1 copy the files of the new package over the old ones (uninstalling would remove your settings). Then open the settings page once.

Faq

Q: Does it support refunds?

A: Refunds are made from the Razorpay Dashboard.

Q: Can I use it outside India?

A: By default the module is offered only for INR orders; you can switch that off.

Q: Is the product page line a promise of a specific EMI plan?

A: No. It is the price divided by the split you choose. Which Pay Later and EMI options the shopper sees, and their terms, are decided by Razorpay and the lender at checkout. Choose a split that your Razorpay account offers.

Q: Is it multilingual?

A: The name shown at checkout is entered once in the admin. The product page line and the settings page texts come from the language files and can be translated.

Support

Questions or problems? Send a message through the extension page and we will help you get it working.

Version 1.1

Pay Later / EMI line on product pages, maximum order total, translatable method texts.

Screenshots

Supreme Razorpay — Storefront checkout razorpay
Storefront checkout razorpay
Supreme Razorpay — Storefront pay later line
Storefront pay later line
Supreme Razorpay — Admin settings part 1
Admin settings part 1

More modules

You May Also Need.

Supreme Price Rounding and Price Floor Rules

Make every price look the way you want it to, and make sure no sale or discount price ever falls below a floor. Rules round prices to .99, .00, .50 or any step such as 0.05 by category, you preview exactly what would change, apply it with one click and undo it later. No core files are changed: the new prices are written to the normal price fields, so every page, the cart and the order show the same price.

Supreme Multi-Store Prices

Run more than one store from one OpenCart? Give the same product a different price and special in each store, and choose which products each store shows, in one grid. The module uses OpenCart's own customer group prices, so the product page, category lists, cart, checkout, order totals and every other extension show and charge the store's price. No core files changed, no extra tables.

See all OpenCart modules