Version Description
- Fixed bug for rzorpay orderID validation.
- Adds support for razorpay Analytics
- Tested upto WordPress 5.2.2 and WooCommerce 3.6.5
Download this release
Release Info
Developer | ramprak |
Plugin | Razorpay for WooCommerce |
Version | 2.1.0 |
Comparing to | |
See all releases |
Code changes from version 2.0.0 to 2.1.0
- readme.txt +9 -3
- woo-razorpay.php +11 -6
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.2
|
6 |
-
Stable tag: 2.
|
7 |
Requires PHP: 5.6
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
@@ -41,11 +41,17 @@ This is compatible with WooCommerce>=2.4, including the new 3.0 release. It has
|
|
41 |
|
42 |
== Changelog ==
|
43 |
|
|
|
|
|
|
|
|
|
|
|
44 |
= 2.0.0 =
|
45 |
* Removes support for WooCommerce Currency Convertor
|
46 |
* Switches to Razorpay's Native Multi-Currency support
|
47 |
* Adds support for [Price Based on Country Plugin](https://www.pricebasedcountry.com/)
|
48 |
* Tested upto WordPress 5.2-RC1 and WooCommerce 3.6.2
|
|
|
49 |
|
50 |
= 1.6.3 =
|
51 |
* Allows for null values in displayAmount
|
@@ -147,7 +153,7 @@ version higher than 2.0.0, which comes with native multi-currency support.
|
|
147 |
|
148 |
== Support ==
|
149 |
|
150 |
-
Visit [razorpay.com](https://razorpay.com) for support requests
|
151 |
|
152 |
== License ==
|
153 |
|
2 |
Contributors: razorpay
|
3 |
Tags: razorpay, payments, india, woocommerce, ecommerce
|
4 |
Requires at least: 3.9.2
|
5 |
+
Tested up to: 5.2.2
|
6 |
+
Stable tag: 2.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 |
|
42 |
== Changelog ==
|
43 |
|
44 |
+
= 2.1.0 =
|
45 |
+
* Fixed bug for rzorpay orderID validation.
|
46 |
+
* Adds support for razorpay Analytics
|
47 |
+
* Tested upto WordPress 5.2.2 and WooCommerce 3.6.5
|
48 |
+
|
49 |
= 2.0.0 =
|
50 |
* Removes support for WooCommerce Currency Convertor
|
51 |
* Switches to Razorpay's Native Multi-Currency support
|
52 |
* Adds support for [Price Based on Country Plugin](https://www.pricebasedcountry.com/)
|
53 |
* Tested upto WordPress 5.2-RC1 and WooCommerce 3.6.2
|
54 |
+
* Release uploaded as 2.0.1 on the Wordpress Plugin Directory.
|
55 |
|
56 |
= 1.6.3 =
|
57 |
* Allows for null values in displayAmount
|
153 |
|
154 |
== Support ==
|
155 |
|
156 |
+
Visit [razorpay.com](https://razorpay.com/support/#request/merchant/technical-assistance) for support requests.
|
157 |
|
158 |
== License ==
|
159 |
|
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.
|
7 |
-
* Stable tag: 2.
|
8 |
* Author: Team Razorpay
|
9 |
-
* WC tested up to: 3.6.
|
10 |
* Author URI: https://razorpay.com
|
11 |
*/
|
12 |
|
@@ -17,6 +17,7 @@ if ( ! defined( 'ABSPATH' ) )
|
|
17 |
|
18 |
require_once __DIR__.'/includes/razorpay-webhook.php';
|
19 |
require_once __DIR__.'/razorpay-sdk/Razorpay.php';
|
|
|
20 |
|
21 |
use Razorpay\Api\Api;
|
22 |
use Razorpay\Api\Errors;
|
@@ -410,6 +411,7 @@ function woocommerce_razorpay_init()
|
|
410 |
$orderId = $order->get_order_number();
|
411 |
|
412 |
$productinfo = "Order $orderId";
|
|
|
413 |
|
414 |
return array(
|
415 |
'key' => $this->getSetting('key_id'),
|
@@ -421,6 +423,11 @@ function woocommerce_razorpay_init()
|
|
421 |
),
|
422 |
'callback_url' => $callbackUrl,
|
423 |
'prefill' => $this->getCustomerInfo($order),
|
|
|
|
|
|
|
|
|
|
|
424 |
);
|
425 |
}
|
426 |
|
@@ -491,9 +498,7 @@ function woocommerce_razorpay_init()
|
|
491 |
}
|
492 |
catch (Exception $e)
|
493 |
{
|
494 |
-
|
495 |
-
|
496 |
-
return 'RAZORPAY ERROR: Order creation failed with the message \'' . $message . '\'';
|
497 |
}
|
498 |
|
499 |
$razorpayOrderId = $razorpayOrder['id'];
|
3 |
* Plugin Name: Razorpay for WooCommerce
|
4 |
* Plugin URI: https://razorpay.com
|
5 |
* Description: Razorpay Payment Gateway Integration for WooCommerce
|
6 |
+
* Version: 2.1.0
|
7 |
+
* Stable tag: 2.1.0
|
8 |
* Author: Team Razorpay
|
9 |
+
* WC tested up to: 3.6.5
|
10 |
* Author URI: https://razorpay.com
|
11 |
*/
|
12 |
|
17 |
|
18 |
require_once __DIR__.'/includes/razorpay-webhook.php';
|
19 |
require_once __DIR__.'/razorpay-sdk/Razorpay.php';
|
20 |
+
require_once ABSPATH . 'wp-admin/includes/plugin.php';
|
21 |
|
22 |
use Razorpay\Api\Api;
|
23 |
use Razorpay\Api\Errors;
|
411 |
$orderId = $order->get_order_number();
|
412 |
|
413 |
$productinfo = "Order $orderId";
|
414 |
+
$mod_version = get_plugin_data(plugin_dir_path(__FILE__) . 'woo-razorpay.php')['Version'];
|
415 |
|
416 |
return array(
|
417 |
'key' => $this->getSetting('key_id'),
|
423 |
),
|
424 |
'callback_url' => $callbackUrl,
|
425 |
'prefill' => $this->getCustomerInfo($order),
|
426 |
+
'_' => array(
|
427 |
+
'integration' => 'woocommerce',
|
428 |
+
'integration_version' => $mod_version,
|
429 |
+
'integration_parent_version' => WOOCOMMERCE_VERSION,
|
430 |
+
),
|
431 |
);
|
432 |
}
|
433 |
|
498 |
}
|
499 |
catch (Exception $e)
|
500 |
{
|
501 |
+
return $e;
|
|
|
|
|
502 |
}
|
503 |
|
504 |
$razorpayOrderId = $razorpayOrder['id'];
|