Accept payments in your NamelessMC Store through Razorpay. This is a drop-in gateway for the official Store module. Copy one folder, enter your keys, and Razorpay shows up as a payment method at checkout.
Features
- Uses the Razorpay Payment Links API. The customer is redirected to a secure Razorpay-hosted payment page.
- Payment methods shown to the customer depend on what is enabled on your Razorpay account.
- Webhook support (
payment_link.paid and refund.processed) with HMAC-SHA256 signature verification on the raw request body.
- Return-URL signature verification, and every payment link is re-checked against the Razorpay API before an order is completed.
- Refunds processed in Razorpay are marked as refunded in the Store.
- Duplicate-safe: if the return page and the webhook both arrive, the order is only completed once.
- Unique reference ID per order, and payment links expire after 1 hour.
- Settings page in the Store admin panel (Key ID, Key Secret, Webhook Secret, enable/disable). Secrets are hidden after saving.
- No Composer dependencies. Uses PHP cURL only.
Requirements
- NamelessMC with the Store module 2.2.0 or newer (developed against the Store 2.2.0 source)
- PHP with the cURL extension
- A Razorpay account with API keys (test keys work in Test Mode)
- Designed for INR (Razorpay's primary currency)
Installation
- Upload the
Razorpay folder to modules/Store/gateways/.
- Go to Admin Panel > Store > Gateways > Razorpay, enter your Key ID, Key Secret and Webhook Secret, and enable it.
- In the Razorpay Dashboard, add a webhook pointing to the URL shown on the gateway settings page, with the events
payment_link.paid and refund.processed.
- If your products use "Allowed gateways", add Razorpay there.
Notes
- One-time payments only. Subscriptions are not supported.
- Razorpay approves merchant accounts at its own discretion and restricts some business categories. Please check Razorpay's policies for your business before buying. This add-on does not change Razorpay's account approval rules.
- Use
rzp_test_ keys with a Test Mode webhook while testing, and rzp_live_ keys with a Live Mode webhook for real payments.
Support
Please include your Store module version and the Store gateway logs when reporting a problem.