diff --git a/.travis.yml b/.travis.yml index 5f37f8f1c..794e0b310 100644 --- a/.travis.yml +++ b/.travis.yml @@ -12,6 +12,7 @@ branches: only: - master - trunk + - compat/ppxo script: | CHANGED_FILES=`git diff --name-only --diff-filter=ACMR $TRAVIS_COMMIT_RANGE | grep \\\\.php | awk '{print}' ORS=' '` diff --git a/changelog.txt b/changelog.txt index 68e380959..a2ba808dd 100644 --- a/changelog.txt +++ b/changelog.txt @@ -1,5 +1,21 @@ *** Changelog *** += 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 +* 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/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 @@ class SmartButton implements SmartButtonInterface { 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' ) 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 @@ class CreateOrderEndpoint implements EndpointInterface { $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 ); } 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