From 16a48156a50e68c98e5676bbd8de417826aeee3d Mon Sep 17 00:00:00 2001 From: dinamiko Date: Fri, 16 Jul 2021 11:04:01 +0200 Subject: [PATCH 1/4] Bump 1.4.0 version --- changelog.txt | 16 ++++++++++++++++ package.json | 2 +- readme.txt | 18 +++++++++++++++++- woocommerce-paypal-payments.php | 4 ++-- 4 files changed, 36 insertions(+), 4 deletions(-) diff --git a/changelog.txt b/changelog.txt index 68e380959..cc915ab57 100644 --- a/changelog.txt +++ b/changelog.txt @@ -1,5 +1,21 @@ *** Changelog *** += 1.4.0 - TBD = +* Add - Venmo update #169 +* Add - Pay Later Button –Global Expansion #182 +* Add - Add Canada to advanced credit and debit card #180 +* Add - Add button height setting for mini cart #181 +* Add - Add BN Code to Pay Later Messaging #183 +* Add - Add 30 seconds timeout by default to all API requests #184 +* Fix - ACDC checkout error: "Card Details not valid"; but payment completes #193 +* Fix - Incorrect API credentials cause fatal error #187 +* Fix - PayPal payment fails if a new user account is created during the checkout process #177 +* Fix - Disabled PayPal button appears when another button is loaded on the same page #192 +* Fix - [UNPROCESSABLE_ENTITY] error during checkout #172 +* Fix - Do not send customer email when order status is on hold #173 +* Fix - Remove merchant-id query parameter in JSSDK #179 +* Fix - Error on Plugin activation with Zettle POS Integration for WooCommerce #195 + = 1.3.2 - 2021-06-08 = * Fix - Improve Subscription plugin support. #161 * Fix - Disable vault setting if vaulting feature is not available. #150 diff --git a/package.json b/package.json index 4f6d099ba..e4380f8f7 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "woocommerce-paypal-payments", - "version": "1.3.2", + "version": "1.4.0", "description": "WooCommerce PayPal Payments", "repository": "https://github.com/woocommerce/woocommerce-paypal-payments", "license": "GPL-2.0", diff --git a/readme.txt b/readme.txt index 724a86a8e..d287575f7 100644 --- a/readme.txt +++ b/readme.txt @@ -4,7 +4,7 @@ Tags: woocommerce, paypal, payments, ecommerce, e-commerce, store, sales, sell, Requires at least: 5.3 Tested up to: 5.7 Requires PHP: 7.1 -Stable tag: 1.3.2 +Stable tag: 1.4.0 License: GPLv2 License URI: http://www.gnu.org/licenses/gpl-2.0.html @@ -58,6 +58,22 @@ Follow the steps below to connect the plugin to your PayPal account: == Changelog == += 1.4.0 = +* Add - Venmo update #169 +* Add - Pay Later Button –Global Expansion #182 +* Add - Add Canada to advanced credit and debit card #180 +* Add - Add button height setting for mini cart #181 +* Add - Add BN Code to Pay Later Messaging #183 +* Add - Add 30 seconds timeout by default to all API requests #184 +* Fix - ACDC checkout error: "Card Details not valid"; but payment completes #193 +* Fix - Incorrect API credentials cause fatal error #187 +* Fix - PayPal payment fails if a new user account is created during the checkout process #177 +* Fix - Disabled PayPal button appears when another button is loaded on the same page #192 +* Fix - [UNPROCESSABLE_ENTITY] error during checkout #172 +* Fix - Do not send customer email when order status is on hold #173 +* Fix - Remove merchant-id query parameter in JSSDK #179 +* Fix - Error on Plugin activation with Zettle POS Integration for WooCommerce #195 + = 1.3.2 = * Fix - Improve Subscription plugin support. #161 * Fix - Disable vault setting if vaulting feature is not available. #150 diff --git a/woocommerce-paypal-payments.php b/woocommerce-paypal-payments.php index 0ce0ab2e4..1f90977f0 100644 --- a/woocommerce-paypal-payments.php +++ b/woocommerce-paypal-payments.php @@ -3,13 +3,13 @@ * Plugin Name: WooCommerce PayPal Payments * Plugin URI: https://woocommerce.com/products/woocommerce-paypal-payments/ * Description: PayPal's latest complete payments processing solution. Accept PayPal, Pay Later, credit/debit cards, alternative digital wallets local payment types and bank accounts. Turn on only PayPal options or process a full suite of payment methods. Enable global transaction with extensive currency and country coverage. - * Version: 1.3.2 + * Version: 1.4.0 * Author: WooCommerce * Author URI: https://woocommerce.com/ * License: GPL-2.0 * Requires PHP: 7.1 * WC requires at least: 3.9 - * WC tested up to: 4.9 + * WC tested up to: 5.5 * Text Domain: woocommerce-paypal-payments * * @package WooCommerce\PayPalCommerce From c2a036c952568a447baeb1a442805f911e9fc7e9 Mon Sep 17 00:00:00 2001 From: dinamiko Date: Wed, 21 Jul 2021 11:44:44 +0200 Subject: [PATCH 2/4] Check if array key exist before using it --- modules/ppcp-button/src/Endpoint/class-createorderendpoint.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/ppcp-button/src/Endpoint/class-createorderendpoint.php b/modules/ppcp-button/src/Endpoint/class-createorderendpoint.php index cadc0e0fd..0e90fc41c 100644 --- a/modules/ppcp-button/src/Endpoint/class-createorderendpoint.php +++ b/modules/ppcp-button/src/Endpoint/class-createorderendpoint.php @@ -174,7 +174,7 @@ public function handle_request(): bool { $this->set_bn_code( $data ); if ( 'checkout' === $data['context'] ) { - if ( '1' === $data['createaccount'] ) { + if ( isset( $data['createaccount'] ) && '1' === $data['createaccount'] ) { $this->process_checkout_form_when_creating_account( $data['form'], $wc_order ); } From f47d69a6b0c170af667cb0c42aabde06f339c9c4 Mon Sep 17 00:00:00 2001 From: dinamiko Date: Fri, 23 Jul 2021 11:31:11 +0200 Subject: [PATCH 3/4] Do not render save credit card checkbox is user is not logged in --- modules/ppcp-button/src/Assets/class-smartbutton.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/ppcp-button/src/Assets/class-smartbutton.php b/modules/ppcp-button/src/Assets/class-smartbutton.php index 4fb0eee10..81cf51161 100644 --- a/modules/ppcp-button/src/Assets/class-smartbutton.php +++ b/modules/ppcp-button/src/Assets/class-smartbutton.php @@ -202,7 +202,7 @@ public function render_wrapper(): bool { add_filter( 'woocommerce_credit_card_form_fields', function ( $default_fields, $id ) { - if ( $this->settings->has( 'vault_enabled' ) && $this->settings->get( 'vault_enabled' ) && CreditCardGateway::ID === $id ) { + if ( is_user_logged_in() && $this->settings->has( 'vault_enabled' ) && $this->settings->get( 'vault_enabled' ) && CreditCardGateway::ID === $id ) { $default_fields['card-vault'] = sprintf( '

', esc_html__( 'Save your Credit Card', 'woocommerce-paypal-payments' ) From dca37828c600199d12dca374ad9bec7e3846b228 Mon Sep 17 00:00:00 2001 From: "Jorge A. Torres" Date: Tue, 27 Jul 2021 11:09:35 -0500 Subject: [PATCH 4/4] Update changelog date for release (1.4.0) --- changelog.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/changelog.txt b/changelog.txt index cc915ab57..a2ba808dd 100644 --- a/changelog.txt +++ b/changelog.txt @@ -1,6 +1,6 @@ *** Changelog *** -= 1.4.0 - TBD = += 1.4.0 - 2021-07-27 = * Add - Venmo update #169 * Add - Pay Later Button –Global Expansion #182 * Add - Add Canada to advanced credit and debit card #180