From b5daf886e24717e8fca8ce630ab2e67abd12529d Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Sun, 23 Feb 2025 12:10:00 +0000 Subject: [PATCH 1/4] Update version and add changelog entries for release 9.0.0 --- changelog.txt | 54 ++++++++++++++++++ changelog/add-10102-wechat-pay-settings | 4 -- ...0382-adds-store-id-to-tracker-request-body | 4 -- ...0390-stripe-notifications-component-loader | 4 -- ...d-4606-e2e-for-currency-switch-at-checkout | 4 -- ...-account-notifs-component-on-overview-page | 4 -- .../add-9826-payment-methods-logos-component | 4 -- changelog/add-cache-wc-orders | 4 -- changelog/add-grabpay-checkout | 4 -- changelog/add-grabpay-pm-details | 4 -- changelog/add-grabpay-settings | 4 -- .../add-pass-business-name-express-checkout | 4 -- changelog/add-wechat-checkout-support | 4 -- changelog/chore-remove-unused-strings-file | 5 -- changelog/cleanup-new-payment-process | 4 -- changelog/dev-10237-e2e-critical-flow-tag | 4 -- .../dev-10238-update-e2e-tests-all-workflow | 4 -- changelog/dev-10240-update-npm-scripts | 4 -- .../dev-10241-remove-puppeteer-references | 4 -- .../dev-10334-update-playwright-e2e-docs | 4 -- changelog/dev-10339-wcb-checkout | 4 -- .../dev-10355-playwright-slack-integration | 4 -- ...test-non-admin-users-can-login-to-wp-admin | 4 -- ...2e-pw-setup-script-permissions-and-project | 4 -- .../feat-add-order-notes-to-tokenized-ece | 4 -- changelog/feat-alipay-settings-support | 4 -- ...at-enable-tokenized-ece-by-default-round-2 | 4 -- .../feat-tokenized-ece-account-meta-control | 5 -- ...ix-10046-set-orderby-none-for-exist-checks | 4 -- ...-10220-multi-currency-widget-markup-getter | 4 -- .../fix-10228-undefined-array-key-warning | 4 -- changelog/fix-10356-update-export-snackbar | 5 -- ...-10379-woo-logo-size-test-drive-onboarding | 4 -- changelog/fix-10393-frt-advanced-settings | 4 -- ...criptions-deactivated-due-outdated-version | 4 -- ...nt-querying-stripe-billing-every-page-load | 4 -- changelog/fix-add-payment-method-rate-limit | 4 -- changelog/fix-astra-theme-card-number | 4 -- changelog/fix-double-icon-borders | 5 -- changelog/fix-missed-woo-colors | 4 -- ...rbs-gateway-scope-for-duplicates-detection | 4 -- changelog/fix-redundant-pmme-init | 4 -- .../fix-tokenized-ece-attribute-selection | 4 -- .../fix-tokenized-ece-bundles-improvements | 4 -- ...x-tokenized-ece-rounding-of-itemized-items | 4 -- changelog/fix-woopay-opt-in-race-condition | 4 -- .../patch-disable-tokenised-carts-by-default | 4 -- ...pdate-10256-extract-account-settings-logic | 4 -- changelog/update-10317 | 4 -- ...date-10317-change-reset-account-modal-copy | 4 -- ...bar-when-user-updates-kyc-on-overview-page | 4 -- ...e-7188-immediate-csv-download-for-disputes | 5 -- changelog/update-9969-poll-async-job | 4 -- ...update-add-handling-for-low-refund-balance | 4 -- .../update-add-min-amount-to-capture-error | 4 -- changelog/update-cards-label | 4 -- changelog/update-deposits-server-export | 5 -- changelog/update-disputes-csv-download-notice | 5 -- ...-incentives-cache-aligned-with-wc-core-one | 5 -- changelog/update-remove-NA-for-zero-amounts | 4 -- .../update-remove-card-reader-receipt-details | 4 -- ...te-terminal-controller-PR-country-handling | 4 -- package-lock.json | 4 +- package.json | 2 +- readme.txt | 56 ++++++++++++++++++- woocommerce-payments.php | 2 +- 66 files changed, 113 insertions(+), 257 deletions(-) delete mode 100644 changelog/add-10102-wechat-pay-settings delete mode 100644 changelog/add-10382-adds-store-id-to-tracker-request-body delete mode 100644 changelog/add-10390-stripe-notifications-component-loader delete mode 100644 changelog/add-4606-e2e-for-currency-switch-at-checkout delete mode 100644 changelog/add-9128-account-notifs-component-on-overview-page delete mode 100644 changelog/add-9826-payment-methods-logos-component delete mode 100644 changelog/add-cache-wc-orders delete mode 100644 changelog/add-grabpay-checkout delete mode 100644 changelog/add-grabpay-pm-details delete mode 100644 changelog/add-grabpay-settings delete mode 100644 changelog/add-pass-business-name-express-checkout delete mode 100644 changelog/add-wechat-checkout-support delete mode 100644 changelog/chore-remove-unused-strings-file delete mode 100644 changelog/cleanup-new-payment-process delete mode 100644 changelog/dev-10237-e2e-critical-flow-tag delete mode 100644 changelog/dev-10238-update-e2e-tests-all-workflow delete mode 100644 changelog/dev-10240-update-npm-scripts delete mode 100644 changelog/dev-10241-remove-puppeteer-references delete mode 100644 changelog/dev-10334-update-playwright-e2e-docs delete mode 100644 changelog/dev-10339-wcb-checkout delete mode 100644 changelog/dev-10355-playwright-slack-integration delete mode 100644 changelog/dev-5101-add-e2e-test-non-admin-users-can-login-to-wp-admin delete mode 100644 changelog/dev-e2e-pw-setup-script-permissions-and-project delete mode 100644 changelog/feat-add-order-notes-to-tokenized-ece delete mode 100644 changelog/feat-alipay-settings-support delete mode 100644 changelog/feat-enable-tokenized-ece-by-default-round-2 delete mode 100644 changelog/feat-tokenized-ece-account-meta-control delete mode 100644 changelog/fix-10046-set-orderby-none-for-exist-checks delete mode 100644 changelog/fix-10220-multi-currency-widget-markup-getter delete mode 100644 changelog/fix-10228-undefined-array-key-warning delete mode 100644 changelog/fix-10356-update-export-snackbar delete mode 100644 changelog/fix-10379-woo-logo-size-test-drive-onboarding delete mode 100644 changelog/fix-10393-frt-advanced-settings delete mode 100644 changelog/fix-5623-handle-fatal-errors-on-wc-subscriptions-deactivated-due-outdated-version delete mode 100644 changelog/fix-9717-prevent-querying-stripe-billing-every-page-load delete mode 100644 changelog/fix-add-payment-method-rate-limit delete mode 100644 changelog/fix-astra-theme-card-number delete mode 100644 changelog/fix-double-icon-borders delete mode 100644 changelog/fix-missed-woo-colors delete mode 100644 changelog/fix-prbs-gateway-scope-for-duplicates-detection delete mode 100644 changelog/fix-redundant-pmme-init delete mode 100644 changelog/fix-tokenized-ece-attribute-selection delete mode 100644 changelog/fix-tokenized-ece-bundles-improvements delete mode 100644 changelog/fix-tokenized-ece-rounding-of-itemized-items delete mode 100644 changelog/fix-woopay-opt-in-race-condition delete mode 100644 changelog/patch-disable-tokenised-carts-by-default delete mode 100644 changelog/update-10256-extract-account-settings-logic delete mode 100644 changelog/update-10317 delete mode 100644 changelog/update-10317-change-reset-account-modal-copy delete mode 100644 changelog/update-10391-snackbar-when-user-updates-kyc-on-overview-page delete mode 100644 changelog/update-7188-immediate-csv-download-for-disputes delete mode 100644 changelog/update-9969-poll-async-job delete mode 100644 changelog/update-add-handling-for-low-refund-balance delete mode 100644 changelog/update-add-min-amount-to-capture-error delete mode 100644 changelog/update-cards-label delete mode 100644 changelog/update-deposits-server-export delete mode 100644 changelog/update-disputes-csv-download-notice delete mode 100644 changelog/update-incentives-cache-aligned-with-wc-core-one delete mode 100644 changelog/update-remove-NA-for-zero-amounts delete mode 100644 changelog/update-remove-card-reader-receipt-details delete mode 100644 changelog/update-terminal-controller-PR-country-handling diff --git a/changelog.txt b/changelog.txt index ada748198a4..8b88367aad1 100644 --- a/changelog.txt +++ b/changelog.txt @@ -1,5 +1,59 @@ *** WooPayments Changelog *** += 9.0.0 - 2025-02-26 = +* Add - Add E2E tests for currency switching at checkout. +* Add - Add GrabPay payment method details to the View Transaction page. +* Add - Add GrabPay to the settings page when eligible. +* Add - Add loader indication for Stripe notifications banner component +* Add - Add payment method logos to checkout block card label. +* Add - Adds store_id property to body of WooPay tracker events. +* Add - Add Stripe embedded account notifications component on the Overview page +* Add - Add WeChat Pay settings. +* Add - Add WeChat Pay support to checkout. +* Add - feat: add initial support for Alipay settings +* Add - feat: add order notes to tokenized ECE GooglePay/ApplePay on blocks checkout +* Add - Implement checkout for GrabPay payments. +* Add - Pass the business name to the express checkout handler. +* Fix - Avoid duplicated payment methods detection notice on new stores. +* Fix - Avoid PMME init for unavailable BNPL use-cases. +* Fix - Ensure multi-currency widget markup getter don't throw errors. +* Fix - Ensures that the tokenised cart for ECE implementation is disabled by default. +* Fix - fix: attribute selection from PDPs with tokenized ECE +* Fix - fix: tokenized ECE improvements with WC Deposits, Bookings, Bundles. +* Fix - Fixed an issue with the copy test card number on Astra theme +* Fix - Fixes thrown PHP warning in checkout config. +* Fix - Fix Stripe KYC flow Woo color +* Fix - Fix the default value of the FRT advanced options. +* Fix - Improve how Stripe Billing integration is loaded to prevent unnecessary queries on every page load. +* Fix - Prevent fatal errors when subscription is deactivated due outdated version. +* Fix - Set orderby to `none` for order queries where checking if order exists. +* Fix - Update the size of Woo logo on the test drive onboarding page. +* Update - Add a notice indicating that overview page needs to be reloaded after completing the requirements in the embedded component. +* Update - Add JSON-formatted minimum amount details to the amount too small error message. +* Update - feat: GooglePay/ApplePay refactor to leverage Store API is enabled by default - second try. +* Update - Improve CSV export experience and deliver consistent reports via async transact platform service-based CSV exports. +* Update - Remove the receipt details tab in the card readers page. +* Update - update: add payment method functionality to honor WC rate limit. +* Update - update: tokenized ECE to exclude itemized items on rounding discrepancies of totals. +* Update - Update copy in the Woopayments Reset account modal for incomplete onboarding accounts +* Update - Update Credit Card / Debit Card label to Cards +* Update - Update handling for 0 feeAmount to be consistent with details page. +* Update - Update handling for refund processing in case of insufficient funds. +* Update - Update handling of PR as a country in the terminal locations endpoint. +* Update - Update the copy in the existing modal for resetting a WooPayments account. +* Dev - Add critical tag to tests that are part of the critical flows. +* Dev - Add new E2E tests to make sure a non-admin user, such as an editor, can access the wp-admin without errors. +* Dev - Add Slack integration to Playwright E2E tests. +* Dev - Cache calls to wc_get_orders in the incentives class +* Dev - Extract the Account Session logic from Embedded components onboarding into a reusable utility hook. +* Dev - Fix potential flakiness while creating a page with the checkout block. +* Dev - Remove Puppeteer references. +* Dev - Remove routing to the partially re-engineered payment process" +* Dev - Update E2E NPM scripts. +* Dev - Update E2E readme doc. +* Dev - Update E2E setup scripts to avoid conflicts with other containers and permissions. +* Dev - Update Github actions and workflows. Change e2e tests directory structure. + = 8.9.2 - 2025-02-21 = * Fix - Fixed WooPay opt-in race condition diff --git a/changelog/add-10102-wechat-pay-settings b/changelog/add-10102-wechat-pay-settings deleted file mode 100644 index 77765968e2e..00000000000 --- a/changelog/add-10102-wechat-pay-settings +++ /dev/null @@ -1,4 +0,0 @@ -Significance: minor -Type: add - -Add WeChat Pay settings. diff --git a/changelog/add-10382-adds-store-id-to-tracker-request-body b/changelog/add-10382-adds-store-id-to-tracker-request-body deleted file mode 100644 index 86604a56579..00000000000 --- a/changelog/add-10382-adds-store-id-to-tracker-request-body +++ /dev/null @@ -1,4 +0,0 @@ -Significance: minor -Type: add - -Adds store_id property to body of WooPay tracker events. diff --git a/changelog/add-10390-stripe-notifications-component-loader b/changelog/add-10390-stripe-notifications-component-loader deleted file mode 100644 index fa5d8a35b9c..00000000000 --- a/changelog/add-10390-stripe-notifications-component-loader +++ /dev/null @@ -1,4 +0,0 @@ -Significance: patch -Type: add - -Add loader indication for Stripe notifications banner component diff --git a/changelog/add-4606-e2e-for-currency-switch-at-checkout b/changelog/add-4606-e2e-for-currency-switch-at-checkout deleted file mode 100644 index 39280bf5823..00000000000 --- a/changelog/add-4606-e2e-for-currency-switch-at-checkout +++ /dev/null @@ -1,4 +0,0 @@ -Significance: minor -Type: add - -Add E2E tests for currency switching at checkout. diff --git a/changelog/add-9128-account-notifs-component-on-overview-page b/changelog/add-9128-account-notifs-component-on-overview-page deleted file mode 100644 index 24be3ad0870..00000000000 --- a/changelog/add-9128-account-notifs-component-on-overview-page +++ /dev/null @@ -1,4 +0,0 @@ -Significance: minor -Type: add - -Add Stripe embedded account notifications component on the Overview page diff --git a/changelog/add-9826-payment-methods-logos-component b/changelog/add-9826-payment-methods-logos-component deleted file mode 100644 index 51f66c6e070..00000000000 --- a/changelog/add-9826-payment-methods-logos-component +++ /dev/null @@ -1,4 +0,0 @@ -Significance: minor -Type: add - -Add payment method logos to checkout block card label. diff --git a/changelog/add-cache-wc-orders b/changelog/add-cache-wc-orders deleted file mode 100644 index 84f5680c979..00000000000 --- a/changelog/add-cache-wc-orders +++ /dev/null @@ -1,4 +0,0 @@ -Significance: minor -Type: dev - -Cache calls to wc_get_orders in the incentives class diff --git a/changelog/add-grabpay-checkout b/changelog/add-grabpay-checkout deleted file mode 100644 index baba56b2235..00000000000 --- a/changelog/add-grabpay-checkout +++ /dev/null @@ -1,4 +0,0 @@ -Significance: minor -Type: add - -Implement checkout for GrabPay payments. diff --git a/changelog/add-grabpay-pm-details b/changelog/add-grabpay-pm-details deleted file mode 100644 index 998e68322cf..00000000000 --- a/changelog/add-grabpay-pm-details +++ /dev/null @@ -1,4 +0,0 @@ -Significance: minor -Type: add - -Add GrabPay payment method details to the View Transaction page. diff --git a/changelog/add-grabpay-settings b/changelog/add-grabpay-settings deleted file mode 100644 index 23d57644da6..00000000000 --- a/changelog/add-grabpay-settings +++ /dev/null @@ -1,4 +0,0 @@ -Significance: minor -Type: add - -Add GrabPay to the settings page when eligible. diff --git a/changelog/add-pass-business-name-express-checkout b/changelog/add-pass-business-name-express-checkout deleted file mode 100644 index f9fa1b9c63c..00000000000 --- a/changelog/add-pass-business-name-express-checkout +++ /dev/null @@ -1,4 +0,0 @@ -Significance: minor -Type: add - -Pass the business name to the express checkout handler. diff --git a/changelog/add-wechat-checkout-support b/changelog/add-wechat-checkout-support deleted file mode 100644 index e98d0d81be3..00000000000 --- a/changelog/add-wechat-checkout-support +++ /dev/null @@ -1,4 +0,0 @@ -Significance: minor -Type: add - -Add WeChat Pay support to checkout. diff --git a/changelog/chore-remove-unused-strings-file b/changelog/chore-remove-unused-strings-file deleted file mode 100644 index 190d3971f4e..00000000000 --- a/changelog/chore-remove-unused-strings-file +++ /dev/null @@ -1,5 +0,0 @@ -Significance: patch -Type: dev -Comment: chore: remove unused strings file. - - diff --git a/changelog/cleanup-new-payment-process b/changelog/cleanup-new-payment-process deleted file mode 100644 index b261fac9c5a..00000000000 --- a/changelog/cleanup-new-payment-process +++ /dev/null @@ -1,4 +0,0 @@ -Significance: minor -Type: dev - -Remove routing to the partially re-engineered payment process" diff --git a/changelog/dev-10237-e2e-critical-flow-tag b/changelog/dev-10237-e2e-critical-flow-tag deleted file mode 100644 index e54400df56f..00000000000 --- a/changelog/dev-10237-e2e-critical-flow-tag +++ /dev/null @@ -1,4 +0,0 @@ -Significance: patch -Type: dev - -Add critical tag to tests that are part of the critical flows. diff --git a/changelog/dev-10238-update-e2e-tests-all-workflow b/changelog/dev-10238-update-e2e-tests-all-workflow deleted file mode 100644 index 6861f616e0d..00000000000 --- a/changelog/dev-10238-update-e2e-tests-all-workflow +++ /dev/null @@ -1,4 +0,0 @@ -Significance: patch -Type: dev - -Update Github actions and workflows. Change e2e tests directory structure. diff --git a/changelog/dev-10240-update-npm-scripts b/changelog/dev-10240-update-npm-scripts deleted file mode 100644 index 01db8abe13c..00000000000 --- a/changelog/dev-10240-update-npm-scripts +++ /dev/null @@ -1,4 +0,0 @@ -Significance: patch -Type: dev - -Update E2E NPM scripts. diff --git a/changelog/dev-10241-remove-puppeteer-references b/changelog/dev-10241-remove-puppeteer-references deleted file mode 100644 index 632ad49d6f1..00000000000 --- a/changelog/dev-10241-remove-puppeteer-references +++ /dev/null @@ -1,4 +0,0 @@ -Significance: patch -Type: dev - -Remove Puppeteer references. diff --git a/changelog/dev-10334-update-playwright-e2e-docs b/changelog/dev-10334-update-playwright-e2e-docs deleted file mode 100644 index 462528e2345..00000000000 --- a/changelog/dev-10334-update-playwright-e2e-docs +++ /dev/null @@ -1,4 +0,0 @@ -Significance: patch -Type: dev - -Update E2E readme doc. diff --git a/changelog/dev-10339-wcb-checkout b/changelog/dev-10339-wcb-checkout deleted file mode 100644 index 7bc58aaeb5a..00000000000 --- a/changelog/dev-10339-wcb-checkout +++ /dev/null @@ -1,4 +0,0 @@ -Significance: patch -Type: dev - -Fix potential flakiness while creating a page with the checkout block. diff --git a/changelog/dev-10355-playwright-slack-integration b/changelog/dev-10355-playwright-slack-integration deleted file mode 100644 index f086727240e..00000000000 --- a/changelog/dev-10355-playwright-slack-integration +++ /dev/null @@ -1,4 +0,0 @@ -Significance: patch -Type: dev - -Add Slack integration to Playwright E2E tests. diff --git a/changelog/dev-5101-add-e2e-test-non-admin-users-can-login-to-wp-admin b/changelog/dev-5101-add-e2e-test-non-admin-users-can-login-to-wp-admin deleted file mode 100644 index 0abd141d781..00000000000 --- a/changelog/dev-5101-add-e2e-test-non-admin-users-can-login-to-wp-admin +++ /dev/null @@ -1,4 +0,0 @@ -Significance: patch -Type: dev - -Add new E2E tests to make sure a non-admin user, such as an editor, can access the wp-admin without errors. diff --git a/changelog/dev-e2e-pw-setup-script-permissions-and-project b/changelog/dev-e2e-pw-setup-script-permissions-and-project deleted file mode 100644 index 5986562ff22..00000000000 --- a/changelog/dev-e2e-pw-setup-script-permissions-and-project +++ /dev/null @@ -1,4 +0,0 @@ -Significance: patch -Type: dev - -Update E2E setup scripts to avoid conflicts with other containers and permissions. diff --git a/changelog/feat-add-order-notes-to-tokenized-ece b/changelog/feat-add-order-notes-to-tokenized-ece deleted file mode 100644 index ccd4c9ddfdd..00000000000 --- a/changelog/feat-add-order-notes-to-tokenized-ece +++ /dev/null @@ -1,4 +0,0 @@ -Significance: patch -Type: add - -feat: add order notes to tokenized ECE GooglePay/ApplePay on blocks checkout diff --git a/changelog/feat-alipay-settings-support b/changelog/feat-alipay-settings-support deleted file mode 100644 index 7742850b10c..00000000000 --- a/changelog/feat-alipay-settings-support +++ /dev/null @@ -1,4 +0,0 @@ -Significance: patch -Type: add - -feat: add initial support for Alipay settings diff --git a/changelog/feat-enable-tokenized-ece-by-default-round-2 b/changelog/feat-enable-tokenized-ece-by-default-round-2 deleted file mode 100644 index 308ab65b004..00000000000 --- a/changelog/feat-enable-tokenized-ece-by-default-round-2 +++ /dev/null @@ -1,4 +0,0 @@ -Significance: patch -Type: update - -feat: GooglePay/ApplePay refactor to leverage Store API is enabled by default - second try. diff --git a/changelog/feat-tokenized-ece-account-meta-control b/changelog/feat-tokenized-ece-account-meta-control deleted file mode 100644 index a6db28ac6e2..00000000000 --- a/changelog/feat-tokenized-ece-account-meta-control +++ /dev/null @@ -1,5 +0,0 @@ -Significance: patch -Type: dev -Comment: dev: ability to disable the Tokenized ECE via server-side flag - - diff --git a/changelog/fix-10046-set-orderby-none-for-exist-checks b/changelog/fix-10046-set-orderby-none-for-exist-checks deleted file mode 100644 index cec6f072c5c..00000000000 --- a/changelog/fix-10046-set-orderby-none-for-exist-checks +++ /dev/null @@ -1,4 +0,0 @@ -Significance: patch -Type: fix - -Set orderby to `none` for order queries where checking if order exists. diff --git a/changelog/fix-10220-multi-currency-widget-markup-getter b/changelog/fix-10220-multi-currency-widget-markup-getter deleted file mode 100644 index 6954f8a9c60..00000000000 --- a/changelog/fix-10220-multi-currency-widget-markup-getter +++ /dev/null @@ -1,4 +0,0 @@ -Significance: patch -Type: fix - -Ensure multi-currency widget markup getter don't throw errors. diff --git a/changelog/fix-10228-undefined-array-key-warning b/changelog/fix-10228-undefined-array-key-warning deleted file mode 100644 index fc43b14489c..00000000000 --- a/changelog/fix-10228-undefined-array-key-warning +++ /dev/null @@ -1,4 +0,0 @@ -Significance: minor -Type: fix - -Fixes thrown PHP warning in checkout config. diff --git a/changelog/fix-10356-update-export-snackbar b/changelog/fix-10356-update-export-snackbar deleted file mode 100644 index b7456eb67be..00000000000 --- a/changelog/fix-10356-update-export-snackbar +++ /dev/null @@ -1,5 +0,0 @@ -Significance: patch -Type: fix -Comment: This is a minor follow up task to edit the text within the export notice. - - diff --git a/changelog/fix-10379-woo-logo-size-test-drive-onboarding b/changelog/fix-10379-woo-logo-size-test-drive-onboarding deleted file mode 100644 index 5f57f5606cb..00000000000 --- a/changelog/fix-10379-woo-logo-size-test-drive-onboarding +++ /dev/null @@ -1,4 +0,0 @@ -Significance: patch -Type: fix - -Update the size of Woo logo on the test drive onboarding page. diff --git a/changelog/fix-10393-frt-advanced-settings b/changelog/fix-10393-frt-advanced-settings deleted file mode 100644 index 7fa4fd5fd2e..00000000000 --- a/changelog/fix-10393-frt-advanced-settings +++ /dev/null @@ -1,4 +0,0 @@ -Significance: patch -Type: fix - -Fix the default value of the FRT advanced options. diff --git a/changelog/fix-5623-handle-fatal-errors-on-wc-subscriptions-deactivated-due-outdated-version b/changelog/fix-5623-handle-fatal-errors-on-wc-subscriptions-deactivated-due-outdated-version deleted file mode 100644 index b3165944b4e..00000000000 --- a/changelog/fix-5623-handle-fatal-errors-on-wc-subscriptions-deactivated-due-outdated-version +++ /dev/null @@ -1,4 +0,0 @@ -Significance: patch -Type: fix - -Prevent fatal errors when subscription is deactivated due outdated version. diff --git a/changelog/fix-9717-prevent-querying-stripe-billing-every-page-load b/changelog/fix-9717-prevent-querying-stripe-billing-every-page-load deleted file mode 100644 index 0212ee60ca9..00000000000 --- a/changelog/fix-9717-prevent-querying-stripe-billing-every-page-load +++ /dev/null @@ -1,4 +0,0 @@ -Significance: minor -Type: fix - -Improve how Stripe Billing integration is loaded to prevent unnecessary queries on every page load. diff --git a/changelog/fix-add-payment-method-rate-limit b/changelog/fix-add-payment-method-rate-limit deleted file mode 100644 index 0f0199d3b6d..00000000000 --- a/changelog/fix-add-payment-method-rate-limit +++ /dev/null @@ -1,4 +0,0 @@ -Significance: patch -Type: update - -update: add payment method functionality to honor WC rate limit. diff --git a/changelog/fix-astra-theme-card-number b/changelog/fix-astra-theme-card-number deleted file mode 100644 index cbe3915270c..00000000000 --- a/changelog/fix-astra-theme-card-number +++ /dev/null @@ -1,4 +0,0 @@ -Significance: patch -Type: fix - -Fixed an issue with the copy test card number on Astra theme diff --git a/changelog/fix-double-icon-borders b/changelog/fix-double-icon-borders deleted file mode 100644 index 997c07a8c4f..00000000000 --- a/changelog/fix-double-icon-borders +++ /dev/null @@ -1,5 +0,0 @@ -Significance: patch -Type: fix -Comment: Small update to previous PR. - - diff --git a/changelog/fix-missed-woo-colors b/changelog/fix-missed-woo-colors deleted file mode 100644 index cb861cf2afb..00000000000 --- a/changelog/fix-missed-woo-colors +++ /dev/null @@ -1,4 +0,0 @@ -Significance: patch -Type: fix - -Fix Stripe KYC flow Woo color diff --git a/changelog/fix-prbs-gateway-scope-for-duplicates-detection b/changelog/fix-prbs-gateway-scope-for-duplicates-detection deleted file mode 100644 index dd3b1cf5747..00000000000 --- a/changelog/fix-prbs-gateway-scope-for-duplicates-detection +++ /dev/null @@ -1,4 +0,0 @@ -Significance: minor -Type: fix - -Avoid duplicated payment methods detection notice on new stores. diff --git a/changelog/fix-redundant-pmme-init b/changelog/fix-redundant-pmme-init deleted file mode 100644 index 0188f1bd952..00000000000 --- a/changelog/fix-redundant-pmme-init +++ /dev/null @@ -1,4 +0,0 @@ -Significance: minor -Type: fix - -Avoid PMME init for unavailable BNPL use-cases. diff --git a/changelog/fix-tokenized-ece-attribute-selection b/changelog/fix-tokenized-ece-attribute-selection deleted file mode 100644 index 8a4efea2cdb..00000000000 --- a/changelog/fix-tokenized-ece-attribute-selection +++ /dev/null @@ -1,4 +0,0 @@ -Significance: patch -Type: fix - -fix: attribute selection from PDPs with tokenized ECE diff --git a/changelog/fix-tokenized-ece-bundles-improvements b/changelog/fix-tokenized-ece-bundles-improvements deleted file mode 100644 index 6ce07421c56..00000000000 --- a/changelog/fix-tokenized-ece-bundles-improvements +++ /dev/null @@ -1,4 +0,0 @@ -Significance: patch -Type: fix - -fix: tokenized ECE improvements with WC Deposits, Bookings, Bundles. diff --git a/changelog/fix-tokenized-ece-rounding-of-itemized-items b/changelog/fix-tokenized-ece-rounding-of-itemized-items deleted file mode 100644 index a8432b8d340..00000000000 --- a/changelog/fix-tokenized-ece-rounding-of-itemized-items +++ /dev/null @@ -1,4 +0,0 @@ -Significance: patch -Type: update - -update: tokenized ECE to exclude itemized items on rounding discrepancies of totals. diff --git a/changelog/fix-woopay-opt-in-race-condition b/changelog/fix-woopay-opt-in-race-condition deleted file mode 100644 index 4e36bc5577c..00000000000 --- a/changelog/fix-woopay-opt-in-race-condition +++ /dev/null @@ -1,4 +0,0 @@ -Significance: patch -Type: fix - -Fixed WooPay opt-in race condition diff --git a/changelog/patch-disable-tokenised-carts-by-default b/changelog/patch-disable-tokenised-carts-by-default deleted file mode 100644 index 0c3c7646c25..00000000000 --- a/changelog/patch-disable-tokenised-carts-by-default +++ /dev/null @@ -1,4 +0,0 @@ -Significance: patch -Type: fix - -Ensures that the tokenised cart for ECE implementation is disabled by default. diff --git a/changelog/update-10256-extract-account-settings-logic b/changelog/update-10256-extract-account-settings-logic deleted file mode 100644 index 5752abf1a8c..00000000000 --- a/changelog/update-10256-extract-account-settings-logic +++ /dev/null @@ -1,4 +0,0 @@ -Significance: patch -Type: dev - -Extract the Account Session logic from Embedded components onboarding into a reusable utility hook. diff --git a/changelog/update-10317 b/changelog/update-10317 deleted file mode 100644 index 2139af25474..00000000000 --- a/changelog/update-10317 +++ /dev/null @@ -1,4 +0,0 @@ -Significance: minor -Type: update - -Update the copy in the existing modal for resetting a WooPayments account. diff --git a/changelog/update-10317-change-reset-account-modal-copy b/changelog/update-10317-change-reset-account-modal-copy deleted file mode 100644 index 1acfa753d66..00000000000 --- a/changelog/update-10317-change-reset-account-modal-copy +++ /dev/null @@ -1,4 +0,0 @@ -Significance: minor -Type: update - -Update copy in the Woopayments Reset account modal for incomplete onboarding accounts diff --git a/changelog/update-10391-snackbar-when-user-updates-kyc-on-overview-page b/changelog/update-10391-snackbar-when-user-updates-kyc-on-overview-page deleted file mode 100644 index b4d643b73b9..00000000000 --- a/changelog/update-10391-snackbar-when-user-updates-kyc-on-overview-page +++ /dev/null @@ -1,4 +0,0 @@ -Significance: patch -Type: update - -Add a notice indicating that overview page needs to be reloaded after completing the requirements in the embedded component. diff --git a/changelog/update-7188-immediate-csv-download-for-disputes b/changelog/update-7188-immediate-csv-download-for-disputes deleted file mode 100644 index 82a6e593f63..00000000000 --- a/changelog/update-7188-immediate-csv-download-for-disputes +++ /dev/null @@ -1,5 +0,0 @@ -Significance: patch -Type: dev -Comment: No need changelog entry as there's already a changelog about the CSV export experience improvement from https://github.com/Automattic/woocommerce-payments/pull/10211. - - diff --git a/changelog/update-9969-poll-async-job b/changelog/update-9969-poll-async-job deleted file mode 100644 index f105fffe7e3..00000000000 --- a/changelog/update-9969-poll-async-job +++ /dev/null @@ -1,4 +0,0 @@ -Significance: minor -Type: update - -Improve CSV export experience and deliver consistent reports via async transact platform service-based CSV exports. diff --git a/changelog/update-add-handling-for-low-refund-balance b/changelog/update-add-handling-for-low-refund-balance deleted file mode 100644 index ee060808e3a..00000000000 --- a/changelog/update-add-handling-for-low-refund-balance +++ /dev/null @@ -1,4 +0,0 @@ -Significance: minor -Type: update - -Update handling for refund processing in case of insufficient funds. diff --git a/changelog/update-add-min-amount-to-capture-error b/changelog/update-add-min-amount-to-capture-error deleted file mode 100644 index 715fb3a9928..00000000000 --- a/changelog/update-add-min-amount-to-capture-error +++ /dev/null @@ -1,4 +0,0 @@ -Significance: patch -Type: update - -Add JSON-formatted minimum amount details to the amount too small error message. diff --git a/changelog/update-cards-label b/changelog/update-cards-label deleted file mode 100644 index ce09cd5fc3a..00000000000 --- a/changelog/update-cards-label +++ /dev/null @@ -1,4 +0,0 @@ -Significance: minor -Type: update - -Update Credit Card / Debit Card label to Cards diff --git a/changelog/update-deposits-server-export b/changelog/update-deposits-server-export deleted file mode 100644 index 5639a959aa1..00000000000 --- a/changelog/update-deposits-server-export +++ /dev/null @@ -1,5 +0,0 @@ -Significance: patch -Type: dev -Comment: No need another changelog entry because there is already one that mentions the change in CSV download experience. - - diff --git a/changelog/update-disputes-csv-download-notice b/changelog/update-disputes-csv-download-notice deleted file mode 100644 index a725ff8becb..00000000000 --- a/changelog/update-disputes-csv-download-notice +++ /dev/null @@ -1,5 +0,0 @@ -Significance: patch -Type: dev -Comment: Minor update to disputes CSV download notice. No need extra changelog entry. - - diff --git a/changelog/update-incentives-cache-aligned-with-wc-core-one b/changelog/update-incentives-cache-aligned-with-wc-core-one deleted file mode 100644 index 1e72423e60a..00000000000 --- a/changelog/update-incentives-cache-aligned-with-wc-core-one +++ /dev/null @@ -1,5 +0,0 @@ -Significance: patch -Type: dev -Comment: Refactored the Incentives service to align it with the WC core incentives logic and caching. - - diff --git a/changelog/update-remove-NA-for-zero-amounts b/changelog/update-remove-NA-for-zero-amounts deleted file mode 100644 index ecde7e866c2..00000000000 --- a/changelog/update-remove-NA-for-zero-amounts +++ /dev/null @@ -1,4 +0,0 @@ -Significance: minor -Type: update - -Update handling for 0 feeAmount to be consistent with details page. diff --git a/changelog/update-remove-card-reader-receipt-details b/changelog/update-remove-card-reader-receipt-details deleted file mode 100644 index 2958d7947a7..00000000000 --- a/changelog/update-remove-card-reader-receipt-details +++ /dev/null @@ -1,4 +0,0 @@ -Significance: minor -Type: update - -Remove the receipt details tab in the card readers page. diff --git a/changelog/update-terminal-controller-PR-country-handling b/changelog/update-terminal-controller-PR-country-handling deleted file mode 100644 index 591b8ffdc6a..00000000000 --- a/changelog/update-terminal-controller-PR-country-handling +++ /dev/null @@ -1,4 +0,0 @@ -Significance: minor -Type: update - -Update handling of PR as a country in the terminal locations endpoint. diff --git a/package-lock.json b/package-lock.json index 8219e56e41a..2733be620df 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "woocommerce-payments", - "version": "8.9.2", + "version": "9.0.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "woocommerce-payments", - "version": "8.9.2", + "version": "9.0.0", "hasInstallScript": true, "license": "GPL-3.0-or-later", "dependencies": { diff --git a/package.json b/package.json index 78f51b32567..2566e769c7f 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "woocommerce-payments", - "version": "8.9.2", + "version": "9.0.0", "main": "webpack.config.js", "author": "Automattic", "license": "GPL-3.0-or-later", diff --git a/readme.txt b/readme.txt index 1e087371cdc..a1c81f66edb 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.7 Requires PHP: 7.3 -Stable tag: 8.9.2 +Stable tag: 9.0.0 License: GPLv2 or later License URI: http://www.gnu.org/licenses/gpl-2.0.html @@ -87,6 +87,60 @@ You can read our Terms of Service and other policies [here](https://woocommerce. == Changelog == += 9.0.0 - 2025-02-26 = +* Add - Add E2E tests for currency switching at checkout. +* Add - Add GrabPay payment method details to the View Transaction page. +* Add - Add GrabPay to the settings page when eligible. +* Add - Add loader indication for Stripe notifications banner component +* Add - Add payment method logos to checkout block card label. +* Add - Adds store_id property to body of WooPay tracker events. +* Add - Add Stripe embedded account notifications component on the Overview page +* Add - Add WeChat Pay settings. +* Add - Add WeChat Pay support to checkout. +* Add - feat: add initial support for Alipay settings +* Add - feat: add order notes to tokenized ECE GooglePay/ApplePay on blocks checkout +* Add - Implement checkout for GrabPay payments. +* Add - Pass the business name to the express checkout handler. +* Fix - Avoid duplicated payment methods detection notice on new stores. +* Fix - Avoid PMME init for unavailable BNPL use-cases. +* Fix - Ensure multi-currency widget markup getter don't throw errors. +* Fix - Ensures that the tokenised cart for ECE implementation is disabled by default. +* Fix - fix: attribute selection from PDPs with tokenized ECE +* Fix - fix: tokenized ECE improvements with WC Deposits, Bookings, Bundles. +* Fix - Fixed an issue with the copy test card number on Astra theme +* Fix - Fixes thrown PHP warning in checkout config. +* Fix - Fix Stripe KYC flow Woo color +* Fix - Fix the default value of the FRT advanced options. +* Fix - Improve how Stripe Billing integration is loaded to prevent unnecessary queries on every page load. +* Fix - Prevent fatal errors when subscription is deactivated due outdated version. +* Fix - Set orderby to `none` for order queries where checking if order exists. +* Fix - Update the size of Woo logo on the test drive onboarding page. +* Update - Add a notice indicating that overview page needs to be reloaded after completing the requirements in the embedded component. +* Update - Add JSON-formatted minimum amount details to the amount too small error message. +* Update - feat: GooglePay/ApplePay refactor to leverage Store API is enabled by default - second try. +* Update - Improve CSV export experience and deliver consistent reports via async transact platform service-based CSV exports. +* Update - Remove the receipt details tab in the card readers page. +* Update - update: add payment method functionality to honor WC rate limit. +* Update - update: tokenized ECE to exclude itemized items on rounding discrepancies of totals. +* Update - Update copy in the Woopayments Reset account modal for incomplete onboarding accounts +* Update - Update Credit Card / Debit Card label to Cards +* Update - Update handling for 0 feeAmount to be consistent with details page. +* Update - Update handling for refund processing in case of insufficient funds. +* Update - Update handling of PR as a country in the terminal locations endpoint. +* Update - Update the copy in the existing modal for resetting a WooPayments account. +* Dev - Add critical tag to tests that are part of the critical flows. +* Dev - Add new E2E tests to make sure a non-admin user, such as an editor, can access the wp-admin without errors. +* Dev - Add Slack integration to Playwright E2E tests. +* Dev - Cache calls to wc_get_orders in the incentives class +* Dev - Extract the Account Session logic from Embedded components onboarding into a reusable utility hook. +* Dev - Fix potential flakiness while creating a page with the checkout block. +* Dev - Remove Puppeteer references. +* Dev - Remove routing to the partially re-engineered payment process" +* Dev - Update E2E NPM scripts. +* Dev - Update E2E readme doc. +* Dev - Update E2E setup scripts to avoid conflicts with other containers and permissions. +* Dev - Update Github actions and workflows. Change e2e tests directory structure. + = 8.9.2 - 2025-02-21 = * Fix - Fixed WooPay opt-in race condition diff --git a/woocommerce-payments.php b/woocommerce-payments.php index d5cdda3234e..b12bccf14c7 100644 --- a/woocommerce-payments.php +++ b/woocommerce-payments.php @@ -11,7 +11,7 @@ * WC tested up to: 9.6.0 * Requires at least: 6.0 * Requires PHP: 7.3 - * Version: 8.9.2 + * Version: 9.0.0 * Requires Plugins: woocommerce * * @package WooCommerce\Payments From 42e194ae760e350403d91cbc2b805cf07802cca2 Mon Sep 17 00:00:00 2001 From: Nagesh Pai <4162931+nagpai@users.noreply.github.com> Date: Mon, 24 Feb 2025 14:20:06 +0530 Subject: [PATCH 2/4] Create a Tracks event for tracking CSV exports of Transactions, Disputes and Payouts. (#10411) Co-authored-by: Nagesh Pai --- changelog/update-10172-csv-export-tracks-event | 5 +++++ client/deposits/list/index.tsx | 12 +++++++----- client/disputes/index.tsx | 11 ++++++----- client/tracks/event.d.ts | 4 +--- client/transactions/list/index.tsx | 13 +++++++------ 5 files changed, 26 insertions(+), 19 deletions(-) create mode 100644 changelog/update-10172-csv-export-tracks-event diff --git a/changelog/update-10172-csv-export-tracks-event b/changelog/update-10172-csv-export-tracks-event new file mode 100644 index 00000000000..bbf396bf7b2 --- /dev/null +++ b/changelog/update-10172-csv-export-tracks-event @@ -0,0 +1,5 @@ +Significance: patch +Type: dev +Comment: Add a single tracks event - wcadmin_wcpay_csv_export_click to track export requests of transactions, payouts and disputes, using the new async export method. See - https://github.com/Automattic/woocommerce-payments/issues/9969 + + diff --git a/client/deposits/list/index.tsx b/client/deposits/list/index.tsx index 0b6c0fe665f..e346cd88220 100644 --- a/client/deposits/list/index.tsx +++ b/client/deposits/list/index.tsx @@ -209,10 +209,12 @@ export const DepositsList = (): JSX.Element => { const downloadable = !! rows.length; - const onDownload = async () => { - recordEvent( 'wcpay_deposits_download', { - exported_deposits: rows.length, - total_deposits: depositsSummary.count, + const { path } = getQuery(); + const onExport = async () => { + recordEvent( 'wcpay_csv_export_click', { + row_type: 'payouts', + source: path, + exported_row_count: depositsSummary.count, } ); const userEmail = wcpaySettings.currentUserEmail; @@ -302,7 +304,7 @@ export const DepositsList = (): JSX.Element => { key="download" isDisabled={ isLoading || isExportInProgress } isBusy={ isExportInProgress } - onClick={ onDownload } + onClick={ onExport } /> ), ] } diff --git a/client/disputes/index.tsx b/client/disputes/index.tsx index 0791658e4d5..84f87c70ae2 100644 --- a/client/disputes/index.tsx +++ b/client/disputes/index.tsx @@ -345,16 +345,17 @@ export const DisputesList = (): JSX.Element => { const downloadable = !! rows.length; const onDownload = async () => { - recordEvent( 'wcpay_disputes_download', { - exported_disputes: rows.length, - total_disputes: disputesSummary.count, - } ); - // We destructure page and path to get the right params. // eslint-disable-next-line @typescript-eslint/no-unused-vars const { page, path, ...params } = getQuery(); const userEmail = wcpaySettings.currentUserEmail; + recordEvent( 'wcpay_csv_export_click', { + row_type: 'disputes', + source: path, + exported_row_count: disputesSummary.count, + } ); + const userLocale = wcpaySettings.userLocale.code; const { date_before: dateBefore, diff --git a/client/tracks/event.d.ts b/client/tracks/event.d.ts index b445a55e65a..39673fef900 100644 --- a/client/tracks/event.d.ts +++ b/client/tracks/event.d.ts @@ -14,12 +14,11 @@ export type Event = | 'wcpay_welcome_learn_more' | 'wcpay_stripe_connected' | 'wcpay_connect_account_kyc_modal_opened' + | 'wcpay_csv_export_click' | 'wcpay_deposits_row_click' - | 'wcpay_deposits_download' | 'wcpay_disputes_row_action_click' | 'wcpay_dispute_challenge_clicked' | 'wcpay_dispute_accept_click' - | 'wcpay_disputes_download' | 'wcpay_dispute_accept_modal_view' | 'wcpay_dispute_product_selected' | 'wcpay_dispute_inquiry_refund_click' @@ -86,7 +85,6 @@ export type Event = | 'wcpay_subscriptions_account_not_connected_product_modal_view' | 'wcpay_subscriptions_account_not_connected_product_modal_finish_setup' | 'wcpay_subscriptions_account_not_connected_product_modal_dismiss' - | 'wcpay_transactions_download_csv_click' | 'payments_transactions_details_refund_modal_close' | 'payments_transactions_details_refund_modal_open' | 'payments_transactions_details_capture_charge_button_click' diff --git a/client/transactions/list/index.tsx b/client/transactions/list/index.tsx index 10b1b36a358..eefa7cf183c 100644 --- a/client/transactions/list/index.tsx +++ b/client/transactions/list/index.tsx @@ -582,11 +582,12 @@ export const TransactionsList = ( const downloadable = !! rows.length; - const onDownload = async () => { - recordEvent( 'wcpay_transactions_download_csv_click', { - location: props.depositId ? 'deposit_details' : 'transactions', - exported_transactions: rows.length, - total_transactions: transactionsSummary.count, + const { path } = getQuery(); + const onExport = async () => { + recordEvent( 'wcpay_csv_export_click', { + row_type: 'transactions', + source: path, + exported_row_count: transactionsSummary.count, } ); const userEmail = wcpaySettings.currentUserEmail; @@ -807,7 +808,7 @@ export const TransactionsList = ( key="download" isDisabled={ isLoading || isExportInProgress } isBusy={ isExportInProgress } - onClick={ onDownload } + onClick={ onExport } /> ), ] } From 7278db6adad2ed9508a86e764cf18a17b23806bd Mon Sep 17 00:00:00 2001 From: Samir Merchant Date: Mon, 24 Feb 2025 11:16:37 -0500 Subject: [PATCH 3/4] Fixes undefined constant WC_Install::STORE_ID_OPTION error (#10432) --- .../fix-woopay-tracker-undefined-wc-store-id | 4 ++++ includes/class-woopay-tracker.php | 2 +- tests/unit/test-class-woopay-tracker.php | 23 +++++++------------ 3 files changed, 13 insertions(+), 16 deletions(-) create mode 100644 changelog/fix-woopay-tracker-undefined-wc-store-id diff --git a/changelog/fix-woopay-tracker-undefined-wc-store-id b/changelog/fix-woopay-tracker-undefined-wc-store-id new file mode 100644 index 00000000000..be79b292da4 --- /dev/null +++ b/changelog/fix-woopay-tracker-undefined-wc-store-id @@ -0,0 +1,4 @@ +Significance: patch +Type: fix + +Fixes incorrect defined statement for WC_Install::STORE_ID_OPTION constant. diff --git a/includes/class-woopay-tracker.php b/includes/class-woopay-tracker.php index 63e9da29463..a3b9207b686 100644 --- a/includes/class-woopay-tracker.php +++ b/includes/class-woopay-tracker.php @@ -387,7 +387,7 @@ private function tracks_build_event_obj( $user, $event_name, $properties = [] ) * @return string|null */ public function get_wc_store_id() { - if ( defined( \WC_Install::STORE_ID_OPTION ) ) { + if ( defined( '\WC_Install::STORE_ID_OPTION' ) ) { return get_option( \WC_Install::STORE_ID_OPTION, null ); } return null; diff --git a/tests/unit/test-class-woopay-tracker.php b/tests/unit/test-class-woopay-tracker.php index 3285c22abbf..ba82c272c17 100644 --- a/tests/unit/test-class-woopay-tracker.php +++ b/tests/unit/test-class-woopay-tracker.php @@ -14,7 +14,7 @@ class WooPay_Tracker_Test extends WCPAY_UnitTestCase { /** * @var WooPay_Tracker */ - private $mock_tracker; + private $tracker; /** * @var WC_Payments_Http @@ -43,12 +43,7 @@ public function setUp(): void { $this->http_client_stub->method( 'is_user_connected' )->willReturn( true ); $this->http_client_stub->method( 'get_connected_user_data' )->willReturn( [ 'ID' => 1234 ] ); - $this->mock_tracker = $this->getMockBuilder( WooPay_Tracker::class ) - ->setConstructorArgs( [ $this->http_client_stub ] ) - ->onlyMethods( [ 'get_wc_store_id' ] ) - ->getMock(); - $this->mock_tracker->method( 'get_wc_store_id' ) - ->willReturn( 'mock_store_id' ); + $this->tracker = new WooPay_Tracker( $this->http_client_stub ); $this->cache = WC_Payments::get_database_cache(); $this->mock_cache = $this->createMock( WCPay\Database_Cache::class ); @@ -68,7 +63,7 @@ public function test_tracks_obeys_woopay_flag(): void { $is_account_connected = true; $this->setup_woopay_environment( $is_woopay_eligible, $is_account_connected ); - $this->assertFalse( $this->mock_tracker->should_enable_tracking() ); + $this->assertFalse( $this->tracker->should_enable_tracking() ); } public function test_does_not_track_admin_pages(): void { @@ -76,7 +71,7 @@ public function test_does_not_track_admin_pages(): void { $is_account_connected = true; $is_admin_page = true; $this->setup_woopay_environment( $is_woopay_eligible, $is_account_connected, $is_admin_page ); - $this->assertFalse( $this->mock_tracker->should_enable_tracking() ); + $this->assertFalse( $this->tracker->should_enable_tracking() ); } public function test_does_track_non_admins(): void { @@ -89,7 +84,7 @@ public function test_does_track_non_admins(): void { foreach ( $all_roles as $role ) { wp_get_current_user()->set_role( $role ); - $this->assertTrue( $this->mock_tracker->should_enable_tracking() ); + $this->assertTrue( $this->tracker->should_enable_tracking() ); } } @@ -97,7 +92,7 @@ public function test_does_not_track_when_account_not_connected(): void { $is_woopay_eligible = true; $is_account_connected = false; $this->setup_woopay_environment( $is_woopay_eligible, $is_account_connected ); - $this->assertFalse( $this->mock_tracker->should_enable_tracking() ); + $this->assertFalse( $this->tracker->should_enable_tracking() ); } public function test_tracks_build_event_obj_for_admin_events(): void { @@ -105,10 +100,9 @@ public function test_tracks_build_event_obj_for_admin_events(): void { $event_name = 'wcadmin_test_event'; $properties = [ 'test_property' => 'value' ]; - $event_obj = $this->invoke_method( $this->mock_tracker, 'tracks_build_event_obj', [ wp_get_current_user(), $event_name, $properties ] ); + $event_obj = $this->invoke_method( $this->tracker, 'tracks_build_event_obj', [ wp_get_current_user(), $event_name, $properties ] ); $this->assertEquals( 'value', $event_obj->test_property ); $this->assertEquals( 1234, $event_obj->_ui ); - $this->assertEquals( 'mock_store_id', $event_obj->store_id ); $this->assertEquals( $event_name, $event_obj->_en ); } @@ -117,12 +111,11 @@ public function test_tracks_build_event_obj_for_shopper_events() { $event_name = 'wcpay_test_event'; $properties = [ 'test_property' => 'value' ]; - $event_obj = $this->invoke_method( $this->mock_tracker, 'tracks_build_event_obj', [ wp_get_current_user(), $event_name, $properties ] ); + $event_obj = $this->invoke_method( $this->tracker, 'tracks_build_event_obj', [ wp_get_current_user(), $event_name, $properties ] ); $this->assertInstanceOf( Jetpack_Tracks_Event::class, $event_obj ); $this->assertEquals( 'value', $event_obj->test_property ); $this->assertEquals( 1234, $event_obj->_ui ); - $this->assertEquals( 'mock_store_id', $event_obj->store_id ); $this->assertEquals( $event_name, $event_obj->_en ); } From 0c039419ae2a649ed7f6c2536b85a60745788b7a Mon Sep 17 00:00:00 2001 From: botwoo Date: Wed, 26 Feb 2025 08:55:47 +0000 Subject: [PATCH 4/4] Amend changelog entries for release 9.0.0 --- changelog.txt | 1 + changelog/fix-woopay-tracker-undefined-wc-store-id | 4 ---- changelog/update-10172-csv-export-tracks-event | 5 ----- readme.txt | 1 + 4 files changed, 2 insertions(+), 9 deletions(-) delete mode 100644 changelog/fix-woopay-tracker-undefined-wc-store-id delete mode 100644 changelog/update-10172-csv-export-tracks-event diff --git a/changelog.txt b/changelog.txt index 8b88367aad1..cb0041d3386 100644 --- a/changelog.txt +++ b/changelog.txt @@ -21,6 +21,7 @@ * Fix - fix: attribute selection from PDPs with tokenized ECE * Fix - fix: tokenized ECE improvements with WC Deposits, Bookings, Bundles. * Fix - Fixed an issue with the copy test card number on Astra theme +* Fix - Fixes incorrect defined statement for WC_Install::STORE_ID_OPTION constant. * Fix - Fixes thrown PHP warning in checkout config. * Fix - Fix Stripe KYC flow Woo color * Fix - Fix the default value of the FRT advanced options. diff --git a/changelog/fix-woopay-tracker-undefined-wc-store-id b/changelog/fix-woopay-tracker-undefined-wc-store-id deleted file mode 100644 index be79b292da4..00000000000 --- a/changelog/fix-woopay-tracker-undefined-wc-store-id +++ /dev/null @@ -1,4 +0,0 @@ -Significance: patch -Type: fix - -Fixes incorrect defined statement for WC_Install::STORE_ID_OPTION constant. diff --git a/changelog/update-10172-csv-export-tracks-event b/changelog/update-10172-csv-export-tracks-event deleted file mode 100644 index bbf396bf7b2..00000000000 --- a/changelog/update-10172-csv-export-tracks-event +++ /dev/null @@ -1,5 +0,0 @@ -Significance: patch -Type: dev -Comment: Add a single tracks event - wcadmin_wcpay_csv_export_click to track export requests of transactions, payouts and disputes, using the new async export method. See - https://github.com/Automattic/woocommerce-payments/issues/9969 - - diff --git a/readme.txt b/readme.txt index a1c81f66edb..fd7dbd443ce 100644 --- a/readme.txt +++ b/readme.txt @@ -108,6 +108,7 @@ You can read our Terms of Service and other policies [here](https://woocommerce. * Fix - fix: attribute selection from PDPs with tokenized ECE * Fix - fix: tokenized ECE improvements with WC Deposits, Bookings, Bundles. * Fix - Fixed an issue with the copy test card number on Astra theme +* Fix - Fixes incorrect defined statement for WC_Install::STORE_ID_OPTION constant. * Fix - Fixes thrown PHP warning in checkout config. * Fix - Fix Stripe KYC flow Woo color * Fix - Fix the default value of the FRT advanced options.