Version Description
- Bug fix cart line item int issue for magic checkout.
Download this release
Release Info
Developer | razorpay |
Plugin | Razorpay for WooCommerce |
Version | 3.9.1 |
Comparing to | |
See all releases |
Code changes from version 3.9.0 to 3.9.1
- readme.txt +4 -1
- woo-razorpay.php +5 -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.9
|
6 |
-
Stable tag: 3.9.
|
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.9.0 =
|
45 |
* Added Cart line item for magic checkout.
|
46 |
* Bug fix in COD min/max amount restriction for magic checkout.
|
3 |
Tags: razorpay, payments, india, woocommerce, ecommerce
|
4 |
Requires at least: 3.9.2
|
5 |
Tested up to: 5.9
|
6 |
+
Stable tag: 3.9.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.9.1 =
|
45 |
+
* Bug fix cart line item int issue for magic checkout.
|
46 |
+
|
47 |
= 3.9.0 =
|
48 |
* Added Cart line item for magic checkout.
|
49 |
* Bug fix in COD min/max amount restriction for magic checkout.
|
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.9.
|
7 |
-
* Stable tag: 3.9.
|
8 |
* Author: Team Razorpay
|
9 |
* WC tested up to: 6.4.1
|
10 |
* Author URI: https://razorpay.com
|
@@ -885,11 +885,11 @@ function woocommerce_razorpay_init()
|
|
885 |
$data['line_items'][$i]['variant_id'] = $item->get_variation_id();
|
886 |
$data['line_items'][$i]['price'] = (empty($productDetails['price'])=== false) ? round(wc_get_price_excluding_tax($product)*100) + round($item->get_subtotal_tax()*100 / $item->get_quantity()) : 0;
|
887 |
$data['line_items'][$i]['offer_price'] = (empty($productDetails['sale_price'])=== false) ? (int) $productDetails['sale_price']*100 : $productDetails['price']*100;
|
888 |
-
$data['line_items'][$i]['tax_amount'] =
|
889 |
-
$data['line_items'][$i]['quantity'] = $item->get_quantity();
|
890 |
$data['line_items'][$i]['name'] = $item->get_name();
|
891 |
$data['line_items'][$i]['description'] = $item->get_name();
|
892 |
-
$data['line_items'][$i]['weight'] =
|
893 |
$productImage = $product->get_image_id()?? null;
|
894 |
$data['line_items'][$i]['image_url'] = $productImage? wp_get_attachment_url( $productImage ) : null;
|
895 |
$data['line_items'][$i]['product_url'] = $product->get_permalink();
|
3 |
* Plugin Name: Razorpay for WooCommerce
|
4 |
* Plugin URI: https://razorpay.com
|
5 |
* Description: Razorpay Payment Gateway Integration for WooCommerce
|
6 |
+
* Version: 3.9.1
|
7 |
+
* Stable tag: 3.9.1
|
8 |
* Author: Team Razorpay
|
9 |
* WC tested up to: 6.4.1
|
10 |
* Author URI: https://razorpay.com
|
885 |
$data['line_items'][$i]['variant_id'] = $item->get_variation_id();
|
886 |
$data['line_items'][$i]['price'] = (empty($productDetails['price'])=== false) ? round(wc_get_price_excluding_tax($product)*100) + round($item->get_subtotal_tax()*100 / $item->get_quantity()) : 0;
|
887 |
$data['line_items'][$i]['offer_price'] = (empty($productDetails['sale_price'])=== false) ? (int) $productDetails['sale_price']*100 : $productDetails['price']*100;
|
888 |
+
$data['line_items'][$i]['tax_amount'] = 0; // Quick fix to handle the int issue from BE
|
889 |
+
$data['line_items'][$i]['quantity'] = (int)$item->get_quantity();
|
890 |
$data['line_items'][$i]['name'] = $item->get_name();
|
891 |
$data['line_items'][$i]['description'] = $item->get_name();
|
892 |
+
$data['line_items'][$i]['weight'] = 0; // Quick fix to handle the int issue from BE
|
893 |
$productImage = $product->get_image_id()?? null;
|
894 |
$data['line_items'][$i]['image_url'] = $productImage? wp_get_attachment_url( $productImage ) : null;
|
895 |
$data['line_items'][$i]['product_url'] = $product->get_permalink();
|