Razorpay for WooCommerce - Version 3.1.1

Version Description

  • Updated the preferences API call to 1cc_preferences call.
Download this release

Release Info

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

Code changes from version 3.1.0 to 3.1.1

Files changed (2) hide show
  1. readme.txt +4 -1
  2. woo-razorpay.php +4 -4
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.9
6
- Stable tag: 3.1.0
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,9 @@ This is compatible with WooCommerce>=2.4, including the new 3.0 release. It has
41
 
42
  == Changelog ==
43
 
 
 
 
44
  = 3.1.0 =
45
  * Support for Smart COD plugin in magic checkout.
46
  * Payment title update for magic checkout COD orders.
3
  Tags: razorpay, payments, india, woocommerce, ecommerce
4
  Requires at least: 3.9.2
5
  Tested up to: 5.9
6
+ Stable tag: 3.1.1
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
+ = 3.1.1 =
45
+ * Updated the preferences API call to 1cc_preferences call.
46
+
47
  = 3.1.0 =
48
  * Support for Smart COD plugin in magic checkout.
49
  * Payment title update for magic checkout COD orders.
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: 3.1.0
7
- * Stable tag: 3.1.0
8
  * Author: Team Razorpay
9
  * WC tested up to: 6.2.1
10
  * Author URI: https://razorpay.com
@@ -150,8 +150,8 @@ function woocommerce_razorpay_init()
150
  $is1ccAvailable = false;
151
 
152
  try {
153
- $api = new Api($this->getSetting('key_id'), '');
154
- $merchantPreferences = $api->request->request('GET', 'preferences');
155
 
156
  if (!empty($merchantPreferences['features']['one_click_checkout'])) {
157
  $is1ccAvailable = true;
3
  * Plugin Name: Razorpay for WooCommerce
4
  * Plugin URI: https://razorpay.com
5
  * Description: Razorpay Payment Gateway Integration for WooCommerce
6
+ * Version: 3.1.1
7
+ * Stable tag: 3.1.1
8
  * Author: Team Razorpay
9
  * WC tested up to: 6.2.1
10
  * Author URI: https://razorpay.com
150
  $is1ccAvailable = false;
151
 
152
  try {
153
+ $api = $this->getRazorpayApiInstance();
154
+ $merchantPreferences = $api->request->request('GET', 'merchant/1cc_preferences');
155
 
156
  if (!empty($merchantPreferences['features']['one_click_checkout'])) {
157
  $is1ccAvailable = true;