diff --git a/changelog.txt b/changelog.txt index 3e68c78c9f1..745c2fe24be 100644 --- a/changelog.txt +++ b/changelog.txt @@ -1,5 +1,39 @@ *** WooPayments Changelog *** += 8.5.0 - 2024-11-13 = +* Add - Add country-specific test card numbers for credit card testing +* Add - Add risk level information to the fraud and risk box on the order details page. +* Add - Add support for allowedShippingCountries in Express Checkout Element. +* Fix - Avoid PHP warnings for requests with an empty path. +* Fix - BNPL methods now work properly in Pay for Order when they are available. Default values are also provided when available. +* Fix - fix: payment method icon alt text +* Fix - Fix compatibility issues with CustomSelectControl component styles for WordPress 6.7 +* Fix - Fix duplicate saving of 3DS card entry after checkout +* Fix - Fixed single product page view tracks when BNPL and PRB payment methods are inactive. +* Fix - Fix PMME appearance in checkout +* Fix - Fix settings display on the advanced fraud protection page. +* Fix - Fix WooPay button preview in plugin settings. +* Fix - Fix WooPay duplicated Save my info section. +* Fix - Include missing scripts that handle refunds for non credit card payments in the order details page. +* Fix - Introducing consistency in colors for deposits across pages +* Fix - Prevent dead space on product pages when no BNPL offers are available. +* Fix - Provide backwards-compatible method for retrieving the multi-currency instance. +* Fix - Register Expresss Checkout block only when enabled in the settings +* Fix - Remove unnecessary '.woocommerce-table' css overrides to fix WC Analytics styling and a11y issues +* Fix - Use 'Withdrawal' and 'Deducted' labels when referring to withdrawal deposits, to more accurately communicate the type of transaction that has occurred +* Update - Add in-memory cache fallback for our database-cached objects in case of database write failures. +* Update - Decoupled Multi-currency module from gateway dependencies. +* Update - Improvements to events during onboarding flow. +* Update - Refactor loadStripe for Express Checkouts. +* Update - Rename 'deposit' to 'payout' across various places in the WooPayments admin UI, docs and doc URLs. +* Update - update: payment method "test mode" label at checkout to be displayed only when payment method is selected +* Update - update: show LPM payment method icon on order success page +* Update - Use preview versions of the actual ECE buttons in the Block editor. +* Update - When tracking is enabled, send a tracks event when the merchant is redirected to a Stripe Capital offer. +* Dev - Add Jest tests for the disputed order notices +* Dev - Add unit tests for the Capital Loans page component. +* Dev - Bump WC tested up to version to 9.4.0 + = 8.4.0 - 2024-10-23 = * Add - Add test mode badge to classic checkout and add payment method. * Add - Using Floating Labels with Stripe Appearance API for Blocks Checkout diff --git a/changelog/9104-add-support-for-allowedshippingcountries-in-express-checkout-element b/changelog/9104-add-support-for-allowedshippingcountries-in-express-checkout-element deleted file mode 100644 index 5eae7cb8972..00000000000 --- a/changelog/9104-add-support-for-allowedshippingcountries-in-express-checkout-element +++ /dev/null @@ -1,4 +0,0 @@ -Significance: minor -Type: add - -Add support for allowedShippingCountries in Express Checkout Element. diff --git a/changelog/9550-fix-single-product-page-view-tracks b/changelog/9550-fix-single-product-page-view-tracks deleted file mode 100644 index 90e5ae60dff..00000000000 --- a/changelog/9550-fix-single-product-page-view-tracks +++ /dev/null @@ -1,4 +0,0 @@ -Significance: patch -Type: fix - -Fixed single product page view tracks when BNPL and PRB payment methods are inactive. diff --git a/changelog/add-1225-flag-elevated-risk-transactions b/changelog/add-1225-flag-elevated-risk-transactions deleted file mode 100644 index aaf4e54a8b6..00000000000 --- a/changelog/add-1225-flag-elevated-risk-transactions +++ /dev/null @@ -1,4 +0,0 @@ -Significance: minor -Type: add - -Add risk level information to the fraud and risk box on the order details page. diff --git a/changelog/add-9673-payouts-rename-notice b/changelog/add-9673-payouts-rename-notice deleted file mode 100644 index 31a258dee71..00000000000 --- a/changelog/add-9673-payouts-rename-notice +++ /dev/null @@ -1,5 +0,0 @@ -Significance: patch -Type: add -Comment: Added notice to indicate the rename of Deposits to Payouts. User facing changelog will be added as part of feature branch - - diff --git a/changelog/add-country-specific-test-cards b/changelog/add-country-specific-test-cards deleted file mode 100644 index 7d7ff495c04..00000000000 --- a/changelog/add-country-specific-test-cards +++ /dev/null @@ -1,4 +0,0 @@ -Significance: minor -Type: add - -Add country-specific test card numbers for credit card testing diff --git a/changelog/as-improve-stripe-for-ece b/changelog/as-improve-stripe-for-ece deleted file mode 100644 index e7399403864..00000000000 --- a/changelog/as-improve-stripe-for-ece +++ /dev/null @@ -1,4 +0,0 @@ -Significance: minor -Type: update - -Refactor loadStripe for Express Checkouts. diff --git a/changelog/chore-affirm-remove-unused-multicurrency-import b/changelog/chore-affirm-remove-unused-multicurrency-import deleted file mode 100644 index 69a52e74fb6..00000000000 --- a/changelog/chore-affirm-remove-unused-multicurrency-import +++ /dev/null @@ -1,5 +0,0 @@ -Significance: patch -Type: fix -Comment: Removing unused import. - - diff --git a/changelog/dev-1-9601-rename-deposit-dev-docs b/changelog/dev-1-9601-rename-deposit-dev-docs deleted file mode 100644 index bd7141bb971..00000000000 --- a/changelog/dev-1-9601-rename-deposit-dev-docs +++ /dev/null @@ -1,5 +0,0 @@ -Significance: patch -Type: dev -Comment: Rename 'deposit' to 'payout' within the developer doc description texts. The change is a part of a larger renaming project. - - diff --git a/changelog/dev-add-unit-tests-for-capital-list b/changelog/dev-add-unit-tests-for-capital-list deleted file mode 100644 index a99e92e7bbe..00000000000 --- a/changelog/dev-add-unit-tests-for-capital-list +++ /dev/null @@ -1,4 +0,0 @@ -Significance: patch -Type: dev - -Add unit tests for the Capital Loans page component. diff --git a/changelog/dev-add-unit-tests-for-diputed-order-notice b/changelog/dev-add-unit-tests-for-diputed-order-notice deleted file mode 100644 index 8d88338d894..00000000000 --- a/changelog/dev-add-unit-tests-for-diputed-order-notice +++ /dev/null @@ -1,4 +0,0 @@ -Significance: patch -Type: dev - -Add Jest tests for the disputed order notices diff --git a/changelog/dev-bump-wc-version-9.4 b/changelog/dev-bump-wc-version-9.4 deleted file mode 100644 index e56d8ba7357..00000000000 --- a/changelog/dev-bump-wc-version-9.4 +++ /dev/null @@ -1,4 +0,0 @@ -Significance: minor -Type: dev - -Bump WC tested up to version to 9.4.0 diff --git a/changelog/dev-readd-tracking-event b/changelog/dev-readd-tracking-event deleted file mode 100644 index 475904c11b2..00000000000 --- a/changelog/dev-readd-tracking-event +++ /dev/null @@ -1,4 +0,0 @@ -Significance: minor -Type: update - -Improvements to events during onboarding flow. diff --git a/changelog/dev-update-pw-screenshots b/changelog/dev-update-pw-screenshots new file mode 100644 index 00000000000..39936926058 --- /dev/null +++ b/changelog/dev-update-pw-screenshots @@ -0,0 +1,4 @@ +Significance: patch +Type: dev + +Update snapshots for E2E Playwright screenshots diff --git a/changelog/feature-deposits-payouts-rename b/changelog/feature-deposits-payouts-rename deleted file mode 100644 index cd080e4557b..00000000000 --- a/changelog/feature-deposits-payouts-rename +++ /dev/null @@ -1,4 +0,0 @@ -Significance: minor -Type: update - -Rename 'deposit' to 'payout' across various places in the WooPayments admin UI, docs and doc URLs. diff --git a/changelog/fix-7761-align-deposit-colors b/changelog/fix-7761-align-deposit-colors deleted file mode 100644 index b9ae9ac792c..00000000000 --- a/changelog/fix-7761-align-deposit-colors +++ /dev/null @@ -1,4 +0,0 @@ -Significance: patch -Type: fix - -Introducing consistency in colors for deposits across pages diff --git a/changelog/fix-7802-deposit-withdrawal-text-changes b/changelog/fix-7802-deposit-withdrawal-text-changes deleted file mode 100644 index cf32df2a4f7..00000000000 --- a/changelog/fix-7802-deposit-withdrawal-text-changes +++ /dev/null @@ -1,4 +0,0 @@ -Significance: patch -Type: fix - -Use 'Withdrawal' and 'Deducted' labels when referring to withdrawal deposits, to more accurately communicate the type of transaction that has occurred diff --git a/changelog/fix-8254-bnpl-pay-for-order b/changelog/fix-8254-bnpl-pay-for-order deleted file mode 100644 index 77c05e9e0b1..00000000000 --- a/changelog/fix-8254-bnpl-pay-for-order +++ /dev/null @@ -1,4 +0,0 @@ -Significance: minor -Type: fix - -BNPL methods now work properly in Pay for Order when they are available. Default values are also provided when available. diff --git a/changelog/fix-8423-klarna-cant-undo-manual-refunds-and-process-refunds-again-via-woopayments b/changelog/fix-8423-klarna-cant-undo-manual-refunds-and-process-refunds-again-via-woopayments deleted file mode 100644 index 8cd309f823c..00000000000 --- a/changelog/fix-8423-klarna-cant-undo-manual-refunds-and-process-refunds-again-via-woopayments +++ /dev/null @@ -1,4 +0,0 @@ -Significance: patch -Type: fix - -Include missing scripts that handle refunds for non credit card payments in the order details page. diff --git a/changelog/fix-9271-hide-stripe-duplicates-warning-when-disabled b/changelog/fix-9271-hide-stripe-duplicates-warning-when-disabled deleted file mode 100644 index 46e04c54622..00000000000 --- a/changelog/fix-9271-hide-stripe-duplicates-warning-when-disabled +++ /dev/null @@ -1,5 +0,0 @@ -Significance: patch -Type: fix -Comment: Small change affecting Stripe Gateway settings notices - - diff --git a/changelog/fix-9456-bnpl-respect-limits-per-currency b/changelog/fix-9456-bnpl-respect-limits-per-currency deleted file mode 100644 index be78120fabc..00000000000 --- a/changelog/fix-9456-bnpl-respect-limits-per-currency +++ /dev/null @@ -1,4 +0,0 @@ -Significance: patch -Type: fix - -Prevent dead space on product pages when no BNPL offers are available. diff --git a/changelog/fix-9520-advanced-fraud-protection-settings b/changelog/fix-9520-advanced-fraud-protection-settings deleted file mode 100644 index b08dee60572..00000000000 --- a/changelog/fix-9520-advanced-fraud-protection-settings +++ /dev/null @@ -1,4 +0,0 @@ -Significance: patch -Type: fix - -Fix settings display on the advanced fraud protection page. diff --git a/changelog/fix-9525-menu-url-payouts-rename b/changelog/fix-9525-menu-url-payouts-rename deleted file mode 100644 index 51956b98d3b..00000000000 --- a/changelog/fix-9525-menu-url-payouts-rename +++ /dev/null @@ -1,5 +0,0 @@ -Significance: patch -Type: dev -Comment: Part of feature Renaming deposits to payouts - - diff --git a/changelog/fix-9527-payouts-rename-settings b/changelog/fix-9527-payouts-rename-settings deleted file mode 100644 index 7690c2fee06..00000000000 --- a/changelog/fix-9527-payouts-rename-settings +++ /dev/null @@ -1,5 +0,0 @@ -Significance: patch -Type: dev -Comment: Payouts rename: Settings page, part of a larger change - - diff --git a/changelog/fix-9537-woopay-button-size-preview b/changelog/fix-9537-woopay-button-size-preview deleted file mode 100644 index 85348741475..00000000000 --- a/changelog/fix-9537-woopay-button-size-preview +++ /dev/null @@ -1,4 +0,0 @@ -Significance: patch -Type: fix - -Fix WooPay button preview in plugin settings. diff --git a/changelog/fix-9542-rename-payouts-instant-depost-modal-flow b/changelog/fix-9542-rename-payouts-instant-depost-modal-flow deleted file mode 100644 index 5d97529f78a..00000000000 --- a/changelog/fix-9542-rename-payouts-instant-depost-modal-flow +++ /dev/null @@ -1,5 +0,0 @@ -Significance: patch -Type: dev -Comment: Part of a larger change - renaming deposit to payout; this PR fixes instant payout modal + button - - diff --git a/changelog/fix-9572-woococommerce-table-specificity b/changelog/fix-9572-woococommerce-table-specificity deleted file mode 100644 index de47974865b..00000000000 --- a/changelog/fix-9572-woococommerce-table-specificity +++ /dev/null @@ -1,4 +0,0 @@ -Significance: patch -Type: fix - -Remove unnecessary '.woocommerce-table' css overrides to fix WC Analytics styling and a11y issues diff --git a/changelog/fix-9573-rename-payout-tos-modal b/changelog/fix-9573-rename-payout-tos-modal deleted file mode 100644 index 839d4364380..00000000000 --- a/changelog/fix-9573-rename-payout-tos-modal +++ /dev/null @@ -1,5 +0,0 @@ -Significance: patch -Type: dev -Comment: Rename Deposit to Payout in TOS modal. Changelog to be included in featture branch - - diff --git a/changelog/fix-9585-rename-instant-payouts b/changelog/fix-9585-rename-instant-payouts deleted file mode 100644 index 029812b1b97..00000000000 --- a/changelog/fix-9585-rename-instant-payouts +++ /dev/null @@ -1,5 +0,0 @@ -Significance: patch -Type: update -Comment: Renamed instant deposit to instant payout. Main changelog will be part of feature branch - - diff --git a/changelog/fix-9588-rename-payouts-error-messages b/changelog/fix-9588-rename-payouts-error-messages deleted file mode 100644 index c20e31649e1..00000000000 --- a/changelog/fix-9588-rename-payouts-error-messages +++ /dev/null @@ -1,5 +0,0 @@ -Significance: patch -Type: update -Comment: Updated the payouts component error notices. User facing changelog will be on the feature branch. - - diff --git a/changelog/fix-9636-custom-select-control-styling b/changelog/fix-9636-custom-select-control-styling deleted file mode 100644 index a6ff4559ef7..00000000000 --- a/changelog/fix-9636-custom-select-control-styling +++ /dev/null @@ -1,4 +0,0 @@ -Significance: patch -Type: fix - -Fix compatibility issues with CustomSelectControl component styles for WordPress 6.7 diff --git a/changelog/fix-9651-record-tracks-event-capital-view-offer-redirect b/changelog/fix-9651-record-tracks-event-capital-view-offer-redirect deleted file mode 100644 index 57b1e4a1a7d..00000000000 --- a/changelog/fix-9651-record-tracks-event-capital-view-offer-redirect +++ /dev/null @@ -1,5 +0,0 @@ -Significance: patch -Type: update - -When tracking is enabled, send a tracks event when the merchant is redirected to a Stripe Capital offer. - diff --git a/changelog/fix-9654-remove-test-mode-subheader b/changelog/fix-9654-remove-test-mode-subheader deleted file mode 100644 index adf27b737ea..00000000000 --- a/changelog/fix-9654-remove-test-mode-subheader +++ /dev/null @@ -1,5 +0,0 @@ -Significance: patch -Type: fix -Comment: Small text change. - - diff --git a/changelog/fix-9661-avoid-php-warning b/changelog/fix-9661-avoid-php-warning deleted file mode 100644 index 8e08f906189..00000000000 --- a/changelog/fix-9661-avoid-php-warning +++ /dev/null @@ -1,4 +0,0 @@ -Significance: patch -Type: fix - -Avoid PHP warnings for requests with an empty path. diff --git a/changelog/fix-9676-multi-currency-autoload b/changelog/fix-9676-multi-currency-autoload deleted file mode 100644 index 04e7fcfbc58..00000000000 --- a/changelog/fix-9676-multi-currency-autoload +++ /dev/null @@ -1,5 +0,0 @@ -Significance: patch -Type: fix -Comment: Keep multi-currency module in the same path to avoid autoload errors. - - diff --git a/changelog/fix-backwards-compat-mccy-instance b/changelog/fix-backwards-compat-mccy-instance deleted file mode 100644 index 95a0701ac1c..00000000000 --- a/changelog/fix-backwards-compat-mccy-instance +++ /dev/null @@ -1,4 +0,0 @@ -Significance: minor -Type: fix - -Provide backwards-compatible method for retrieving the multi-currency instance. diff --git a/changelog/fix-e2e-test-8.5.0-release b/changelog/fix-e2e-test-8.5.0-release deleted file mode 100644 index 4ea2bca263c..00000000000 --- a/changelog/fix-e2e-test-8.5.0-release +++ /dev/null @@ -1,5 +0,0 @@ -Significance: patch -Type: fix -Comment: Update string in E2E test - `Deposit` to `Payout` - - diff --git a/changelog/fix-express-checkout-block-registering b/changelog/fix-express-checkout-block-registering deleted file mode 100644 index 790b8a27a45..00000000000 --- a/changelog/fix-express-checkout-block-registering +++ /dev/null @@ -1,4 +0,0 @@ -Significance: minor -Type: fix - -Register Expresss Checkout block only when enabled in the settings diff --git a/changelog/fix-improve-woopay-test-coverage b/changelog/fix-improve-woopay-test-coverage new file mode 100644 index 00000000000..001374c440a --- /dev/null +++ b/changelog/fix-improve-woopay-test-coverage @@ -0,0 +1,5 @@ +Significance: patch +Type: dev +Comment: Minor improvements to automated tests around WooPay + + diff --git a/changelog/fix-omit-test-mode-badge-in-change-payment-form b/changelog/fix-omit-test-mode-badge-in-change-payment-form deleted file mode 100644 index eff6afc6766..00000000000 --- a/changelog/fix-omit-test-mode-badge-in-change-payment-form +++ /dev/null @@ -1,4 +0,0 @@ -Significance: minor -Type: fix - -Omit the test mode badge in the change payment method form for subscriptions. diff --git a/changelog/fix-payment-method-icon-alt-text b/changelog/fix-payment-method-icon-alt-text deleted file mode 100644 index 9da0ead5e11..00000000000 --- a/changelog/fix-payment-method-icon-alt-text +++ /dev/null @@ -1,4 +0,0 @@ -Significance: patch -Type: fix - -fix: payment method icon alt text diff --git a/changelog/fix-payout-rename-account-errors b/changelog/fix-payout-rename-account-errors deleted file mode 100644 index 5d661f369d7..00000000000 --- a/changelog/fix-payout-rename-account-errors +++ /dev/null @@ -1,5 +0,0 @@ -Significance: patch -Type: dev -Comment: Renamed deposit to Payout in account error messages. Main changelog will be added on feature branch. - - diff --git a/changelog/fix-pmme-appearance-checkout b/changelog/fix-pmme-appearance-checkout deleted file mode 100644 index 4fc63e58c52..00000000000 --- a/changelog/fix-pmme-appearance-checkout +++ /dev/null @@ -1,4 +0,0 @@ -Significance: patch -Type: fix - -Fix PMME appearance in checkout diff --git a/changelog/fix-saving-duplicate-3ds-cards b/changelog/fix-saving-duplicate-3ds-cards deleted file mode 100644 index ee077e3e5e4..00000000000 --- a/changelog/fix-saving-duplicate-3ds-cards +++ /dev/null @@ -1,4 +0,0 @@ -Significance: patch -Type: fix - -Fix duplicate saving of 3DS card entry after checkout diff --git a/changelog/fix-stripe-connect-breaks-underscore b/changelog/fix-stripe-connect-breaks-underscore deleted file mode 100644 index 9662fc9bd30..00000000000 --- a/changelog/fix-stripe-connect-breaks-underscore +++ /dev/null @@ -1,5 +0,0 @@ -Significance: patch -Type: fix -Comment: Change the way we load an external lib to avoid issues with underscore. - - diff --git a/changelog/fix-woopay-duplicated-component b/changelog/fix-woopay-duplicated-component deleted file mode 100644 index a5735f338c3..00000000000 --- a/changelog/fix-woopay-duplicated-component +++ /dev/null @@ -1,4 +0,0 @@ -Significance: patch -Type: fix - -Fix WooPay duplicated Save my info section. diff --git a/changelog/gh-actions-e2e-optimize-composer-cache b/changelog/gh-actions-e2e-optimize-composer-cache deleted file mode 100644 index 1e618c2233a..00000000000 --- a/changelog/gh-actions-e2e-optimize-composer-cache +++ /dev/null @@ -1,5 +0,0 @@ -Significance: patch -Type: dev -Comment: Updates gh actions cache-key for composer dependencies. - - diff --git a/changelog/multi-currency-v2 b/changelog/multi-currency-v2 deleted file mode 100644 index 463f61c882e..00000000000 --- a/changelog/multi-currency-v2 +++ /dev/null @@ -1,4 +0,0 @@ -Significance: minor -Type: update - -Decoupled Multi-currency module from gateway dependencies. diff --git a/changelog/update-9417-ece-in-block-editor b/changelog/update-9417-ece-in-block-editor deleted file mode 100644 index 95543271c69..00000000000 --- a/changelog/update-9417-ece-in-block-editor +++ /dev/null @@ -1,4 +0,0 @@ -Significance: patch -Type: update - -Use preview versions of the actual ECE buttons in the Block editor. diff --git a/changelog/update-9524-deposit-payout-deposits-list b/changelog/update-9524-deposit-payout-deposits-list deleted file mode 100644 index e25a0d70f23..00000000000 --- a/changelog/update-9524-deposit-payout-deposits-list +++ /dev/null @@ -1,5 +0,0 @@ -Significance: patch -Type: dev -Comment: Change deposit to payout in deposits list page. - - diff --git a/changelog/update-9543-transactions-list-deposit-to-payout-rename b/changelog/update-9543-transactions-list-deposit-to-payout-rename deleted file mode 100644 index 72b9c3ffa67..00000000000 --- a/changelog/update-9543-transactions-list-deposit-to-payout-rename +++ /dev/null @@ -1,5 +0,0 @@ -Significance: patch -Type: update -Comment: Update 'deposit' to 'payout' in UI labels of the transaction list. This PR is a part of a project doing this rename across all parts of the UI. - - diff --git a/changelog/update-9564-transaction-timeline-deposit-to-payout-rename b/changelog/update-9564-transaction-timeline-deposit-to-payout-rename deleted file mode 100644 index d143380b730..00000000000 --- a/changelog/update-9564-transaction-timeline-deposit-to-payout-rename +++ /dev/null @@ -1,5 +0,0 @@ -Significance: patch -Type: update -Comment: Part of a larger change to change 'deposit' to 'payout'. This PR specificially changes it for the transaction details timeline. - - diff --git a/changelog/update-9578-79-rename-deposit-overview-modal b/changelog/update-9578-79-rename-deposit-overview-modal deleted file mode 100644 index 0eca2ef1120..00000000000 --- a/changelog/update-9578-79-rename-deposit-overview-modal +++ /dev/null @@ -1,5 +0,0 @@ -Significance: patch -Type: update -Comment: Rename 'deposit' to 'payout' in modals within 'Overview' section. PR is a part of a larger renaming project. - - diff --git a/changelog/update-9581-rename-deposit-onboarding-tasklist b/changelog/update-9581-rename-deposit-onboarding-tasklist deleted file mode 100644 index a6f4c688343..00000000000 --- a/changelog/update-9581-rename-deposit-onboarding-tasklist +++ /dev/null @@ -1,5 +0,0 @@ -Significance: patch -Type: update -Comment: Rename 'deposit' to 'payout' within the onboarding tasklist section. The change is a part of a larger project of doing this rename across the codebase. - - diff --git a/changelog/update-9587-doc-url-payout-rename b/changelog/update-9587-doc-url-payout-rename deleted file mode 100644 index 62933e0a818..00000000000 --- a/changelog/update-9587-doc-url-payout-rename +++ /dev/null @@ -1,5 +0,0 @@ -Significance: patch -Type: update -Comment: Update 'deposit' to 'payout' in URLs of WooPayments docs occuring across the codebase. Part of a larger renaming project. - - diff --git a/changelog/update-add-in-memory-cache-to-db-cache-to-deal-with-db-write-failures b/changelog/update-add-in-memory-cache-to-db-cache-to-deal-with-db-write-failures deleted file mode 100644 index 26888ab5582..00000000000 --- a/changelog/update-add-in-memory-cache-to-db-cache-to-deal-with-db-write-failures +++ /dev/null @@ -1,4 +0,0 @@ -Significance: patch -Type: update - -Add in-memory cache fallback for our database-cached objects in case of database write failures. diff --git a/changelog/update-npm-readme-update-e2e-pw-snapshots b/changelog/update-npm-readme-update-e2e-pw-snapshots deleted file mode 100644 index 3927f45ec0d..00000000000 --- a/changelog/update-npm-readme-update-e2e-pw-snapshots +++ /dev/null @@ -1,5 +0,0 @@ -Significance: patch -Type: dev -Comment: Not user-facing. - - diff --git a/changelog/update-order-success-lpm-icon b/changelog/update-order-success-lpm-icon deleted file mode 100644 index d0f4ac443af..00000000000 --- a/changelog/update-order-success-lpm-icon +++ /dev/null @@ -1,4 +0,0 @@ -Significance: patch -Type: update - -update: show LPM payment method icon on order success page diff --git a/changelog/update-payment-method-test-mode-label b/changelog/update-payment-method-test-mode-label deleted file mode 100644 index 1c3874ebf5f..00000000000 --- a/changelog/update-payment-method-test-mode-label +++ /dev/null @@ -1,4 +0,0 @@ -Significance: patch -Type: update - -update: payment method "test mode" label at checkout to be displayed only when payment method is selected diff --git a/client/components/woopay/save-user/test/checkout-page-save-user.test.js b/client/components/woopay/save-user/test/checkout-page-save-user.test.js index 9986e3868eb..a09b4249053 100644 --- a/client/components/woopay/save-user/test/checkout-page-save-user.test.js +++ b/client/components/woopay/save-user/test/checkout-page-save-user.test.js @@ -160,6 +160,11 @@ describe( 'CheckoutPageSaveUser', () => { 'Securely save my information for 1-click checkout' ) ).not.toBeChecked(); + expect( + screen.queryAllByLabelText( + 'Securely save my information for 1-click checkout' + ) + ).toHaveLength( 1 ); } ); it( 'should not render checkbox for saving WooPay user when user is already registered', () => { @@ -184,7 +189,7 @@ describe( 'CheckoutPageSaveUser', () => { ).not.toBeInTheDocument(); } ); - it( 'should render checkbox for saving WooPay user when selected payment method is not card', () => { + it( 'should not render checkbox for saving WooPay user when selected payment method is not card', () => { useSelectedPaymentMethod.mockImplementation( () => ( { isWCPayChosen: false, } ) ); @@ -235,6 +240,7 @@ describe( 'CheckoutPageSaveUser', () => { expect( label ).toBeChecked(); expect( screen.queryByTestId( 'save-user-form' ) ).toBeInTheDocument(); + expect( screen.getAllByTestId( 'save-user-form' ) ).toHaveLength( 1 ); } ); it( 'should not call `request` on classic checkout when checkbox is clicked', () => { diff --git a/client/settings/express-checkout/woopay-item.tsx b/client/settings/express-checkout/woopay-item.tsx index 910cd930dff..4232901b0ef 100644 --- a/client/settings/express-checkout/woopay-item.tsx +++ b/client/settings/express-checkout/woopay-item.tsx @@ -79,6 +79,7 @@ const WooPayExpressCheckoutItem = (): React.ReactElement => { ) } checked={ isWooPayEnabled } onChange={ updateIsWooPayEnabled } + data-testid="woopay-toggle" /> ) } diff --git a/package-lock.json b/package-lock.json index 6448e3e2941..866b3bae7b8 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "woocommerce-payments", - "version": "8.4.0", + "version": "8.5.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "woocommerce-payments", - "version": "8.4.0", + "version": "8.5.0", "hasInstallScript": true, "license": "GPL-3.0-or-later", "dependencies": { diff --git a/package.json b/package.json index 925549badb1..ba36d21ebc4 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "woocommerce-payments", - "version": "8.4.0", + "version": "8.5.0", "main": "webpack.config.js", "author": "Automattic", "license": "GPL-3.0-or-later", diff --git a/readme.txt b/readme.txt index 919486cd505..5c885d4c88b 100644 --- a/readme.txt +++ b/readme.txt @@ -2,9 +2,9 @@ Contributors: woocommerce, automattic Tags: woocommerce payments, apple pay, credit card, google pay, payment, payment gateway Requires at least: 6.0 -Tested up to: 6.6 +Tested up to: 6.7 Requires PHP: 7.3 -Stable tag: 8.4.0 +Stable tag: 8.5.0 License: GPLv2 or later License URI: http://www.gnu.org/licenses/gpl-2.0.html @@ -94,6 +94,40 @@ Please note that our support for the checkout block is still experimental and th == Changelog == += 8.5.0 - 2024-11-13 = +* Add - Add country-specific test card numbers for credit card testing +* Add - Add risk level information to the fraud and risk box on the order details page. +* Add - Add support for allowedShippingCountries in Express Checkout Element. +* Fix - Avoid PHP warnings for requests with an empty path. +* Fix - BNPL methods now work properly in Pay for Order when they are available. Default values are also provided when available. +* Fix - fix: payment method icon alt text +* Fix - Fix compatibility issues with CustomSelectControl component styles for WordPress 6.7 +* Fix - Fix duplicate saving of 3DS card entry after checkout +* Fix - Fixed single product page view tracks when BNPL and PRB payment methods are inactive. +* Fix - Fix PMME appearance in checkout +* Fix - Fix settings display on the advanced fraud protection page. +* Fix - Fix WooPay button preview in plugin settings. +* Fix - Fix WooPay duplicated Save my info section. +* Fix - Include missing scripts that handle refunds for non credit card payments in the order details page. +* Fix - Introducing consistency in colors for deposits across pages +* Fix - Prevent dead space on product pages when no BNPL offers are available. +* Fix - Provide backwards-compatible method for retrieving the multi-currency instance. +* Fix - Register Expresss Checkout block only when enabled in the settings +* Fix - Remove unnecessary '.woocommerce-table' css overrides to fix WC Analytics styling and a11y issues +* Fix - Use 'Withdrawal' and 'Deducted' labels when referring to withdrawal deposits, to more accurately communicate the type of transaction that has occurred +* Update - Add in-memory cache fallback for our database-cached objects in case of database write failures. +* Update - Decoupled Multi-currency module from gateway dependencies. +* Update - Improvements to events during onboarding flow. +* Update - Refactor loadStripe for Express Checkouts. +* Update - Rename 'deposit' to 'payout' across various places in the WooPayments admin UI, docs and doc URLs. +* Update - update: payment method "test mode" label at checkout to be displayed only when payment method is selected +* Update - update: show LPM payment method icon on order success page +* Update - Use preview versions of the actual ECE buttons in the Block editor. +* Update - When tracking is enabled, send a tracks event when the merchant is redirected to a Stripe Capital offer. +* Dev - Add Jest tests for the disputed order notices +* Dev - Add unit tests for the Capital Loans page component. +* Dev - Bump WC tested up to version to 9.4.0 + = 8.4.0 - 2024-10-23 = * Add - Add test mode badge to classic checkout and add payment method. * Add - Using Floating Labels with Stripe Appearance API for Blocks Checkout diff --git a/tests/e2e-pw/specs/merchant/__snapshots__/multi-currency-on-boarding.spec.ts/Multi-currency-on-boarding-Geolocation-feature-83665-tch-by-geolocation-correctly-with-USD-and-GBP-1.png b/tests/e2e-pw/specs/merchant/__snapshots__/multi-currency-on-boarding.spec.ts/Multi-currency-on-boarding-Geolocation-feature-83665-tch-by-geolocation-correctly-with-USD-and-GBP-1.png index 302a722e0a6..7cfb7e2649d 100644 Binary files a/tests/e2e-pw/specs/merchant/__snapshots__/multi-currency-on-boarding.spec.ts/Multi-currency-on-boarding-Geolocation-feature-83665-tch-by-geolocation-correctly-with-USD-and-GBP-1.png and b/tests/e2e-pw/specs/merchant/__snapshots__/multi-currency-on-boarding.spec.ts/Multi-currency-on-boarding-Geolocation-feature-83665-tch-by-geolocation-correctly-with-USD-and-GBP-1.png differ diff --git a/tests/e2e-pw/specs/merchant/__snapshots__/multi-currency.spec.ts/Multi-currency-page-load-without-any-errors-1.png b/tests/e2e-pw/specs/merchant/__snapshots__/multi-currency.spec.ts/Multi-currency-page-load-without-any-errors-1.png index 17d9ff94c0e..fdfd9a99e2d 100644 Binary files a/tests/e2e-pw/specs/merchant/__snapshots__/multi-currency.spec.ts/Multi-currency-page-load-without-any-errors-1.png and b/tests/e2e-pw/specs/merchant/__snapshots__/multi-currency.spec.ts/Multi-currency-page-load-without-any-errors-1.png differ diff --git a/tests/e2e-pw/specs/merchant/woopay-setup.spec.ts b/tests/e2e-pw/specs/merchant/woopay-setup.spec.ts new file mode 100644 index 00000000000..c36cdb135d0 --- /dev/null +++ b/tests/e2e-pw/specs/merchant/woopay-setup.spec.ts @@ -0,0 +1,33 @@ +/** + * External dependencies + */ +import { test, Page } from '@playwright/test'; +/** + * Internal dependencies + */ +import { getMerchant } from '../../utils/helpers'; +import { activateWooPay, deactivateWooPay } from '../../utils/merchant'; + +test.describe( 'WooPay setup', () => { + let merchantPage: Page; + let wasWooPayEnabled: boolean; + + test.beforeAll( async ( { browser } ) => { + merchantPage = ( await getMerchant( browser ) ).merchantPage; + wasWooPayEnabled = await activateWooPay( merchantPage ); + } ); + + test.afterAll( async () => { + if ( ! wasWooPayEnabled ) { + await deactivateWooPay( merchantPage ); + } + } ); + + test( 'can disable the WooPay feature', async () => { + await deactivateWooPay( merchantPage ); + } ); + + test( 'can enable the WooPay feature', async () => { + await activateWooPay( merchantPage ); + } ); +} ); diff --git a/tests/e2e-pw/utils/merchant.ts b/tests/e2e-pw/utils/merchant.ts index 2cbefa58615..d5908956359 100644 --- a/tests/e2e-pw/utils/merchant.ts +++ b/tests/e2e-pw/utils/merchant.ts @@ -250,3 +250,31 @@ export const disablePaymentMethods = async ( await saveWooPaymentsSettings( page ); }; + +export const isWooPayEnabled = async ( page: Page ) => { + await navigation.goToWooPaymentsSettings( page ); + + const checkboxTestId = 'woopay-toggle'; + const isEnabled = await page.getByTestId( checkboxTestId ).isChecked(); + + return isEnabled; +}; + +export const activateWooPay = async ( page: Page ) => { + await navigation.goToWooPaymentsSettings( page ); + + const checkboxTestId = 'woopay-toggle'; + const wasInitiallyEnabled = await isWooPayEnabled( page ); + + if ( ! wasInitiallyEnabled ) { + await page.getByTestId( checkboxTestId ).check(); + await saveWooPaymentsSettings( page ); + } + return wasInitiallyEnabled; +}; + +export const deactivateWooPay = async ( page: Page ) => { + await navigation.goToWooPaymentsSettings( page ); + await page.getByTestId( 'woopay-toggle' ).uncheck(); + await saveWooPaymentsSettings( page ); +}; diff --git a/woocommerce-payments.php b/woocommerce-payments.php index 23367190fcd..506001dfd88 100644 --- a/woocommerce-payments.php +++ b/woocommerce-payments.php @@ -11,7 +11,7 @@ * WC tested up to: 9.4.0 * Requires at least: 6.0 * Requires PHP: 7.3 - * Version: 8.4.0 + * Version: 8.5.0 * Requires Plugins: woocommerce * * @package WooCommerce\Payments