Version Description
- Fix - Issue where missing rounding two decimal digits of tax causing transaction being refused
- Fix - Issue where custom logo image URL is not saved
Download this release
Release Info
Developer | akeda |
Plugin | WooCommerce PayPal Express Checkout Payment Gateway |
Version | 1.0.3 |
Comparing to | |
See all releases |
Code changes from version 1.0.2 to 1.0.3
includes/abstracts/abstract-wc-gateway-ppec.php
CHANGED
@@ -684,6 +684,7 @@ abstract class WC_Gateway_PPEC extends WC_Payment_Gateway {
|
|
684 |
$settings->ppcEnabled = $ppc_enabled;
|
685 |
$settings->enableInContextCheckout = $icc_enabled;
|
686 |
$settings->buttonSize = $button_size;
|
|
|
687 |
$settings->markSize = $mark_size;
|
688 |
$settings->environment = $environment;
|
689 |
$settings->liveApiCredentials = 'live' === $environment ? $credential : false;
|
684 |
$settings->ppcEnabled = $ppc_enabled;
|
685 |
$settings->enableInContextCheckout = $icc_enabled;
|
686 |
$settings->buttonSize = $button_size;
|
687 |
+
$settings->logoImageUrl = $logo_image_url;
|
688 |
$settings->markSize = $mark_size;
|
689 |
$settings->environment = $environment;
|
690 |
$settings->liveApiCredentials = 'live' === $environment ? $credential : false;
|
includes/class-wc-gateway-ppec-cart-handler.php
CHANGED
@@ -175,7 +175,7 @@ class WC_Gateway_PPEC_Cart_Handler {
|
|
175 |
$this->orderTax = round( WC()->cart->tax_total + WC()->cart->shipping_tax_total, $decimals );
|
176 |
$this->shipping = round( WC()->cart->shipping_total, $decimals );
|
177 |
$this->totalItemAmount = round( WC()->cart->cart_contents_total, $decimals ) + $discounts;
|
178 |
-
$this->orderTotal = $this->totalItemAmount + $this->orderTax + $this->shipping;
|
179 |
|
180 |
// need to compare WC totals with what PayPal will calculate to see if they match
|
181 |
// if they do not match, check to see what the merchant would like to do
|
@@ -284,6 +284,8 @@ class WC_Gateway_PPEC_Cart_Handler {
|
|
284 |
$this->orderTotal = $wooOrderTotal;
|
285 |
}
|
286 |
|
|
|
|
|
287 |
// after all of the discount shenanigans, load up the other standard variables
|
288 |
$this->insurance = 0;
|
289 |
$this->handling = 0;
|
@@ -332,7 +334,7 @@ class WC_Gateway_PPEC_Cart_Handler {
|
|
332 |
// $this->shipping += round( $order->get_shipping_tax(), $decimals );
|
333 |
// }
|
334 |
$this->totalItemAmount = round( $order->get_subtotal(), $decimals );
|
335 |
-
$this->orderTotal = $this->totalItemAmount + $this->orderTax + $this->shipping;
|
336 |
|
337 |
// need to compare WC totals with what PayPal will calculate to see if they match
|
338 |
// if they do not match, check to see what the merchant would like to do
|
@@ -438,6 +440,8 @@ class WC_Gateway_PPEC_Cart_Handler {
|
|
438 |
$this->orderTotal = $wooOrderTotal;
|
439 |
}
|
440 |
|
|
|
|
|
441 |
// after all of the discount shenanigans, load up the other standard variables
|
442 |
$this->insurance = 0;
|
443 |
$this->handling = 0;
|
175 |
$this->orderTax = round( WC()->cart->tax_total + WC()->cart->shipping_tax_total, $decimals );
|
176 |
$this->shipping = round( WC()->cart->shipping_total, $decimals );
|
177 |
$this->totalItemAmount = round( WC()->cart->cart_contents_total, $decimals ) + $discounts;
|
178 |
+
$this->orderTotal = round( $this->totalItemAmount + $this->orderTax + $this->shipping, $decimals );
|
179 |
|
180 |
// need to compare WC totals with what PayPal will calculate to see if they match
|
181 |
// if they do not match, check to see what the merchant would like to do
|
284 |
$this->orderTotal = $wooOrderTotal;
|
285 |
}
|
286 |
|
287 |
+
$this->orderTax = round( $this->orderTax, $decimals );
|
288 |
+
|
289 |
// after all of the discount shenanigans, load up the other standard variables
|
290 |
$this->insurance = 0;
|
291 |
$this->handling = 0;
|
334 |
// $this->shipping += round( $order->get_shipping_tax(), $decimals );
|
335 |
// }
|
336 |
$this->totalItemAmount = round( $order->get_subtotal(), $decimals );
|
337 |
+
$this->orderTotal = round( $this->totalItemAmount + $this->orderTax + $this->shipping, $decimals );
|
338 |
|
339 |
// need to compare WC totals with what PayPal will calculate to see if they match
|
340 |
// if they do not match, check to see what the merchant would like to do
|
440 |
$this->orderTotal = $wooOrderTotal;
|
441 |
}
|
442 |
|
443 |
+
$this->orderTax = round( $this->orderTax, $decimals );
|
444 |
+
|
445 |
// after all of the discount shenanigans, load up the other standard variables
|
446 |
$this->insurance = 0;
|
447 |
$this->handling = 0;
|
includes/views/admin-settings.php
CHANGED
@@ -449,7 +449,7 @@ if ( $sb_cert ) {
|
|
449 |
</div>
|
450 |
<fieldset>
|
451 |
<legend class="screen-reader-text"><span><?php _e( 'Logo image URL', 'woocommerce-gateway-paypal-express-checkout' ); ?></span></legend>
|
452 |
-
<input type="url" name="woo_pp_logo_image_url" id="woo_pp_logo_image_url" size="80" value="<?php echo $logo_image_url; ?>">
|
453 |
</fieldset>
|
454 |
</td>
|
455 |
</tr>
|
449 |
</div>
|
450 |
<fieldset>
|
451 |
<legend class="screen-reader-text"><span><?php _e( 'Logo image URL', 'woocommerce-gateway-paypal-express-checkout' ); ?></span></legend>
|
452 |
+
<input type="url" name="woo_pp_logo_image_url" id="woo_pp_logo_image_url" size="80" value="<?php echo esc_url( $logo_image_url ); ?>">
|
453 |
</fieldset>
|
454 |
</td>
|
455 |
</tr>
|
readme.txt
CHANGED
@@ -3,7 +3,7 @@ Contributors: automattic, woothemes, akeda, dwainm, royho, allendav, slash1andy,
|
|
3 |
Tags: ecommerce, e-commerce, commerce, woothemes, wordpress ecommerce, store, sales, sell, shop, shopping, cart, checkout, configurable, paypal
|
4 |
Requires at least: 4.4
|
5 |
Tested up to: 4.4
|
6 |
-
Stable tag: 1.0.
|
7 |
License: GPLv3
|
8 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
9 |
|
@@ -80,6 +80,11 @@ New feature requests and bugs reports can be made in the plugin forum.
|
|
80 |
|
81 |
== Changelog ==
|
82 |
|
|
|
|
|
|
|
|
|
|
|
83 |
= 1.0.2
|
84 |
|
85 |
* Fix - Strip out HTML tags from item descriptions to prevent warning from PayPal
|
3 |
Tags: ecommerce, e-commerce, commerce, woothemes, wordpress ecommerce, store, sales, sell, shop, shopping, cart, checkout, configurable, paypal
|
4 |
Requires at least: 4.4
|
5 |
Tested up to: 4.4
|
6 |
+
Stable tag: 1.0.3
|
7 |
License: GPLv3
|
8 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
9 |
|
80 |
|
81 |
== Changelog ==
|
82 |
|
83 |
+
= 1.0.3 =
|
84 |
+
|
85 |
+
* Fix - Issue where missing rounding two decimal digits of tax causing transaction being refused
|
86 |
+
* Fix - Issue where custom logo image URL is not saved
|
87 |
+
|
88 |
= 1.0.2
|
89 |
|
90 |
* Fix - Strip out HTML tags from item descriptions to prevent warning from PayPal
|
woocommerce-gateway-paypal-express-checkout.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
* Plugin Name: WooCommerce PayPal Express Checkout Gateway
|
4 |
* Plugin URI: https://woothemes.com
|
5 |
* Description: A payment gateway for PayPal Express Checkout ( https://www.paypal.com/us/webapps/mpp/express-checkout ). Requires WC 2.5+
|
6 |
-
* Version: 1.0.
|
7 |
* Author: Automattic/WooCommerce
|
8 |
* Author URI: https://woocommerce.com
|
9 |
* Copyright: © 2016 WooCommerce / PayPal.
|
@@ -36,7 +36,7 @@ function wc_gateway_ppec() {
|
|
36 |
if ( ! isset( $plugin ) ) {
|
37 |
require_once( 'includes/class-wc-gateway-ppec-plugin.php' );
|
38 |
|
39 |
-
$plugin = new WC_Gateway_PPEC_Plugin( __FILE__, '1.0.
|
40 |
}
|
41 |
|
42 |
return $plugin;
|
3 |
* Plugin Name: WooCommerce PayPal Express Checkout Gateway
|
4 |
* Plugin URI: https://woothemes.com
|
5 |
* Description: A payment gateway for PayPal Express Checkout ( https://www.paypal.com/us/webapps/mpp/express-checkout ). Requires WC 2.5+
|
6 |
+
* Version: 1.0.3
|
7 |
* Author: Automattic/WooCommerce
|
8 |
* Author URI: https://woocommerce.com
|
9 |
* Copyright: © 2016 WooCommerce / PayPal.
|
36 |
if ( ! isset( $plugin ) ) {
|
37 |
require_once( 'includes/class-wc-gateway-ppec-plugin.php' );
|
38 |
|
39 |
+
$plugin = new WC_Gateway_PPEC_Plugin( __FILE__, '1.0.3' );
|
40 |
}
|
41 |
|
42 |
return $plugin;
|