Meet Solenne
The new B2C distribution for Sylius
Explore demo
No reviews yet

Razorpay Payment Gateway (UPI, Cards, Netbanking, Wallets)

Product Razorpay Payment Gateway (UPI, Cards, Netbanking, Wallets) Image

Razorpay Standard Checkout for Sylius 2: UPI, cards, netbanking, wallets, EMI and pay later, with signed webhooks, automatic reconciliation and refunds via Sylius RefundPlugin. Built on the Sylius 2 Payment Request API, no Payum.

Published
17.11.2026
Latest version
v1.0.0-rc.1
Last update
17.11.2026
Sylius version
2.1 - 2.3
Downloads
< 1K

Accept payments in India with Razorpay Standard Checkout in your Sylius 2 shop. Built natively on the Sylius 2 Payment Request API (no Payum).

Features

  • All Razorpay payment options: UPI, cards, netbanking, wallets, EMI and pay later; choose which options customers see per payment method.
  • Native Sylius 2 flow: standard pay / after-pay pages, thank-you page and flash messages.
  • Payments confirmed server-side: the checkout signature is verified and the payment is read back from the Razorpay API; the order is paid only when amount, currency and order match.
  • No duplicate orders, no lost payments: every Razorpay order is journaled with a unique receipt before it is created, so timeouts and crashes are reconciled.
  • Signed webhooks (payment.authorized, payment.captured, order.paid, refund.*) per payment method, with secret rotation and idempotent processing.
  • Automatic capture of authorized payments for accounts set to manual capture.
  • Refunds through Sylius RefundPlugin: refunds are sent to Razorpay once the credit memo is saved.
  • Staff review for duplicate payments, amount mismatches or payments after cancellation, never auto-marked as paid.
  • Reconcile command for cron, to finish payments when the customer closed the browser and the webhook was missed.
  • Encrypted secrets: Key Secret and webhook secret use Sylius gateway-config encryption and are never shown back in the admin.
  • Payment details on each payment: Razorpay ids, method, UPI VPA / bank / wallet / card network and last 4, fee and tax.

Requirements

  • PHP 8.2+
  • Sylius 2.1 or newer (tested on 2.3.2)
  • MySQL / MariaDB (migration included)
  • Optional: sylius/refund-plugin for refunds

Installation

1. Require the plugin

composer require buildwebproject/sylius-razorpay-plugin:^1.0@beta

2. Register the bundle in config/bundles.php:

BuildWebProject\SyliusRazorpayPlugin\BuildWebProjectSyliusRazorpayPlugin::class => ['all' => true],

3. Create config/packages/buildwebproject_sylius_razorpay.yaml:

imports:
    - { resource: "@BuildWebProjectSyliusRazorpayPlugin/config/config.yaml" }

buildwebproject_sylius_razorpay: ~

4. Create config/routes/buildwebproject_sylius_razorpay.yaml:

buildwebproject_sylius_razorpay:
    resource: "@BuildWebProjectSyliusRazorpayPlugin/config/routes/shop.yaml"

5. Run the migration, install assets and clear the cache:

bin/console doctrine:migrations:migrate -n
bin/console assets:install
bin/console cache:clear

6. Add the reconcile command to cron (every 10 minutes):

*/10 * * * * cd /path/to/shop && php bin/console buildwebproject:razorpay:reconcile --env=prod >/dev/null 2>&1

Setup in the admin

  1. Go to Admin → Configuration → Payment methods → Create → Razorpay.
  2. Choose Test mode and paste the Key ID (rzp_test_…) and Key Secret from Razorpay Dashboard → Account & Settings → API Keys.
  3. Type a random webhook secret (16+ characters) and choose the payment options to show.
  4. Save. The form shows the webhook URL for this method: https://your-shop/payment/razorpay/webhook/<payment method code>
  5. In Razorpay Dashboard → Account & Settings → Webhooks → Add new webhook, paste that URL and the same secret, and tick payment.authorized, payment.captured, order.paid, refund.processed, refund.failed.
  6. Place a test order. When everything works, create a second method in Live mode with your live keys.

Currency: Razorpay charges in the payment's currency. Indian accounts accept INR by default; other currencies need international payments enabled on your Razorpay account.

Full documentation is in the README on GitHub.

Open source, MIT licensed. Developed by BuildWebProject.

Reviews

No reviews yet

No reviews yet. Be the first to review this product!

Loading
  • MIT license
  • Free updates
  • Community support

Have already account? Sign in
See how it works
Compatibility & requirements
  • Compatible with Sylius 2.1 and higher
  • PHP 8.2 or newer
  • MySQL / MariaDB (migration included)
  • Razorpay account (test or live API keys)
  • Optional: sylius/refund-plugin for refunds

No reviews yet
2 plugins
Since 16.11.2026

BuildWebProject is a Sylius e-commerce studio from Unjha, Gujarat, India. We build complete Sylius 2 stores you actually own, migrate shops from Shopify and WooCommerce, and develop production-tested Sylius plugins for the Indian market: Razorpay payments (UPI, cards, netbanking, wallets), admin two-factor authentication, smart cash-on-delivery with AI voice confirmation, Delhivery/Shiprocket shipping, WhatsApp Commerce with an AI assistant, GST invoicing, Zoho Books sync, POS and Meilisearch search. Our plugins run in production on Unjha Masala Mart (https://unjhamasalamart.com), a Sylius 2.3 / Symfony 7.4 store selling across India. Need a custom Sylius plugin or store? Contact us at https://buildwebproject.com

Read more
Sylius Addons Marketplace

Discover plugins, themes, and resources from trusted vendors, helping you get the most out of your work.

© 2026 Sylius. All rights reserved.

Powered by Stripe