Razorpay for WooCommerce - Version 2.3.2

Version Description

  • Added RAZORPAY ORDER ID in order notes.
  • Tested upto WordPress 5.2.4 and WooCommerce 3.7.1
Download this release

Release Info

Developer ramprak
Plugin Icon 128x128 Razorpay for WooCommerce
Version 2.3.2
Comparing to
See all releases

Code changes from version 2.3.1 to 2.3.2

Files changed (2) hide show
  1. readme.txt +5 -1
  2. woo-razorpay.php +7 -2
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: razorpay
3
  Tags: razorpay, payments, india, woocommerce, ecommerce
4
  Requires at least: 3.9.2
5
  Tested up to: 5.2.4
6
- Stable tag: 2.3.1
7
  Requires PHP: 5.6
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
@@ -41,6 +41,10 @@ This is compatible with WooCommerce>=2.4, including the new 3.0 release. It has
41
 
42
  == Changelog ==
43
 
 
 
 
 
44
  = 2.3.1 =
45
  * Bug fix for hosted checkout.
46
  * Tested upto WordPress 5.2.4 and WooCommerce 3.7.1
3
  Tags: razorpay, payments, india, woocommerce, ecommerce
4
  Requires at least: 3.9.2
5
  Tested up to: 5.2.4
6
+ Stable tag: 2.3.2
7
  Requires PHP: 5.6
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
41
 
42
  == Changelog ==
43
 
44
+ = 2.3.2 =
45
+ * Added RAZORPAY ORDER ID in order notes.
46
+ * Tested upto WordPress 5.2.4 and WooCommerce 3.7.1
47
+
48
  = 2.3.1 =
49
  * Bug fix for hosted checkout.
50
  * Tested upto WordPress 5.2.4 and WooCommerce 3.7.1
woo-razorpay.php CHANGED
@@ -3,8 +3,8 @@
3
  * Plugin Name: Razorpay for WooCommerce
4
  * Plugin URI: https://razorpay.com
5
  * Description: Razorpay Payment Gateway Integration for WooCommerce
6
- * Version: 2.3.1
7
- * Stable tag: 2.3.1
8
  * Author: Team Razorpay
9
  * WC tested up to: 3.7.1
10
  * Author URI: https://razorpay.com
@@ -506,6 +506,11 @@ function woocommerce_razorpay_init()
506
 
507
  $woocommerce->session->set($sessionKey, $razorpayOrderId);
508
 
 
 
 
 
 
509
  return $razorpayOrderId;
510
  }
511
 
3
  * Plugin Name: Razorpay for WooCommerce
4
  * Plugin URI: https://razorpay.com
5
  * Description: Razorpay Payment Gateway Integration for WooCommerce
6
+ * Version: 2.3.2
7
+ * Stable tag: 2.3.2
8
  * Author: Team Razorpay
9
  * WC tested up to: 3.7.1
10
  * Author URI: https://razorpay.com
506
 
507
  $woocommerce->session->set($sessionKey, $razorpayOrderId);
508
 
509
+ //update it in order comments
510
+ $order = new WC_Order($orderId);
511
+
512
+ $order->add_order_note("Razorpay OrderId: $razorpayOrderId");
513
+
514
  return $razorpayOrderId;
515
  }
516