Version Description
- Bug fix for session storage.
Download this release
Release Info
Developer | razorpay |
Plugin | Razorpay for WooCommerce |
Version | 2.8.5 |
Comparing to | |
See all releases |
Code changes from version 2.8.4 to 2.8.5
- readme.txt +4 -1
- woo-razorpay.php +17 -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.8.2
|
6 |
-
Stable tag: 2.8.
|
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 |
= 2.8.4 =
|
45 |
* Bug fix for guest checkout thank you message in order summary page.
|
46 |
|
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 |
|
42 |
== Changelog ==
|
43 |
|
44 |
+
= 2.8.5 =
|
45 |
+
* Bug fix for session storage.
|
46 |
+
|
47 |
= 2.8.4 =
|
48 |
* Bug fix for guest checkout thank you message in order summary page.
|
49 |
|
woo-razorpay.php
CHANGED
@@ -3,10 +3,10 @@
|
|
3 |
* Plugin Name: Razorpay for WooCommerce
|
4 |
* Plugin URI: https://razorpay.com
|
5 |
* Description: Razorpay Payment Gateway Integration for WooCommerce
|
6 |
-
* Version: 2.8.
|
7 |
-
* Stable tag: 2.8.
|
8 |
* Author: Team Razorpay
|
9 |
-
* WC tested up to:
|
10 |
* Author URI: https://razorpay.com
|
11 |
*/
|
12 |
|
@@ -685,6 +685,8 @@ function woocommerce_razorpay_init()
|
|
685 |
|
686 |
set_transient($sessionKey, $razorpayOrderId, 3600);
|
687 |
|
|
|
|
|
688 |
//update it in order comments
|
689 |
$order = wc_get_order($orderId);
|
690 |
|
@@ -1063,7 +1065,18 @@ EOT;
|
|
1063 |
);
|
1064 |
|
1065 |
$sessionKey = $this->getOrderSessionKey($orderId);
|
1066 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1067 |
|
1068 |
$api->utility->verifyPaymentSignature($attributes);
|
1069 |
}
|
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
|
11 |
*/
|
12 |
|
685 |
|
686 |
set_transient($sessionKey, $razorpayOrderId, 3600);
|
687 |
|
688 |
+
$woocommerce->session->set($sessionKey, $razorpayOrderId);
|
689 |
+
|
690 |
//update it in order comments
|
691 |
$order = wc_get_order($orderId);
|
692 |
|
1065 |
);
|
1066 |
|
1067 |
$sessionKey = $this->getOrderSessionKey($orderId);
|
1068 |
+
|
1069 |
+
//Check the transient data for razorpay order id, if it's not available then look into session data.
|
1070 |
+
if(get_transient($sessionKey))
|
1071 |
+
{
|
1072 |
+
$razorpayOrderId = get_transient($sessionKey);
|
1073 |
+
}
|
1074 |
+
else
|
1075 |
+
{
|
1076 |
+
$razorpayOrderId = $woocommerce->session->get($sessionKey);
|
1077 |
+
}
|
1078 |
+
|
1079 |
+
$attributes[self::RAZORPAY_ORDER_ID] = $razorpayOrderId?? '';
|
1080 |
|
1081 |
$api->utility->verifyPaymentSignature($attributes);
|
1082 |
}
|