Razorpay Payment Links for WooCommerce source code
By KnitPay, on WordPress.org since 2020. 900+ active installs.
Razorpay Payment Links for WooCommerce This is the Razorpay Payment Gateway plugin for WooCommerce based on Razorpay Payment Links. Below is its source code for every one of its 35 releases, what changed in the latest one, and how often it ships.
What changed in 2.4.0
Released Nov 2, 2026, 1 week after 2.3.1- Fix: Stale payment links are now invalidated when an unpaid order’s amount changes, and the payment link amount is verified when a payment is received – payments made through an outdated link are not processed automatically and are left for manual review.
- Improvement: Increased the API request timeout and added automatic access-token refresh with retry on authentication failures, for better compatibility with slow servers.
- Improvement: The Razorpay webhook is now also subscribed to the “payment_link.paid” event, to support payment verification improvements in upcoming releases.
- Improvement: The webhook secret is generated automatically when the secret field is left empty.
- Improvement: The Legacy API option is now shown only to existing installations that already use it; new installations use the Standard API.
10 files changed since 2.3.1: 10 modified, 0 added, 0 removed.
- includes/blocks/assets/blocks.asset.php modified, same size
- includes/blocks/assets/blocks.js modified, +686 bytes
- includes/blocks/index.php modified, +1 bytes
- includes/class-affordability-widget.php modified, +214 bytes
- includes/class-payment.php modified, +11,656 bytes
- includes/images/index.php modified, +1 bytes
- includes/index.php modified, +1 bytes
- languages/index.php modified, +1 bytes
- readme.txt modified, +1,762 bytes
- rzp-woocommerce.php modified, +253 bytes
Release history
35 releases since January 2020- 2.4.0 Nov 2, 2026 Fix: Stale payment links are now invalidated when an unpaid order’s amount changes, and the payment link amount is verified when a payment is received – payments made through an outdated link are not processed automatically and are left for manual review.
- 2.3.1 Oct 23, 2026 NEW: The Affordability Widget settings page and verification notice explain that the widget does not work with Test Mode; Razorpay provides no EMI/Pay Later/Offer data for test accounts.
- 2.3.0 Oct 22, 2026 NEW: Added Razorpay Affordability Widget feature on product pages with Offers, Card EMI, Cardless EMI and Pay Later options. The widget verifies feature availability on your Razorpay account and works with both OAuth and API key connections.
- 2.2.0 Sep 28, 2026 Security hardening in the OAuth connect flow.
- 2.1.5 Jun 18, 2026 Security: Hardened payment verification and order processing.