From c223e5d0c0ecf3b536e4dc4aa177011e0c08a6f1 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Sun, 14 Apr 2024 14:09:21 +0000 Subject: [PATCH 1/6] Update version and add changelog entries for release 7.5.0 --- changelog.txt | 66 ++++++++++++++++++ changelog/2024-03-30-01-19-36-005298 | 4 -- ...8130-add-cookie-product-cache-per-currency | 4 -- ...43-add-bnpl-pmme-to-checkout-radio-buttons | 4 -- changelog/8446-woo-core-verticals | 4 -- changelog/8499-fix-js-error-on-gpay-click | 4 -- changelog/add-2552-skip-woopay-session-cookie | 4 -- changelog/add-7736-task-go-live | 4 -- changelog/add-8144-bnpl-cart-summary | 4 -- ...move-tos-links-that-are-not-needed-anymore | 4 -- .../add-8389-create-payment-activity-wrapper | 4 -- .../add-8428-payment-settings-ux-improvements | 4 -- changelog/add-8557-empty-state-payment-widget | 4 -- .../add-8615-account-management-track-events | 4 -- changelog/add-more-typescript-guidelines | 4 -- changelog/add-payment-data-highlight-block | 4 -- changelog/add-variable-analysis-phpcs-sniffs | 4 -- changelog/cart-pmme-total-updates | 5 -- ...re-remove-unused-payment-confirmation-code | 4 -- ...hore-remove-unused-use-statements-in-tests | 5 -- changelog/cobranded-cards | 4 -- changelog/dev-4256-jetpack-connection-updates | 4 -- changelog/dev-8469-fix-phpcs-report | 4 -- ...-woopay-direct-checkout-unit-test-coverage | 4 -- changelog/dev-track-account-management-links | 4 -- changelog/feat-8516-total-payment-activity | 4 -- changelog/feat-bnpl-announcement-apr | 4 -- changelog/fix-402-status-code-messaging | 4 -- changelog/fix-7866-tos-decline-busy | 4 -- ...8093-onboarding-collides-with-jitm-banners | 4 -- ...pdate-ip-ruleset-after-core-country-change | 4 -- changelog/fix-8278-remove-redundant-text | 4 -- ...error-when-connecting-jetpack-to-locqlhost | 4 -- changelog/fix-8386-remove-utc-label | 4 -- ...emove-payment-method-fees-discount-tc-link | 5 -- .../fix-8465-fix-phpcs-new-disputes-errors | 4 -- changelog/fix-8465-fix-phpcs-reports | 4 -- changelog/fix-8470-phpcs-report | 5 -- ...ti-currency-decimal-separator-not-applying | 4 -- .../fix-8567-connect-page-payment-methods | 4 -- ...71-payment-activity-card-safari-visual-bug | 5 -- ...iscount-calculation-with-server-processing | 4 -- ...ools-finish-setup-button-point-to-kyc-flow | 4 -- changelog/fix-afterpay-logo | 4 -- .../fix-bnpl-cart-summary-block-dependency | 5 -- changelog/fix-bnpl-checkout-e2e | 4 -- changelog/fix-cached-db-cache | 4 -- .../fix-check_for_session_before_calling_get | 4 -- changelog/fix-connect-page-double-woopay-logo | 4 -- ...r-woopay-order-webhook-if-account-rejected | 4 -- ...-woopay-order-webhook-if-account-suspended | 4 -- changelog/fix-filesystem-phpcs-reports | 4 -- ...ve-call-for-price-decimal-separator-filter | 4 -- ...-call-for-price-decimal-separator-filter-2 | 5 -- changelog/fix-merchant-onboarding-e2e-tests | 5 -- .../fix-migrate-woopay-skipped-tracks-event | 5 -- changelog/fix-multi-currency-phpcs-notices | 4 -- changelog/fix-optional-zip | 4 -- changelog/fix-phpcs-reports-checkout | 4 -- changelog/fix-puerto-rico-incorrect-warning | 4 -- changelog/fix-register-pmme-bnpl-enabled | 4 -- changelog/fix-remove-unused-file | 5 -- changelog/fix-subscription-billing-fields | 4 -- ...ct-checkout-button-loading-spinner-spacing | 4 -- .../refactor-8389-remove-unwanted-css-classes | 4 -- changelog/refactor-payments-activity-tiles-ui | 4 -- ...ctor-shortcode-checkout-wp-data-dependency | 4 -- changelog/remove-dependency-wordpress-data | 4 -- .../replace-deprecated-input-filter-constant | 4 -- changelog/tweak-revert-phpcs-update-revert-pr | 4 -- ...te-8447-always-redirect-to-payment-connect | 4 -- ...e-8449-change-overview-sandbox-mode-notice | 4 -- ...573-switch-links-to-woocommerce-com-domain | 4 -- .../update-8580-discover-and-diners-logos | 4 -- changelog/update-link-by-stripe-logo | 4 -- changelog/update-proceed-to-checkout-tracking | 5 -- package-lock.json | 4 +- package.json | 2 +- readme.txt | 68 ++++++++++++++++++- woocommerce-payments.php | 2 +- 80 files changed, 137 insertions(+), 316 deletions(-) delete mode 100644 changelog/2024-03-30-01-19-36-005298 delete mode 100644 changelog/8130-add-cookie-product-cache-per-currency delete mode 100644 changelog/8143-add-bnpl-pmme-to-checkout-radio-buttons delete mode 100644 changelog/8446-woo-core-verticals delete mode 100644 changelog/8499-fix-js-error-on-gpay-click delete mode 100644 changelog/add-2552-skip-woopay-session-cookie delete mode 100644 changelog/add-7736-task-go-live delete mode 100644 changelog/add-8144-bnpl-cart-summary delete mode 100644 changelog/add-8167-remove-tos-links-that-are-not-needed-anymore delete mode 100644 changelog/add-8389-create-payment-activity-wrapper delete mode 100644 changelog/add-8428-payment-settings-ux-improvements delete mode 100644 changelog/add-8557-empty-state-payment-widget delete mode 100644 changelog/add-8615-account-management-track-events delete mode 100644 changelog/add-more-typescript-guidelines delete mode 100644 changelog/add-payment-data-highlight-block delete mode 100644 changelog/add-variable-analysis-phpcs-sniffs delete mode 100644 changelog/cart-pmme-total-updates delete mode 100644 changelog/chore-remove-unused-payment-confirmation-code delete mode 100644 changelog/chore-remove-unused-use-statements-in-tests delete mode 100644 changelog/cobranded-cards delete mode 100644 changelog/dev-4256-jetpack-connection-updates delete mode 100644 changelog/dev-8469-fix-phpcs-report delete mode 100644 changelog/dev-increase-woopay-direct-checkout-unit-test-coverage delete mode 100644 changelog/dev-track-account-management-links delete mode 100644 changelog/feat-8516-total-payment-activity delete mode 100644 changelog/feat-bnpl-announcement-apr delete mode 100644 changelog/fix-402-status-code-messaging delete mode 100644 changelog/fix-7866-tos-decline-busy delete mode 100644 changelog/fix-8093-onboarding-collides-with-jitm-banners delete mode 100644 changelog/fix-8134-update-ip-ruleset-after-core-country-change delete mode 100644 changelog/fix-8278-remove-redundant-text delete mode 100644 changelog/fix-8301-fatal-error-when-connecting-jetpack-to-locqlhost delete mode 100644 changelog/fix-8386-remove-utc-label delete mode 100644 changelog/fix-8448-remove-payment-method-fees-discount-tc-link delete mode 100644 changelog/fix-8465-fix-phpcs-new-disputes-errors delete mode 100644 changelog/fix-8465-fix-phpcs-reports delete mode 100644 changelog/fix-8470-phpcs-report delete mode 100644 changelog/fix-8559-multi-currency-decimal-separator-not-applying delete mode 100644 changelog/fix-8567-connect-page-payment-methods delete mode 100644 changelog/fix-8571-payment-activity-card-safari-visual-bug delete mode 100644 changelog/fix-8583-sync-discount-calculation-with-server-processing delete mode 100644 changelog/fix-8585-account-tools-finish-setup-button-point-to-kyc-flow delete mode 100644 changelog/fix-afterpay-logo delete mode 100644 changelog/fix-bnpl-cart-summary-block-dependency delete mode 100644 changelog/fix-bnpl-checkout-e2e delete mode 100644 changelog/fix-cached-db-cache delete mode 100644 changelog/fix-check_for_session_before_calling_get delete mode 100644 changelog/fix-connect-page-double-woopay-logo delete mode 100644 changelog/fix-dont-register-woopay-order-webhook-if-account-rejected delete mode 100644 changelog/fix-dont-register-woopay-order-webhook-if-account-suspended delete mode 100644 changelog/fix-filesystem-phpcs-reports delete mode 100644 changelog/fix-infinite-recursive-call-for-price-decimal-separator-filter delete mode 100644 changelog/fix-infinite-recursive-call-for-price-decimal-separator-filter-2 delete mode 100644 changelog/fix-merchant-onboarding-e2e-tests delete mode 100644 changelog/fix-migrate-woopay-skipped-tracks-event delete mode 100644 changelog/fix-multi-currency-phpcs-notices delete mode 100644 changelog/fix-optional-zip delete mode 100644 changelog/fix-phpcs-reports-checkout delete mode 100644 changelog/fix-puerto-rico-incorrect-warning delete mode 100644 changelog/fix-register-pmme-bnpl-enabled delete mode 100644 changelog/fix-remove-unused-file delete mode 100644 changelog/fix-subscription-billing-fields delete mode 100644 changelog/fix-woopay-direct-checkout-button-loading-spinner-spacing delete mode 100644 changelog/refactor-8389-remove-unwanted-css-classes delete mode 100644 changelog/refactor-payments-activity-tiles-ui delete mode 100644 changelog/refactor-shortcode-checkout-wp-data-dependency delete mode 100644 changelog/remove-dependency-wordpress-data delete mode 100644 changelog/replace-deprecated-input-filter-constant delete mode 100644 changelog/tweak-revert-phpcs-update-revert-pr delete mode 100644 changelog/update-8447-always-redirect-to-payment-connect delete mode 100644 changelog/update-8449-change-overview-sandbox-mode-notice delete mode 100644 changelog/update-8573-switch-links-to-woocommerce-com-domain delete mode 100644 changelog/update-8580-discover-and-diners-logos delete mode 100644 changelog/update-link-by-stripe-logo delete mode 100644 changelog/update-proceed-to-checkout-tracking diff --git a/changelog.txt b/changelog.txt index 6418bf8f1fb..05dfdda0c0b 100644 --- a/changelog.txt +++ b/changelog.txt @@ -1,5 +1,71 @@ *** WooPayments Changelog *** += 7.5.0 - 2024-04-17 = +* Add - Add a parent wrapper component for Payment Activity widget. This will be visible on the Payments Overview page +* Add - Add a task on WooCommerce Home page to remind accounts operating in sandbox mode to set up live payments. +* Add - Add BNPL messaging to cart page. +* Add - Add BNPL terms to checkout payment methods. +* Add - Added support to Cartes Bancaires +* Add - Adding a tracking event for external redirects to finish setup and start receiving deposits. +* Add - Add Multi-Currency Support to Page Caching via Cookies. +* Add - Extend 'skip WooPay' flag to user session. +* Add - feat: BNPL April announcement. +* Add - Improve payment settings UX. +* Add - Not user-facing: hidden behind feature flag. Add an empty state view for the Payments Activity widget. This is shown when the merchant is yet to have any transactions over WooPayments. +* Add - Not user facing - Changes are behind a feature flag. Adds the basic UI scaffold for the Payments Activity widget. +* Add - Prepopulate Vertical selection in the onboarding form based on Woo Core selection. +* Fix - Add an instructive error message when customer tries to use 2 different currencies for Stripe Billing subscriptions. +* Fix - Address PHPCS reports in checkout classes. +* Fix - Adds a check to see if the session exists before calling get() +* Fix - Change IP country rule after country settings are changed in WC settings page +* Fix - Defensive check for cart block PMME which hasn't yet been deployed. +* Fix - Don't register WooPay Order Webhook if account is rejected. +* Fix - Don't register WooPay Order Webhook if account is under review. +* Fix - Ensure "Proceed to checkout" button's loading spinner doesn't affect button spacing when Direct Checkout is enabled. +* Fix - Ensure that the currency configurations are set correctly when multi-currency is enabled. +* Fix - Ensure we avoid an infinite recursive call stack through 'wc_get_price_decimal_separator' filter. +* Fix - fix: error message on 402 status code +* Fix - Fix an incorrect warning about Puerto Rico being unsupported by WooPayments +* Fix - Fix collision between WooPayments header and Woo Express survey banner. +* Fix - Fix Decline button state for Accept loading on ToS modal +* Fix - Fixed Afterpay logo size on settings page +* Fix - Fixed billing address error for subscription without some billing details +* Fix - Fixed optional billing field validation +* Fix - Fix Fatal Error showing when connect to Jetpack on localhost +* Fix - Fix JS error when clicking GPay button on blocks checkout with subscription (w/sign up fee) in cart. +* Fix - Fix payment icons on connect page (Klarna, Afterpay) +* Fix - Hide account tools finish setup button for accounts completed the KYC and change it's link to Stripe KYC instead of the Stripe Express. +* Fix - Remove extra WooPay icon on connect page +* Fix - Remove incorrect "UTC" label from the time column of Transactions page +* Fix - Remove redundant message after the account is onboarded +* Fix - Sync discount brakedown with how server processes it +* Update - Adding a tracking event for external redirects to update account details, more consistent behaviour for redirects. +* Update - Cleanup unused payment confirmation code. +* Update - Reduce the visual footprint of the sandbox mode notice. +* Update - Remove @wordpress/data dependency in the email input iframe file +* Update - Remove ToS acceptance copy from all entrypoints in MOX +* Update - Remove unwanted css overrides on the Payment activity widget wrapper +* Update - Replace deprecated filter. +* Update - Update Discover and Diners logos +* Update - Updated Link by Stripe logo +* Update - Update links across the plugin from woo.com to woocommerce.com (previous platform HQ URL). +* Update - Update MOX cancellation to consistently redirect back to the payment connect page. +* Dev - Address update PHPCS error - a single one recommending escaping an exception message +* Dev - Add TypeScript development guidelines +* Dev - Add VariableAnalysis sniffs for better ergonomics around unused and undefined variables +* Dev - Changes are not user facing, behind a feature flag. Refactor - tooltip component flattened in place, instead of calling it from a separate file. +* Dev - Clear WP cache on writes inside Database_Cache +* Dev - Escaping error logs and ignoring noticese where there are no issues. +* Dev - Fix e2e tests for BNPL checkout +* Dev - Fixed phpcs errors +* Dev - Fixes to comply with updates to PHPCS linter. +* Dev - Ignore alternative function WordPress PHPCS sniffs in the GH workflows and tests +* Dev - Increase unit test coverage for WooPay direct checkout flow. +* Dev - Payments Activity - add scaffolding for Total Payment Volume. +* Dev - refactor: reduce wp-data dependency on shortcode checkout +* Dev - Updated PHPCS and sniffs used for static analysis +* Dev - Updates to remove deprecated function usage in the Jetpack Connection manager. Doesn't affect functionality. + = 7.4.0 - 2024-03-27 = * Add - Add account reset for sandboxes * Add - Add a loading spinner to the "Proceed to Checkout" button in shortcode cart. diff --git a/changelog/2024-03-30-01-19-36-005298 b/changelog/2024-03-30-01-19-36-005298 deleted file mode 100644 index bd24b302dff..00000000000 --- a/changelog/2024-03-30-01-19-36-005298 +++ /dev/null @@ -1,4 +0,0 @@ -Significance: patch -Type: fix - -Add an instructive error message when customer tries to use 2 different currencies for Stripe Billing subscriptions. diff --git a/changelog/8130-add-cookie-product-cache-per-currency b/changelog/8130-add-cookie-product-cache-per-currency deleted file mode 100644 index 7b151390f64..00000000000 --- a/changelog/8130-add-cookie-product-cache-per-currency +++ /dev/null @@ -1,4 +0,0 @@ -Significance: minor -Type: add - -Add Multi-Currency Support to Page Caching via Cookies. diff --git a/changelog/8143-add-bnpl-pmme-to-checkout-radio-buttons b/changelog/8143-add-bnpl-pmme-to-checkout-radio-buttons deleted file mode 100644 index b6319b044b1..00000000000 --- a/changelog/8143-add-bnpl-pmme-to-checkout-radio-buttons +++ /dev/null @@ -1,4 +0,0 @@ -Significance: minor -Type: add - -Add BNPL terms to checkout payment methods. diff --git a/changelog/8446-woo-core-verticals b/changelog/8446-woo-core-verticals deleted file mode 100644 index e6fbe0051cd..00000000000 --- a/changelog/8446-woo-core-verticals +++ /dev/null @@ -1,4 +0,0 @@ -Significance: minor -Type: add - -Prepopulate Vertical selection in the onboarding form based on Woo Core selection. diff --git a/changelog/8499-fix-js-error-on-gpay-click b/changelog/8499-fix-js-error-on-gpay-click deleted file mode 100644 index 971d2f03f57..00000000000 --- a/changelog/8499-fix-js-error-on-gpay-click +++ /dev/null @@ -1,4 +0,0 @@ -Significance: patch -Type: fix - -Fix JS error when clicking GPay button on blocks checkout with subscription (w/sign up fee) in cart. diff --git a/changelog/add-2552-skip-woopay-session-cookie b/changelog/add-2552-skip-woopay-session-cookie deleted file mode 100644 index 4995c2fa9f1..00000000000 --- a/changelog/add-2552-skip-woopay-session-cookie +++ /dev/null @@ -1,4 +0,0 @@ -Significance: minor -Type: add - -Extend 'skip WooPay' flag to user session. diff --git a/changelog/add-7736-task-go-live b/changelog/add-7736-task-go-live deleted file mode 100644 index 5ea648c1d55..00000000000 --- a/changelog/add-7736-task-go-live +++ /dev/null @@ -1,4 +0,0 @@ -Significance: minor -Type: add - -Add a task on WooCommerce Home page to remind accounts operating in sandbox mode to set up live payments. diff --git a/changelog/add-8144-bnpl-cart-summary b/changelog/add-8144-bnpl-cart-summary deleted file mode 100644 index 6d0fba70b5f..00000000000 --- a/changelog/add-8144-bnpl-cart-summary +++ /dev/null @@ -1,4 +0,0 @@ -Significance: minor -Type: add - -Add BNPL messaging to cart page. diff --git a/changelog/add-8167-remove-tos-links-that-are-not-needed-anymore b/changelog/add-8167-remove-tos-links-that-are-not-needed-anymore deleted file mode 100644 index 147be7effd1..00000000000 --- a/changelog/add-8167-remove-tos-links-that-are-not-needed-anymore +++ /dev/null @@ -1,4 +0,0 @@ -Significance: minor -Type: update - -Remove ToS acceptance copy from all entrypoints in MOX diff --git a/changelog/add-8389-create-payment-activity-wrapper b/changelog/add-8389-create-payment-activity-wrapper deleted file mode 100644 index 43c659819e9..00000000000 --- a/changelog/add-8389-create-payment-activity-wrapper +++ /dev/null @@ -1,4 +0,0 @@ -Significance: minor -Type: add - -Add a parent wrapper component for Payment Activity widget. This will be visible on the Payments Overview page diff --git a/changelog/add-8428-payment-settings-ux-improvements b/changelog/add-8428-payment-settings-ux-improvements deleted file mode 100644 index dd8aa8c1c3b..00000000000 --- a/changelog/add-8428-payment-settings-ux-improvements +++ /dev/null @@ -1,4 +0,0 @@ -Significance: minor -Type: add - -Improve payment settings UX. diff --git a/changelog/add-8557-empty-state-payment-widget b/changelog/add-8557-empty-state-payment-widget deleted file mode 100644 index d6b0a868c36..00000000000 --- a/changelog/add-8557-empty-state-payment-widget +++ /dev/null @@ -1,4 +0,0 @@ -Significance: minor -Type: add - -Not user-facing: hidden behind feature flag. Add an empty state view for the Payments Activity widget. This is shown when the merchant is yet to have any transactions over WooPayments. diff --git a/changelog/add-8615-account-management-track-events b/changelog/add-8615-account-management-track-events deleted file mode 100644 index cb554da406a..00000000000 --- a/changelog/add-8615-account-management-track-events +++ /dev/null @@ -1,4 +0,0 @@ -Significance: patch -Type: add - -Adding a tracking event for external redirects to finish setup and start receiving deposits. diff --git a/changelog/add-more-typescript-guidelines b/changelog/add-more-typescript-guidelines deleted file mode 100644 index 682152ea84b..00000000000 --- a/changelog/add-more-typescript-guidelines +++ /dev/null @@ -1,4 +0,0 @@ -Significance: patch -Type: dev - -Add TypeScript development guidelines diff --git a/changelog/add-payment-data-highlight-block b/changelog/add-payment-data-highlight-block deleted file mode 100644 index 54406a673c3..00000000000 --- a/changelog/add-payment-data-highlight-block +++ /dev/null @@ -1,4 +0,0 @@ -Significance: minor -Type: add - -Not user facing - Changes are behind a feature flag. Adds the basic UI scaffold for the Payments Activity widget. diff --git a/changelog/add-variable-analysis-phpcs-sniffs b/changelog/add-variable-analysis-phpcs-sniffs deleted file mode 100644 index 168a43bb075..00000000000 --- a/changelog/add-variable-analysis-phpcs-sniffs +++ /dev/null @@ -1,4 +0,0 @@ -Significance: patch -Type: dev - -Add VariableAnalysis sniffs for better ergonomics around unused and undefined variables diff --git a/changelog/cart-pmme-total-updates b/changelog/cart-pmme-total-updates deleted file mode 100644 index d1a3379da0f..00000000000 --- a/changelog/cart-pmme-total-updates +++ /dev/null @@ -1,5 +0,0 @@ -Significance: patch -Type: add -Comment: Adding skeleton component to BNPL messaging on cart page which has not yet been deployed. - - diff --git a/changelog/chore-remove-unused-payment-confirmation-code b/changelog/chore-remove-unused-payment-confirmation-code deleted file mode 100644 index 55f4949f968..00000000000 --- a/changelog/chore-remove-unused-payment-confirmation-code +++ /dev/null @@ -1,4 +0,0 @@ -Significance: minor -Type: update - -Cleanup unused payment confirmation code. diff --git a/changelog/chore-remove-unused-use-statements-in-tests b/changelog/chore-remove-unused-use-statements-in-tests deleted file mode 100644 index db5212fcb94..00000000000 --- a/changelog/chore-remove-unused-use-statements-in-tests +++ /dev/null @@ -1,5 +0,0 @@ -Significance: patch -Type: dev -Comment: chore: remove unused use statement in tests - - diff --git a/changelog/cobranded-cards b/changelog/cobranded-cards deleted file mode 100644 index 7788a04abff..00000000000 --- a/changelog/cobranded-cards +++ /dev/null @@ -1,4 +0,0 @@ -Significance: minor -Type: add - -Added support to Cartes Bancaires diff --git a/changelog/dev-4256-jetpack-connection-updates b/changelog/dev-4256-jetpack-connection-updates deleted file mode 100644 index 830d00c6fe9..00000000000 --- a/changelog/dev-4256-jetpack-connection-updates +++ /dev/null @@ -1,4 +0,0 @@ -Significance: minor -Type: dev - -Updates to remove deprecated function usage in the Jetpack Connection manager. Doesn't affect functionality. diff --git a/changelog/dev-8469-fix-phpcs-report b/changelog/dev-8469-fix-phpcs-report deleted file mode 100644 index 3a91c44d785..00000000000 --- a/changelog/dev-8469-fix-phpcs-report +++ /dev/null @@ -1,4 +0,0 @@ -Significance: minor -Type: dev - -Fixes to comply with updates to PHPCS linter. diff --git a/changelog/dev-increase-woopay-direct-checkout-unit-test-coverage b/changelog/dev-increase-woopay-direct-checkout-unit-test-coverage deleted file mode 100644 index 7fa3d57512b..00000000000 --- a/changelog/dev-increase-woopay-direct-checkout-unit-test-coverage +++ /dev/null @@ -1,4 +0,0 @@ -Significance: patch -Type: dev - -Increase unit test coverage for WooPay direct checkout flow. diff --git a/changelog/dev-track-account-management-links b/changelog/dev-track-account-management-links deleted file mode 100644 index be63cc372a3..00000000000 --- a/changelog/dev-track-account-management-links +++ /dev/null @@ -1,4 +0,0 @@ -Significance: minor -Type: update - -Adding a tracking event for external redirects to update account details, more consistent behaviour for redirects. diff --git a/changelog/feat-8516-total-payment-activity b/changelog/feat-8516-total-payment-activity deleted file mode 100644 index b1f6e2e6dac..00000000000 --- a/changelog/feat-8516-total-payment-activity +++ /dev/null @@ -1,4 +0,0 @@ -Significance: minor -Type: dev - -Payments Activity - add scaffolding for Total Payment Volume. diff --git a/changelog/feat-bnpl-announcement-apr b/changelog/feat-bnpl-announcement-apr deleted file mode 100644 index 7d339efbfeb..00000000000 --- a/changelog/feat-bnpl-announcement-apr +++ /dev/null @@ -1,4 +0,0 @@ -Significance: patch -Type: add - -feat: BNPL April announcement. diff --git a/changelog/fix-402-status-code-messaging b/changelog/fix-402-status-code-messaging deleted file mode 100644 index bbecb389453..00000000000 --- a/changelog/fix-402-status-code-messaging +++ /dev/null @@ -1,4 +0,0 @@ -Significance: patch -Type: fix - -fix: error message on 402 status code diff --git a/changelog/fix-7866-tos-decline-busy b/changelog/fix-7866-tos-decline-busy deleted file mode 100644 index d35a3181179..00000000000 --- a/changelog/fix-7866-tos-decline-busy +++ /dev/null @@ -1,4 +0,0 @@ -Significance: patch -Type: fix - -Fix Decline button state for Accept loading on ToS modal diff --git a/changelog/fix-8093-onboarding-collides-with-jitm-banners b/changelog/fix-8093-onboarding-collides-with-jitm-banners deleted file mode 100644 index 324551cb9ce..00000000000 --- a/changelog/fix-8093-onboarding-collides-with-jitm-banners +++ /dev/null @@ -1,4 +0,0 @@ -Significance: patch -Type: fix - -Fix collision between WooPayments header and Woo Express survey banner. diff --git a/changelog/fix-8134-update-ip-ruleset-after-core-country-change b/changelog/fix-8134-update-ip-ruleset-after-core-country-change deleted file mode 100644 index daf2f9b4590..00000000000 --- a/changelog/fix-8134-update-ip-ruleset-after-core-country-change +++ /dev/null @@ -1,4 +0,0 @@ -Significance: patch -Type: fix - -Change IP country rule after country settings are changed in WC settings page diff --git a/changelog/fix-8278-remove-redundant-text b/changelog/fix-8278-remove-redundant-text deleted file mode 100644 index 35fa6d633e1..00000000000 --- a/changelog/fix-8278-remove-redundant-text +++ /dev/null @@ -1,4 +0,0 @@ -Significance: minor -Type: fix - -Remove redundant message after the account is onboarded diff --git a/changelog/fix-8301-fatal-error-when-connecting-jetpack-to-locqlhost b/changelog/fix-8301-fatal-error-when-connecting-jetpack-to-locqlhost deleted file mode 100644 index ba8b3a86431..00000000000 --- a/changelog/fix-8301-fatal-error-when-connecting-jetpack-to-locqlhost +++ /dev/null @@ -1,4 +0,0 @@ -Significance: patch -Type: fix - -Fix Fatal Error showing when connect to Jetpack on localhost diff --git a/changelog/fix-8386-remove-utc-label b/changelog/fix-8386-remove-utc-label deleted file mode 100644 index 4a35374553b..00000000000 --- a/changelog/fix-8386-remove-utc-label +++ /dev/null @@ -1,4 +0,0 @@ -Significance: patch -Type: fix - -Remove incorrect "UTC" label from the time column of Transactions page diff --git a/changelog/fix-8448-remove-payment-method-fees-discount-tc-link b/changelog/fix-8448-remove-payment-method-fees-discount-tc-link deleted file mode 100644 index c56d6912b25..00000000000 --- a/changelog/fix-8448-remove-payment-method-fees-discount-tc-link +++ /dev/null @@ -1,5 +0,0 @@ -Significance: patch -Type: fix -Comment: Remove discount terms and conditions link from the payment method fees pill. - - diff --git a/changelog/fix-8465-fix-phpcs-new-disputes-errors b/changelog/fix-8465-fix-phpcs-new-disputes-errors deleted file mode 100644 index 88ec1db7a54..00000000000 --- a/changelog/fix-8465-fix-phpcs-new-disputes-errors +++ /dev/null @@ -1,4 +0,0 @@ -Significance: patch -Type: dev - -Address update PHPCS error - a single one recommending escaping an exception message diff --git a/changelog/fix-8465-fix-phpcs-reports b/changelog/fix-8465-fix-phpcs-reports deleted file mode 100644 index ba6f6f92223..00000000000 --- a/changelog/fix-8465-fix-phpcs-reports +++ /dev/null @@ -1,4 +0,0 @@ -Significance: patch -Type: dev - -Fixed phpcs errors diff --git a/changelog/fix-8470-phpcs-report b/changelog/fix-8470-phpcs-report deleted file mode 100644 index 2a224b3822c..00000000000 --- a/changelog/fix-8470-phpcs-report +++ /dev/null @@ -1,5 +0,0 @@ -Significance: patch -Type: fix -Comment: Ignore a PHPCS rule in two lines. - - diff --git a/changelog/fix-8559-multi-currency-decimal-separator-not-applying b/changelog/fix-8559-multi-currency-decimal-separator-not-applying deleted file mode 100644 index 002edc281b3..00000000000 --- a/changelog/fix-8559-multi-currency-decimal-separator-not-applying +++ /dev/null @@ -1,4 +0,0 @@ -Significance: patch -Type: fix - -Ensure that the currency configurations are set correctly when multi-currency is enabled. diff --git a/changelog/fix-8567-connect-page-payment-methods b/changelog/fix-8567-connect-page-payment-methods deleted file mode 100644 index b8d3659be83..00000000000 --- a/changelog/fix-8567-connect-page-payment-methods +++ /dev/null @@ -1,4 +0,0 @@ -Significance: patch -Type: fix - -Fix payment icons on connect page (Klarna, Afterpay) diff --git a/changelog/fix-8571-payment-activity-card-safari-visual-bug b/changelog/fix-8571-payment-activity-card-safari-visual-bug deleted file mode 100644 index 2f2f2f283f3..00000000000 --- a/changelog/fix-8571-payment-activity-card-safari-visual-bug +++ /dev/null @@ -1,5 +0,0 @@ -Significance: patch -Type: fix -Comment: Not user-facing: hidden behind feature flag. Fixes payment activity visual bug in safari. - - diff --git a/changelog/fix-8583-sync-discount-calculation-with-server-processing b/changelog/fix-8583-sync-discount-calculation-with-server-processing deleted file mode 100644 index 6d66c734bd6..00000000000 --- a/changelog/fix-8583-sync-discount-calculation-with-server-processing +++ /dev/null @@ -1,4 +0,0 @@ -Significance: patch -Type: fix - -Sync discount brakedown with how server processes it diff --git a/changelog/fix-8585-account-tools-finish-setup-button-point-to-kyc-flow b/changelog/fix-8585-account-tools-finish-setup-button-point-to-kyc-flow deleted file mode 100644 index e329e216a31..00000000000 --- a/changelog/fix-8585-account-tools-finish-setup-button-point-to-kyc-flow +++ /dev/null @@ -1,4 +0,0 @@ -Significance: patch -Type: fix - -Hide account tools finish setup button for accounts completed the KYC and change it's link to Stripe KYC instead of the Stripe Express. diff --git a/changelog/fix-afterpay-logo b/changelog/fix-afterpay-logo deleted file mode 100644 index 0c6272b8c06..00000000000 --- a/changelog/fix-afterpay-logo +++ /dev/null @@ -1,4 +0,0 @@ -Significance: patch -Type: fix - -Fixed Afterpay logo size on settings page diff --git a/changelog/fix-bnpl-cart-summary-block-dependency b/changelog/fix-bnpl-cart-summary-block-dependency deleted file mode 100644 index 61c965a1d91..00000000000 --- a/changelog/fix-bnpl-cart-summary-block-dependency +++ /dev/null @@ -1,5 +0,0 @@ -Significance: patch -Type: fix -Comment: Minor update to a script dependency - - diff --git a/changelog/fix-bnpl-checkout-e2e b/changelog/fix-bnpl-checkout-e2e deleted file mode 100644 index e2c03393ec7..00000000000 --- a/changelog/fix-bnpl-checkout-e2e +++ /dev/null @@ -1,4 +0,0 @@ -Significance: minor -Type: dev - -Fix e2e tests for BNPL checkout diff --git a/changelog/fix-cached-db-cache b/changelog/fix-cached-db-cache deleted file mode 100644 index 08489888213..00000000000 --- a/changelog/fix-cached-db-cache +++ /dev/null @@ -1,4 +0,0 @@ -Significance: patch -Type: dev - -Clear WP cache on writes inside Database_Cache diff --git a/changelog/fix-check_for_session_before_calling_get b/changelog/fix-check_for_session_before_calling_get deleted file mode 100644 index 77294638062..00000000000 --- a/changelog/fix-check_for_session_before_calling_get +++ /dev/null @@ -1,4 +0,0 @@ -Significance: patch -Type: fix - -Adds a check to see if the session exists before calling get() diff --git a/changelog/fix-connect-page-double-woopay-logo b/changelog/fix-connect-page-double-woopay-logo deleted file mode 100644 index b9d685d1162..00000000000 --- a/changelog/fix-connect-page-double-woopay-logo +++ /dev/null @@ -1,4 +0,0 @@ -Significance: patch -Type: fix - -Remove extra WooPay icon on connect page diff --git a/changelog/fix-dont-register-woopay-order-webhook-if-account-rejected b/changelog/fix-dont-register-woopay-order-webhook-if-account-rejected deleted file mode 100644 index 4b92c384157..00000000000 --- a/changelog/fix-dont-register-woopay-order-webhook-if-account-rejected +++ /dev/null @@ -1,4 +0,0 @@ -Significance: minor -Type: fix - -Don't register WooPay Order Webhook if account is rejected. diff --git a/changelog/fix-dont-register-woopay-order-webhook-if-account-suspended b/changelog/fix-dont-register-woopay-order-webhook-if-account-suspended deleted file mode 100644 index c94249964a7..00000000000 --- a/changelog/fix-dont-register-woopay-order-webhook-if-account-suspended +++ /dev/null @@ -1,4 +0,0 @@ -Significance: minor -Type: fix - -Don't register WooPay Order Webhook if account is under review. diff --git a/changelog/fix-filesystem-phpcs-reports b/changelog/fix-filesystem-phpcs-reports deleted file mode 100644 index a1c595cdc25..00000000000 --- a/changelog/fix-filesystem-phpcs-reports +++ /dev/null @@ -1,4 +0,0 @@ -Significance: patch -Type: dev - -Ignore alternative function WordPress PHPCS sniffs in the GH workflows and tests diff --git a/changelog/fix-infinite-recursive-call-for-price-decimal-separator-filter b/changelog/fix-infinite-recursive-call-for-price-decimal-separator-filter deleted file mode 100644 index 6640f60b768..00000000000 --- a/changelog/fix-infinite-recursive-call-for-price-decimal-separator-filter +++ /dev/null @@ -1,4 +0,0 @@ -Significance: patch -Type: fix - -Ensure we avoid an infinite recursive call stack through 'wc_get_price_decimal_separator' filter. diff --git a/changelog/fix-infinite-recursive-call-for-price-decimal-separator-filter-2 b/changelog/fix-infinite-recursive-call-for-price-decimal-separator-filter-2 deleted file mode 100644 index a634a66c8b3..00000000000 --- a/changelog/fix-infinite-recursive-call-for-price-decimal-separator-filter-2 +++ /dev/null @@ -1,5 +0,0 @@ -Significance: patch -Type: fix -Comment: This supplements a previous fix - - diff --git a/changelog/fix-merchant-onboarding-e2e-tests b/changelog/fix-merchant-onboarding-e2e-tests deleted file mode 100644 index eacd11cf992..00000000000 --- a/changelog/fix-merchant-onboarding-e2e-tests +++ /dev/null @@ -1,5 +0,0 @@ -Significance: patch -Type: dev -Comment: Fixing the merchant e2e tests. - - diff --git a/changelog/fix-migrate-woopay-skipped-tracks-event b/changelog/fix-migrate-woopay-skipped-tracks-event deleted file mode 100644 index 15efc072995..00000000000 --- a/changelog/fix-migrate-woopay-skipped-tracks-event +++ /dev/null @@ -1,5 +0,0 @@ -Significance: patch -Type: dev -Comment: Complete WooPay Tracks event migration and cleanup migration related code - - diff --git a/changelog/fix-multi-currency-phpcs-notices b/changelog/fix-multi-currency-phpcs-notices deleted file mode 100644 index 0910cb5ae43..00000000000 --- a/changelog/fix-multi-currency-phpcs-notices +++ /dev/null @@ -1,4 +0,0 @@ -Significance: patch -Type: dev - -Escaping error logs and ignoring noticese where there are no issues. diff --git a/changelog/fix-optional-zip b/changelog/fix-optional-zip deleted file mode 100644 index fbb0a99fa6b..00000000000 --- a/changelog/fix-optional-zip +++ /dev/null @@ -1,4 +0,0 @@ -Significance: patch -Type: fix - -Fixed optional billing field validation diff --git a/changelog/fix-phpcs-reports-checkout b/changelog/fix-phpcs-reports-checkout deleted file mode 100644 index fec35b4db10..00000000000 --- a/changelog/fix-phpcs-reports-checkout +++ /dev/null @@ -1,4 +0,0 @@ -Significance: patch -Type: fix - -Address PHPCS reports in checkout classes. diff --git a/changelog/fix-puerto-rico-incorrect-warning b/changelog/fix-puerto-rico-incorrect-warning deleted file mode 100644 index 857293e7b73..00000000000 --- a/changelog/fix-puerto-rico-incorrect-warning +++ /dev/null @@ -1,4 +0,0 @@ -Significance: patch -Type: fix - -Fix an incorrect warning about Puerto Rico being unsupported by WooPayments diff --git a/changelog/fix-register-pmme-bnpl-enabled b/changelog/fix-register-pmme-bnpl-enabled deleted file mode 100644 index 41ca8ac9065..00000000000 --- a/changelog/fix-register-pmme-bnpl-enabled +++ /dev/null @@ -1,4 +0,0 @@ -Significance: patch -Type: fix - -Defensive check for cart block PMME which hasn't yet been deployed. diff --git a/changelog/fix-remove-unused-file b/changelog/fix-remove-unused-file deleted file mode 100644 index fb464b062ca..00000000000 --- a/changelog/fix-remove-unused-file +++ /dev/null @@ -1,5 +0,0 @@ -Significance: patch -Type: dev -Comment: Removed unused file. - - diff --git a/changelog/fix-subscription-billing-fields b/changelog/fix-subscription-billing-fields deleted file mode 100644 index db44f9a2487..00000000000 --- a/changelog/fix-subscription-billing-fields +++ /dev/null @@ -1,4 +0,0 @@ -Significance: patch -Type: fix - -Fixed billing address error for subscription without some billing details diff --git a/changelog/fix-woopay-direct-checkout-button-loading-spinner-spacing b/changelog/fix-woopay-direct-checkout-button-loading-spinner-spacing deleted file mode 100644 index a93c5764865..00000000000 --- a/changelog/fix-woopay-direct-checkout-button-loading-spinner-spacing +++ /dev/null @@ -1,4 +0,0 @@ -Significance: patch -Type: fix - -Ensure "Proceed to checkout" button's loading spinner doesn't affect button spacing when Direct Checkout is enabled. diff --git a/changelog/refactor-8389-remove-unwanted-css-classes b/changelog/refactor-8389-remove-unwanted-css-classes deleted file mode 100644 index 18c2baba5ba..00000000000 --- a/changelog/refactor-8389-remove-unwanted-css-classes +++ /dev/null @@ -1,4 +0,0 @@ -Significance: patch -Type: update - -Remove unwanted css overrides on the Payment activity widget wrapper diff --git a/changelog/refactor-payments-activity-tiles-ui b/changelog/refactor-payments-activity-tiles-ui deleted file mode 100644 index ac05f40a3b8..00000000000 --- a/changelog/refactor-payments-activity-tiles-ui +++ /dev/null @@ -1,4 +0,0 @@ -Significance: patch -Type: dev - -Changes are not user facing, behind a feature flag. Refactor - tooltip component flattened in place, instead of calling it from a separate file. diff --git a/changelog/refactor-shortcode-checkout-wp-data-dependency b/changelog/refactor-shortcode-checkout-wp-data-dependency deleted file mode 100644 index d7ad0858363..00000000000 --- a/changelog/refactor-shortcode-checkout-wp-data-dependency +++ /dev/null @@ -1,4 +0,0 @@ -Significance: patch -Type: dev - -refactor: reduce wp-data dependency on shortcode checkout diff --git a/changelog/remove-dependency-wordpress-data b/changelog/remove-dependency-wordpress-data deleted file mode 100644 index 6b01a0f8706..00000000000 --- a/changelog/remove-dependency-wordpress-data +++ /dev/null @@ -1,4 +0,0 @@ -Significance: patch -Type: update - -Remove @wordpress/data dependency in the email input iframe file diff --git a/changelog/replace-deprecated-input-filter-constant b/changelog/replace-deprecated-input-filter-constant deleted file mode 100644 index f46c7820dfa..00000000000 --- a/changelog/replace-deprecated-input-filter-constant +++ /dev/null @@ -1,4 +0,0 @@ -Significance: minor -Type: update - -Replace deprecated filter. diff --git a/changelog/tweak-revert-phpcs-update-revert-pr b/changelog/tweak-revert-phpcs-update-revert-pr deleted file mode 100644 index 4835ea31aca..00000000000 --- a/changelog/tweak-revert-phpcs-update-revert-pr +++ /dev/null @@ -1,4 +0,0 @@ -Significance: patch -Type: dev - -Updated PHPCS and sniffs used for static analysis diff --git a/changelog/update-8447-always-redirect-to-payment-connect b/changelog/update-8447-always-redirect-to-payment-connect deleted file mode 100644 index 3d444a3ff72..00000000000 --- a/changelog/update-8447-always-redirect-to-payment-connect +++ /dev/null @@ -1,4 +0,0 @@ -Significance: patch -Type: update - -Update MOX cancellation to consistently redirect back to the payment connect page. diff --git a/changelog/update-8449-change-overview-sandbox-mode-notice b/changelog/update-8449-change-overview-sandbox-mode-notice deleted file mode 100644 index e4784827489..00000000000 --- a/changelog/update-8449-change-overview-sandbox-mode-notice +++ /dev/null @@ -1,4 +0,0 @@ -Significance: minor -Type: update - -Reduce the visual footprint of the sandbox mode notice. diff --git a/changelog/update-8573-switch-links-to-woocommerce-com-domain b/changelog/update-8573-switch-links-to-woocommerce-com-domain deleted file mode 100644 index bc20c707e27..00000000000 --- a/changelog/update-8573-switch-links-to-woocommerce-com-domain +++ /dev/null @@ -1,4 +0,0 @@ -Significance: minor -Type: update - -Update links across the plugin from woo.com to woocommerce.com (previous platform HQ URL). diff --git a/changelog/update-8580-discover-and-diners-logos b/changelog/update-8580-discover-and-diners-logos deleted file mode 100644 index cfa29566e17..00000000000 --- a/changelog/update-8580-discover-and-diners-logos +++ /dev/null @@ -1,4 +0,0 @@ -Significance: patch -Type: update - -Update Discover and Diners logos diff --git a/changelog/update-link-by-stripe-logo b/changelog/update-link-by-stripe-logo deleted file mode 100644 index d260b81112a..00000000000 --- a/changelog/update-link-by-stripe-logo +++ /dev/null @@ -1,4 +0,0 @@ -Significance: minor -Type: update - -Updated Link by Stripe logo diff --git a/changelog/update-proceed-to-checkout-tracking b/changelog/update-proceed-to-checkout-tracking deleted file mode 100644 index 585b2dbb184..00000000000 --- a/changelog/update-proceed-to-checkout-tracking +++ /dev/null @@ -1,5 +0,0 @@ -Significance: patch -Type: dev -Comment: Update "Proceed to checkout" tracking to take the skip_woopay cookie into account. - - diff --git a/package-lock.json b/package-lock.json index 25eefb9d521..afb8b6a46ab 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "woocommerce-payments", - "version": "7.4.0", + "version": "7.5.0", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "woocommerce-payments", - "version": "7.4.0", + "version": "7.5.0", "hasInstallScript": true, "license": "GPL-3.0-or-later", "dependencies": { diff --git a/package.json b/package.json index a2c1870eec9..af425be8173 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "woocommerce-payments", - "version": "7.4.0", + "version": "7.5.0", "main": "webpack.config.js", "author": "Automattic", "license": "GPL-3.0-or-later", diff --git a/readme.txt b/readme.txt index f24b4f75cae..c7f0fc385ad 100644 --- a/readme.txt +++ b/readme.txt @@ -4,7 +4,7 @@ Tags: woocommerce payments, apple pay, credit card, google pay, payment, payment Requires at least: 6.0 Tested up to: 6.4 Requires PHP: 7.3 -Stable tag: 7.4.0 +Stable tag: 7.5.0 License: GPLv2 or later License URI: http://www.gnu.org/licenses/gpl-2.0.html @@ -94,6 +94,72 @@ Please note that our support for the checkout block is still experimental and th == Changelog == += 7.5.0 - 2024-04-17 = +* Add - Add a parent wrapper component for Payment Activity widget. This will be visible on the Payments Overview page +* Add - Add a task on WooCommerce Home page to remind accounts operating in sandbox mode to set up live payments. +* Add - Add BNPL messaging to cart page. +* Add - Add BNPL terms to checkout payment methods. +* Add - Added support to Cartes Bancaires +* Add - Adding a tracking event for external redirects to finish setup and start receiving deposits. +* Add - Add Multi-Currency Support to Page Caching via Cookies. +* Add - Extend 'skip WooPay' flag to user session. +* Add - feat: BNPL April announcement. +* Add - Improve payment settings UX. +* Add - Not user-facing: hidden behind feature flag. Add an empty state view for the Payments Activity widget. This is shown when the merchant is yet to have any transactions over WooPayments. +* Add - Not user facing - Changes are behind a feature flag. Adds the basic UI scaffold for the Payments Activity widget. +* Add - Prepopulate Vertical selection in the onboarding form based on Woo Core selection. +* Fix - Add an instructive error message when customer tries to use 2 different currencies for Stripe Billing subscriptions. +* Fix - Address PHPCS reports in checkout classes. +* Fix - Adds a check to see if the session exists before calling get() +* Fix - Change IP country rule after country settings are changed in WC settings page +* Fix - Defensive check for cart block PMME which hasn't yet been deployed. +* Fix - Don't register WooPay Order Webhook if account is rejected. +* Fix - Don't register WooPay Order Webhook if account is under review. +* Fix - Ensure "Proceed to checkout" button's loading spinner doesn't affect button spacing when Direct Checkout is enabled. +* Fix - Ensure that the currency configurations are set correctly when multi-currency is enabled. +* Fix - Ensure we avoid an infinite recursive call stack through 'wc_get_price_decimal_separator' filter. +* Fix - fix: error message on 402 status code +* Fix - Fix an incorrect warning about Puerto Rico being unsupported by WooPayments +* Fix - Fix collision between WooPayments header and Woo Express survey banner. +* Fix - Fix Decline button state for Accept loading on ToS modal +* Fix - Fixed Afterpay logo size on settings page +* Fix - Fixed billing address error for subscription without some billing details +* Fix - Fixed optional billing field validation +* Fix - Fix Fatal Error showing when connect to Jetpack on localhost +* Fix - Fix JS error when clicking GPay button on blocks checkout with subscription (w/sign up fee) in cart. +* Fix - Fix payment icons on connect page (Klarna, Afterpay) +* Fix - Hide account tools finish setup button for accounts completed the KYC and change it's link to Stripe KYC instead of the Stripe Express. +* Fix - Remove extra WooPay icon on connect page +* Fix - Remove incorrect "UTC" label from the time column of Transactions page +* Fix - Remove redundant message after the account is onboarded +* Fix - Sync discount brakedown with how server processes it +* Update - Adding a tracking event for external redirects to update account details, more consistent behaviour for redirects. +* Update - Cleanup unused payment confirmation code. +* Update - Reduce the visual footprint of the sandbox mode notice. +* Update - Remove @wordpress/data dependency in the email input iframe file +* Update - Remove ToS acceptance copy from all entrypoints in MOX +* Update - Remove unwanted css overrides on the Payment activity widget wrapper +* Update - Replace deprecated filter. +* Update - Update Discover and Diners logos +* Update - Updated Link by Stripe logo +* Update - Update links across the plugin from woo.com to woocommerce.com (previous platform HQ URL). +* Update - Update MOX cancellation to consistently redirect back to the payment connect page. +* Dev - Address update PHPCS error - a single one recommending escaping an exception message +* Dev - Add TypeScript development guidelines +* Dev - Add VariableAnalysis sniffs for better ergonomics around unused and undefined variables +* Dev - Changes are not user facing, behind a feature flag. Refactor - tooltip component flattened in place, instead of calling it from a separate file. +* Dev - Clear WP cache on writes inside Database_Cache +* Dev - Escaping error logs and ignoring noticese where there are no issues. +* Dev - Fix e2e tests for BNPL checkout +* Dev - Fixed phpcs errors +* Dev - Fixes to comply with updates to PHPCS linter. +* Dev - Ignore alternative function WordPress PHPCS sniffs in the GH workflows and tests +* Dev - Increase unit test coverage for WooPay direct checkout flow. +* Dev - Payments Activity - add scaffolding for Total Payment Volume. +* Dev - refactor: reduce wp-data dependency on shortcode checkout +* Dev - Updated PHPCS and sniffs used for static analysis +* Dev - Updates to remove deprecated function usage in the Jetpack Connection manager. Doesn't affect functionality. + = 7.4.0 - 2024-03-27 = * Add - Add account reset for sandboxes * Add - Add a loading spinner to the "Proceed to Checkout" button in shortcode cart. diff --git a/woocommerce-payments.php b/woocommerce-payments.php index 13540148710..d8f723d006d 100644 --- a/woocommerce-payments.php +++ b/woocommerce-payments.php @@ -11,7 +11,7 @@ * WC tested up to: 8.7.0 * Requires at least: 6.0 * Requires PHP: 7.3 - * Version: 7.4.0 + * Version: 7.5.0 * Requires Plugins: woocommerce * * @package WooCommerce\Payments From e0e62ff755a979aa4b0a5a6e972c0905354f564a Mon Sep 17 00:00:00 2001 From: Matt Allan Date: Mon, 15 Apr 2024 08:02:20 +1000 Subject: [PATCH 2/6] Fixes "Invalid recurring shipping method" errors when purchasing multiple subscriptions with Apple / Google Pay (#8618) --- ...8029-prb-invalid-recurring-shipping-method | 4 ++ ...ayments-payment-request-button-handler.php | 40 ++++++++++++++++++- psalm-baseline.xml | 4 +- 3 files changed, 44 insertions(+), 4 deletions(-) create mode 100644 changelog/fix-8029-prb-invalid-recurring-shipping-method diff --git a/changelog/fix-8029-prb-invalid-recurring-shipping-method b/changelog/fix-8029-prb-invalid-recurring-shipping-method new file mode 100644 index 00000000000..2dd0f954958 --- /dev/null +++ b/changelog/fix-8029-prb-invalid-recurring-shipping-method @@ -0,0 +1,4 @@ +Significance: minor +Type: fix + +Resolves "Invalid recurring shipping method" errors when purchasing multiple subscriptions with Apple Pay and Google Pay. diff --git a/includes/class-wc-payments-payment-request-button-handler.php b/includes/class-wc-payments-payment-request-button-handler.php index 92ce89c7b94..d4f8c568a87 100644 --- a/includes/class-wc-payments-payment-request-button-handler.php +++ b/includes/class-wc-payments-payment-request-button-handler.php @@ -893,7 +893,7 @@ public function get_shipping_options( $shipping_address, $itemized_display_items $data = []; // Remember current shipping method before resetting. - $chosen_shipping_methods = WC()->session->get( 'chosen_shipping_methods' ); + $chosen_shipping_methods = WC()->session->get( 'chosen_shipping_methods', [] ); $this->calculate_shipping( apply_filters( 'wcpay_payment_request_shipping_posted_values', $shipping_address ) ); $packages = WC()->shipping->get_packages(); @@ -943,6 +943,8 @@ public function get_shipping_options( $shipping_address, $itemized_display_items WC()->cart->calculate_totals(); + $this->maybe_restore_recurring_chosen_shipping_methods( $chosen_shipping_methods ); + $data += $this->express_checkout_helper->build_display_items( $itemized_display_items ); $data['result'] = 'success'; } catch ( Exception $e ) { @@ -1507,4 +1509,40 @@ private function get_taxes_like_cart( $product, $price ) { // Normally there should be a single tax, but `calc_tax` returns an array, let's use it. return WC_Tax::calc_tax( $price, $rates, false ); } + + /** + * Restores the shipping methods previously chosen for each recurring cart after shipping was reset and recalculated + * during the Payment Request get_shipping_options flow. + * + * When the cart contains multiple subscriptions with different billing periods, customers are able to select different shipping + * methods for each subscription, however, this is not supported when purchasing with Apple Pay and Google Pay as it's + * only concerned about handling the initial purchase. + * + * In order to avoid Woo Subscriptions's `WC_Subscriptions_Cart::validate_recurring_shipping_methods` throwing an error, we need to restore + * the previously chosen shipping methods for each recurring cart. + * + * This function needs to be called after `WC()->cart->calculate_totals()` is run, otherwise `WC()->cart->recurring_carts` won't exist yet. + * + * @param array $previous_chosen_methods The previously chosen shipping methods. + */ + private function maybe_restore_recurring_chosen_shipping_methods( $previous_chosen_methods = [] ) { + if ( empty( WC()->cart->recurring_carts ) || ! method_exists( 'WC_Subscriptions_Cart', 'get_recurring_shipping_package_key' ) ) { + return; + } + + $chosen_shipping_methods = WC()->session->get( 'chosen_shipping_methods', [] ); + + foreach ( WC()->cart->recurring_carts as $recurring_cart_key => $recurring_cart ) { + foreach ( $recurring_cart->get_shipping_packages() as $recurring_cart_package_index => $recurring_cart_package ) { + $package_key = WC_Subscriptions_Cart::get_recurring_shipping_package_key( $recurring_cart_key, $recurring_cart_package_index ); + + // If the recurring cart package key is found in the previous chosen methods, but not in the current chosen methods, restore it. + if ( isset( $previous_chosen_methods[ $package_key ] ) && ! isset( $chosen_shipping_methods[ $package_key ] ) ) { + $chosen_shipping_methods[ $package_key ] = $previous_chosen_methods[ $package_key ]; + } + } + } + + WC()->session->set( 'chosen_shipping_methods', $chosen_shipping_methods ); + } } diff --git a/psalm-baseline.xml b/psalm-baseline.xml index ecb5ea1088e..17038230df6 100644 --- a/psalm-baseline.xml +++ b/psalm-baseline.xml @@ -25,11 +25,9 @@ - + WC_Pre_Orders_Product WC_Subscriptions_Product - WC_Subscriptions_Product - WC_Subscriptions_Cart WC_Subscriptions_Cart From 9a93ac2246bfc1ccab6827d8a32d6c1939fd3d3a Mon Sep 17 00:00:00 2001 From: mattallan Date: Mon, 15 Apr 2024 08:15:14 +1000 Subject: [PATCH 3/6] Update changelog to include cherry-picked commit --- changelog.txt | 1 + changelog/fix-8029-prb-invalid-recurring-shipping-method | 4 ---- readme.txt | 1 + 3 files changed, 2 insertions(+), 4 deletions(-) delete mode 100644 changelog/fix-8029-prb-invalid-recurring-shipping-method diff --git a/changelog.txt b/changelog.txt index 05dfdda0c0b..181f2d6b5c7 100644 --- a/changelog.txt +++ b/changelog.txt @@ -39,6 +39,7 @@ * Fix - Remove incorrect "UTC" label from the time column of Transactions page * Fix - Remove redundant message after the account is onboarded * Fix - Sync discount brakedown with how server processes it +* Fix - Resolves "Invalid recurring shipping method" errors when purchasing multiple subscriptions with Apple Pay and Google Pay. * Update - Adding a tracking event for external redirects to update account details, more consistent behaviour for redirects. * Update - Cleanup unused payment confirmation code. * Update - Reduce the visual footprint of the sandbox mode notice. diff --git a/changelog/fix-8029-prb-invalid-recurring-shipping-method b/changelog/fix-8029-prb-invalid-recurring-shipping-method deleted file mode 100644 index 2dd0f954958..00000000000 --- a/changelog/fix-8029-prb-invalid-recurring-shipping-method +++ /dev/null @@ -1,4 +0,0 @@ -Significance: minor -Type: fix - -Resolves "Invalid recurring shipping method" errors when purchasing multiple subscriptions with Apple Pay and Google Pay. diff --git a/readme.txt b/readme.txt index c7f0fc385ad..c0b553d93c5 100644 --- a/readme.txt +++ b/readme.txt @@ -133,6 +133,7 @@ Please note that our support for the checkout block is still experimental and th * Fix - Remove incorrect "UTC" label from the time column of Transactions page * Fix - Remove redundant message after the account is onboarded * Fix - Sync discount brakedown with how server processes it +* Fix - Resolves "Invalid recurring shipping method" errors when purchasing multiple subscriptions with Apple Pay and Google Pay. * Update - Adding a tracking event for external redirects to update account details, more consistent behaviour for redirects. * Update - Cleanup unused payment confirmation code. * Update - Reduce the visual footprint of the sandbox mode notice. From 10d107a5afe6b87adf16be349c8fd8a50ea41e1a Mon Sep 17 00:00:00 2001 From: Brett Shumaker Date: Tue, 16 Apr 2024 12:00:07 -0400 Subject: [PATCH 4/6] Only try to load Stripe's PaymentMethodMessagingElement on supported methods on block checkout (#8648) --- changelog/fix-only-try-to-load-pmme-on-bnpl-methods | 5 +++++ client/checkout/blocks/payment-method-label.js | 5 ++--- 2 files changed, 7 insertions(+), 3 deletions(-) create mode 100644 changelog/fix-only-try-to-load-pmme-on-bnpl-methods diff --git a/changelog/fix-only-try-to-load-pmme-on-bnpl-methods b/changelog/fix-only-try-to-load-pmme-on-bnpl-methods new file mode 100644 index 00000000000..7650d5ca075 --- /dev/null +++ b/changelog/fix-only-try-to-load-pmme-on-bnpl-methods @@ -0,0 +1,5 @@ +Significance: patch +Type: fix +Comment: This is a quick fix to another item already in the changelog. + + diff --git a/client/checkout/blocks/payment-method-label.js b/client/checkout/blocks/payment-method-label.js index a97385df9ed..35cb4e019fa 100644 --- a/client/checkout/blocks/payment-method-label.js +++ b/client/checkout/blocks/payment-method-label.js @@ -15,6 +15,7 @@ export default ( { upeAppearanceTheme, } ) => { const cartData = wp.data.select( 'wc/store/cart' ).getCartData(); + const bnplMethods = [ 'affirm', 'afterpay_clearpay', 'klarna' ]; // Stripe expects the amount to be sent as the minor unit of 2 digits. const amount = normalizeCurrencyToMinorUnit( @@ -27,13 +28,11 @@ export default ( { cartData.billingAddress.country || window.wcBlocksCheckoutData.storeCountry; - // console.log( currentCountry ); - return ( <> { upeConfig.title } - { upeName !== 'card' && + { bnplMethods.includes( upeName ) && ( upeConfig.countries.length === 0 || upeConfig.countries.includes( currentCountry ) ) && ( <> From 50eec9a5bb809984a3520cb23c30fe3968cebc3d Mon Sep 17 00:00:00 2001 From: elazzabi Date: Tue, 16 Apr 2024 17:14:17 +0100 Subject: [PATCH 5/6] Remove changelog after cherry-pick --- changelog/fix-only-try-to-load-pmme-on-bnpl-methods | 5 ----- 1 file changed, 5 deletions(-) delete mode 100644 changelog/fix-only-try-to-load-pmme-on-bnpl-methods diff --git a/changelog/fix-only-try-to-load-pmme-on-bnpl-methods b/changelog/fix-only-try-to-load-pmme-on-bnpl-methods deleted file mode 100644 index 7650d5ca075..00000000000 --- a/changelog/fix-only-try-to-load-pmme-on-bnpl-methods +++ /dev/null @@ -1,5 +0,0 @@ -Significance: patch -Type: fix -Comment: This is a quick fix to another item already in the changelog. - - From 4b1eab26fb2aae7ba3bbd5eba387d9d90e99c2e0 Mon Sep 17 00:00:00 2001 From: botwoo Date: Wed, 17 Apr 2024 09:19:47 +0000 Subject: [PATCH 6/6] Amend changelog entries for release 7.5.0 --- changelog.txt | 2 +- readme.txt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/changelog.txt b/changelog.txt index 181f2d6b5c7..c6f3bae6a64 100644 --- a/changelog.txt +++ b/changelog.txt @@ -38,8 +38,8 @@ * Fix - Remove extra WooPay icon on connect page * Fix - Remove incorrect "UTC" label from the time column of Transactions page * Fix - Remove redundant message after the account is onboarded -* Fix - Sync discount brakedown with how server processes it * Fix - Resolves "Invalid recurring shipping method" errors when purchasing multiple subscriptions with Apple Pay and Google Pay. +* Fix - Sync discount brakedown with how server processes it * Update - Adding a tracking event for external redirects to update account details, more consistent behaviour for redirects. * Update - Cleanup unused payment confirmation code. * Update - Reduce the visual footprint of the sandbox mode notice. diff --git a/readme.txt b/readme.txt index c0b553d93c5..162f79dfa88 100644 --- a/readme.txt +++ b/readme.txt @@ -132,8 +132,8 @@ Please note that our support for the checkout block is still experimental and th * Fix - Remove extra WooPay icon on connect page * Fix - Remove incorrect "UTC" label from the time column of Transactions page * Fix - Remove redundant message after the account is onboarded -* Fix - Sync discount brakedown with how server processes it * Fix - Resolves "Invalid recurring shipping method" errors when purchasing multiple subscriptions with Apple Pay and Google Pay. +* Fix - Sync discount brakedown with how server processes it * Update - Adding a tracking event for external redirects to update account details, more consistent behaviour for redirects. * Update - Cleanup unused payment confirmation code. * Update - Reduce the visual footprint of the sandbox mode notice.