Razorpay for WooCommerce - Version 1.3.2

Version Description

Download this release

Release Info

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

Code changes from version 1.3.1 to 1.3.2

Files changed (2) hide show
  1. razorpay-payments.php +9 -2
  2. readme.txt +10 -2
razorpay-payments.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: WooCommerce Razorpay Payments
4
  Plugin URI: https://razorpay.com
5
  Description: Razorpay Payment Gateway Integration for WooCommerce
6
- Version: 1.3.1
7
  Author: Razorpay
8
  Author URI: https://razorpay.com
9
  */
@@ -348,7 +348,14 @@ EOT;
348
  global $woocommerce;
349
  $order = new WC_Order($order_id);
350
  $woocommerce->session->set(self::SESSION_KEY, $order_id);
351
- if (version_compare(WOOCOMMERCE_VERSION, '2.0.0', '>='))
 
 
 
 
 
 
 
352
  {
353
  return array(
354
  'result' => 'success',
3
  Plugin Name: WooCommerce Razorpay Payments
4
  Plugin URI: https://razorpay.com
5
  Description: Razorpay Payment Gateway Integration for WooCommerce
6
+ Version: 1.3.2
7
  Author: Razorpay
8
  Author URI: https://razorpay.com
9
  */
348
  global $woocommerce;
349
  $order = new WC_Order($order_id);
350
  $woocommerce->session->set(self::SESSION_KEY, $order_id);
351
+ if (version_compare(WOOCOMMERCE_VERSION, '2.1', '>='))
352
+ {
353
+ return array(
354
+ 'result' => 'success',
355
+ 'redirect' => add_query_arg('key', $order->order_key, $order->get_checkout_payment_url(true))
356
+ );
357
+ }
358
+ else if (version_compare(WOOCOMMERCE_VERSION, '2.0.0', '>='))
359
  {
360
  return array(
361
  'result' => 'success',
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: 4.7
6
- Stable tag: 1.3.1
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
@@ -17,7 +17,15 @@ This is compatible with both 2.4 and 2.5 series of WooCommerce.
17
 
18
  == Installation ==
19
 
20
- Install the plugin from the [Wordpress Plugin Directory](https://wordpress.org/plugins/woo-razorpay/).
 
 
 
 
 
 
 
 
21
 
22
  == Configuration ==
23
 
3
  Tags: razorpay, payments, india, woocommerce, ecommerce
4
  Requires at least: 3.9.2
5
  Tested up to: 4.7
6
+ Stable tag: 1.3.2
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
17
 
18
  == Installation ==
19
 
20
+ 1. Install the plugin from the [Wordpress Plugin Directory](https://wordpress.org/plugins/woo-razorpay/).
21
+ 2. To use this plugin correctly, you need to be able to make network requests. Please make sure that you have the php-curl extension installed.
22
+
23
+ == Dependencies ==
24
+
25
+ 1. Wordpress v3.9.2 and later
26
+ 2. Woocommerce v2.4 and later
27
+ 3. PHP v5.6.0 and later
28
+ 4. php-curl
29
 
30
  == Configuration ==
31