Version Description
- Bug fix for guest checkout thank you message in order summary page.
Download this release
Release Info
Developer | razorpay |
Plugin | Razorpay for WooCommerce |
Version | 2.8.4 |
Comparing to | |
See all releases |
Code changes from version 2.8.3 to 2.8.4
- readme.txt +4 -1
- woo-razorpay.php +9 -5
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.3 =
|
45 |
* Updated Route module settings and added a note for creating reverse transfer.
|
46 |
* Tested up to Woocommerce 5.9.0
|
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.4
|
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.4 =
|
45 |
+
* Bug fix for guest checkout thank you message in order summary page.
|
46 |
+
|
47 |
= 2.8.3 =
|
48 |
* Updated Route module settings and added a note for creating reverse transfer.
|
49 |
* Tested up to Woocommerce 5.9.0
|
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.
|
7 |
-
* Stable tag: 2.8.
|
8 |
* Author: Team Razorpay
|
9 |
* WC tested up to: 5.9.0
|
10 |
* Author URI: https://razorpay.com
|
@@ -176,6 +176,8 @@ function woocommerce_razorpay_init()
|
|
176 |
add_action('woocommerce_update_options_payment_gateways', $cb);
|
177 |
add_action( "woocommerce_update_options_payment_gateways", array($this, 'autoEnableWebhook'));
|
178 |
}
|
|
|
|
|
179 |
}
|
180 |
|
181 |
public function init_form_fields()
|
@@ -1066,6 +1068,11 @@ EOT;
|
|
1066 |
$api->utility->verifyPaymentSignature($attributes);
|
1067 |
}
|
1068 |
|
|
|
|
|
|
|
|
|
|
|
1069 |
protected function getErrorMessage($orderId)
|
1070 |
{
|
1071 |
// We don't have a proper order id
|
@@ -1109,9 +1116,6 @@ EOT;
|
|
1109 |
|
1110 |
if (($success === true) and ($order->needs_payment() === true))
|
1111 |
{
|
1112 |
-
$this->msg['message'] = $this->getCustomOrdercreationMessage() . " Order Id: $orderId";
|
1113 |
-
$this->msg['class'] = 'success';
|
1114 |
-
|
1115 |
$order->payment_complete($razorpayPaymentId);
|
1116 |
$order->add_order_note("Razorpay payment successful <br/>Razorpay Id: $razorpayPaymentId");
|
1117 |
|
3 |
* Plugin Name: Razorpay for WooCommerce
|
4 |
* Plugin URI: https://razorpay.com
|
5 |
* Description: Razorpay Payment Gateway Integration for WooCommerce
|
6 |
+
* Version: 2.8.4
|
7 |
+
* Stable tag: 2.8.4
|
8 |
* Author: Team Razorpay
|
9 |
* WC tested up to: 5.9.0
|
10 |
* Author URI: https://razorpay.com
|
176 |
add_action('woocommerce_update_options_payment_gateways', $cb);
|
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()
|
1068 |
$api->utility->verifyPaymentSignature($attributes);
|
1069 |
}
|
1070 |
|
1071 |
+
public function rzpThankYouMessage( $thank_you_title, $order )
|
1072 |
+
{
|
1073 |
+
return self::DEFAULT_SUCCESS_MESSAGE;
|
1074 |
+
}
|
1075 |
+
|
1076 |
protected function getErrorMessage($orderId)
|
1077 |
{
|
1078 |
// We don't have a proper order id
|
1116 |
|
1117 |
if (($success === true) and ($order->needs_payment() === true))
|
1118 |
{
|
|
|
|
|
|
|
1119 |
$order->payment_complete($razorpayPaymentId);
|
1120 |
$order->add_order_note("Razorpay payment successful <br/>Razorpay Id: $razorpayPaymentId");
|
1121 |
|