Razorpay for WooCommerce - Version 2.8.6

Version Description

  • Bug fix for not reflecting an updated order success message.
  • Tested upto Wordpress 5.9
Download this release

Release Info

Developer razorpay
Plugin Icon 128x128 Razorpay for WooCommerce
Version 2.8.6
Comparing to
See all releases

Code changes from version 2.8.5 to 2.8.6

Files changed (2) hide show
  1. readme.txt +6 -2
  2. woo-razorpay.php +5 -5
readme.txt CHANGED
@@ -2,8 +2,8 @@
2
  Contributors: razorpay
3
  Tags: razorpay, payments, india, woocommerce, ecommerce
4
  Requires at least: 3.9.2
5
- Tested up to: 5.8.2
6
- Stable tag: 2.8.5
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.8.5 =
45
  * Bug fix for session storage.
46
 
2
  Contributors: razorpay
3
  Tags: razorpay, payments, india, woocommerce, ecommerce
4
  Requires at least: 3.9.2
5
+ Tested up to: 5.9
6
+ Stable tag: 2.8.6
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.8.6 =
45
+ * Bug fix for not reflecting an updated order success message.
46
+ * Tested upto Wordpress 5.9
47
+
48
  = 2.8.5 =
49
  * Bug fix for session storage.
50
 
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.8.5
7
- * Stable tag: 2.8.5
8
  * Author: Team Razorpay
9
  * WC tested up to: 6.2.0
10
  * Author URI: https://razorpay.com
@@ -124,12 +124,12 @@ function woocommerce_razorpay_init()
124
  return $this->get_option($key);
125
  }
126
 
127
- protected function getCustomOrdercreationMessage()
128
  {
129
  $message = $this->getSetting('order_success_message');
130
  if (isset($message) === false)
131
  {
132
- $message = STATIC::DEFAULT_SUCCESS_MESSAGE;
133
  }
134
  return $message;
135
  }
@@ -177,7 +177,7 @@ function woocommerce_razorpay_init()
177
  add_action( "woocommerce_update_options_payment_gateways", array($this, 'autoEnableWebhook'));
178
  }
179
 
180
- add_filter( 'woocommerce_thankyou_order_received_text', array($this, 'rzpThankYouMessage'), 20, 2 );
181
  }
182
 
183
  public function init_form_fields()
3
  * Plugin Name: Razorpay for WooCommerce
4
  * Plugin URI: https://razorpay.com
5
  * Description: Razorpay Payment Gateway Integration for WooCommerce
6
+ * Version: 2.8.6
7
+ * Stable tag: 2.8.6
8
  * Author: Team Razorpay
9
  * WC tested up to: 6.2.0
10
  * Author URI: https://razorpay.com
124
  return $this->get_option($key);
125
  }
126
 
127
+ public function getCustomOrdercreationMessage($thank_you_title, $order)
128
  {
129
  $message = $this->getSetting('order_success_message');
130
  if (isset($message) === false)
131
  {
132
+ $message = static::DEFAULT_SUCCESS_MESSAGE;
133
  }
134
  return $message;
135
  }
177
  add_action( "woocommerce_update_options_payment_gateways", array($this, 'autoEnableWebhook'));
178
  }
179
 
180
+ add_filter( 'woocommerce_thankyou_order_received_text', array($this, 'getCustomOrdercreationMessage'), 20, 2 );
181
  }
182
 
183
  public function init_form_fields()