diff --git a/changelog.txt b/changelog.txt index 73e649d188e..68da1290131 100644 --- a/changelog.txt +++ b/changelog.txt @@ -1,5 +1,61 @@ *** WooPayments Changelog *** += 7.0.0 - 2024-01-03 = +* Add - Add Account Management tools with reset account functionality for partially onboarded accounts. +* Add - Adding Compatibility Service to assist with flagging possible compatibility issues in the future. +* Add - Add refund controls to transaction details view +* Add - Add test mode notice in page order detail. +* Add - Display a Confirmaton Modal on enabling Test Mode +* Add - Introduce Customer currency, Deposit currency, Amount in Customer Currency and Deposit ID columns to the Transaction list UI and CSV export +* Fix - Allow test phone number as Support Phone in Dev mode +* Fix - Avoid using the removed deferred UPE flag +* Fix - Ensure proper backfilling of subscription metadata (i.e. dates and cache) to the postmeta table when HPOS is enabled and compatibility mode (data syncing) is turned on. +* Fix - Fetch and update the `_cancelled_email_sent` meta in a HPOS compatibile way. +* Fix - fix: account currency hook return value +* Fix - Fix account status error messages with links. +* Fix - Fix country names with accents not showing correctly on international country fraud filter +* Fix - Fix currency negative sign position on JS rendered amounts +* Fix - Fixed a Level 3 error occurring during the capture of an authorization for amounts lower than the initial authorization amount. +* Fix - Fixed Apple Pay Double Tax Calculation Issue +* Fix - Fixed broken styles in authorization capture notifications +* Fix - Fix incorrect amounts caused by zero-decimal currencies on Transactions, Deposits and Deposits CSV export +* Fix - Fix missing customer data from transactions report +* Fix - Fix missing order number in transaction reports CSV +* Fix - Fix WooPay integration with AutomateWoo - Refer a Friend extension. +* Fix - Improved error message for invalid payment method +* Fix - Include discount fee in fees tooltip +* Fix - Introduce WC_Payments_Express_Checkout_Button_Utils class. +* Fix - Pass the pay-for-order params to get the pre-fetch session data +* Fix - Prevents a PHP fatal error that occurs when the cart contains a renewal order item that no longer exists. +* Fix - Resolved an issue that would cause undefined $current_page, $max_num_pages, and $paginate variable errors when viewing a page with the subscriptions-shortcode. +* Fix - Revemoved pre-fretch session for button to prevent draft order creation +* Fix - Update account balances on the Payments Overview screen when an instant deposit is requested +* Fix - Update Qualitative Feedback note to have more efficient sql query. +* Fix - When HPOS is enabled and data compatibility mode is turned on, make sure subscription date changes made to postmeta are synced to orders_meta table. +* Fix - When using the checkout block to pay for renewal orders, ensure the order's cart hash is updated to make sure the existing order can be used. +* Update - Actualized cards-related assets for settings and transactions pages. +* Update - Cleanup the deprecated payment gateway processing - part II +* Update - Cleanup the deprecated payment gateway processing - part III +* Update - Confirmation when cancelling order with pending authorization. Automatic order changes submission if confirmed. +* Update - Updates the anchor text for the fraud and risk tools documentation link on the Payments Settings page. +* Update - Updates the behavior and display of the international IP address rule card if the rule is being affected by the WooCommerce core selling locations general option. +* Dev - Add e2e tests for the currency switcher widget. +* Dev - Added documentation for deposits REST API endpoints. +* Dev - Bump WC tested up to version to 8.4.0. +* Dev - Cleanup enqueueing of the scripts which were removed +* Dev - Cleanup the deprecated payment gateway processing - part IV +* Dev - Cleanup the deprecated payment gateway processing - part V +* Dev - Cleanup the deprecated payment gateway processing - part VI +* Dev - Comment: Fix declined 3DS card E2E test. +* Dev - Deprecate the WC_Subscriptions_Synchroniser::add_to_recurring_cart_key(). Use WC_Subscriptions_Synchroniser::add_to_recurring_product_grouping_key() instead. +* Dev - E2E test - Merchant facing: Multi-currency setup +* Dev - Improve E2E checkout tests +* Dev - Introduce a new wcs_get_subscription_grouping_key() function to generate a unique key for a subscription based on its billing schedule. This function uses the existing recurring cart key concept. +* Dev - Remove "Set-up refund policy" Inbox note as superfluous. +* Dev - remove unused factor flag for deferred UPE +* Dev - Thank you page Tracks event +* Dev - Updated subscriptions-core to version 6.6.0 + = 6.9.2 - 2023-12-14 = * Add - Notice is added when merchant has funds that are not yet available for deposit. * Add - Show a deposit schedule notice on the deposits list page to indicate that future deposits can be expected. diff --git a/changelog/7588-express-checkout-utilities b/changelog/7588-express-checkout-utilities deleted file mode 100644 index 143b670d60c..00000000000 --- a/changelog/7588-express-checkout-utilities +++ /dev/null @@ -1,4 +0,0 @@ -Significance: patch -Type: fix - -Introduce WC_Payments_Express_Checkout_Button_Utils class. diff --git a/changelog/add-334-test-mode-notice-order-details b/changelog/add-334-test-mode-notice-order-details deleted file mode 100644 index de22a34c323..00000000000 --- a/changelog/add-334-test-mode-notice-order-details +++ /dev/null @@ -1,4 +0,0 @@ -Significance: minor -Type: add - -Add test mode notice in page order detail. diff --git a/changelog/add-5605-cancel-authorizations-if-order-is-cancelled b/changelog/add-5605-cancel-authorizations-if-order-is-cancelled deleted file mode 100644 index 879ed83d30f..00000000000 --- a/changelog/add-5605-cancel-authorizations-if-order-is-cancelled +++ /dev/null @@ -1,4 +0,0 @@ -Significance: minor -Type: update - -Confirmation when cancelling order with pending authorization. Automatic order changes submission if confirmed. diff --git a/changelog/add-7248-refund-transaction-from-details-page b/changelog/add-7248-refund-transaction-from-details-page deleted file mode 100644 index bfd753860e8..00000000000 --- a/changelog/add-7248-refund-transaction-from-details-page +++ /dev/null @@ -1,4 +0,0 @@ -Significance: minor -Type: add - -Add refund controls to transaction details view diff --git a/changelog/add-7591-missing-columns-export-csv b/changelog/add-7591-missing-columns-export-csv deleted file mode 100644 index 668644d2cfc..00000000000 --- a/changelog/add-7591-missing-columns-export-csv +++ /dev/null @@ -1,4 +0,0 @@ -Significance: minor -Type: add - -Introduce Customer currency, Deposit currency, Amount in Customer Currency and Deposit ID columns to the Transaction list UI and CSV export diff --git a/changelog/add-7846-test-mode-confirm-modal b/changelog/add-7846-test-mode-confirm-modal deleted file mode 100644 index 0725c55b1aa..00000000000 --- a/changelog/add-7846-test-mode-confirm-modal +++ /dev/null @@ -1,4 +0,0 @@ -Significance: minor -Type: add - -Display a Confirmaton Modal on enabling Test Mode diff --git a/changelog/deferred-intent b/changelog/add-place-order-tracks similarity index 53% rename from changelog/deferred-intent rename to changelog/add-place-order-tracks index ef5442b5f17..450859bad49 100644 --- a/changelog/deferred-intent +++ b/changelog/add-place-order-tracks @@ -1,4 +1,4 @@ Significance: minor Type: dev -Improve E2E checkout tests +Place order button Tracks diff --git a/changelog/add-prb-load-tracks b/changelog/add-prb-load-tracks new file mode 100644 index 00000000000..5109e5ce0ca --- /dev/null +++ b/changelog/add-prb-load-tracks @@ -0,0 +1,4 @@ +Significance: minor +Type: dev + +Track payment-request-button loads diff --git a/changelog/add-thank-you-page-tracks b/changelog/add-thank-you-page-tracks deleted file mode 100644 index 31888d5d917..00000000000 --- a/changelog/add-thank-you-page-tracks +++ /dev/null @@ -1,4 +0,0 @@ -Significance: minor -Type: dev - -Thank you page Tracks event diff --git a/changelog/cleanup-devtools-flags b/changelog/cleanup-devtools-flags deleted file mode 100644 index adbf7f71958..00000000000 --- a/changelog/cleanup-devtools-flags +++ /dev/null @@ -1,4 +0,0 @@ -Significance: minor -Type: dev - -remove unused factor flag for deferred UPE diff --git a/changelog/cleanup-is-upe-enabled-logic b/changelog/cleanup-is-upe-enabled-logic deleted file mode 100644 index 79bae6fa471..00000000000 --- a/changelog/cleanup-is-upe-enabled-logic +++ /dev/null @@ -1,4 +0,0 @@ -Significance: minor -Type: update - -Cleanup the deprecated payment gateway processing - part III diff --git a/changelog/cleanup-redundant-script-enqueueing b/changelog/cleanup-redundant-script-enqueueing deleted file mode 100644 index 20c952d459e..00000000000 --- a/changelog/cleanup-redundant-script-enqueueing +++ /dev/null @@ -1,4 +0,0 @@ -Significance: minor -Type: dev - -Cleanup enqueueing of the scripts which were removed diff --git a/changelog/cleanup-upe-checkout-class b/changelog/cleanup-upe-checkout-class deleted file mode 100644 index 95cfa040bf5..00000000000 --- a/changelog/cleanup-upe-checkout-class +++ /dev/null @@ -1,4 +0,0 @@ -Significance: minor -Type: dev - -Cleanup the deprecated payment gateway processing - part IV diff --git a/changelog/cleanup-upe-gateways-II b/changelog/cleanup-upe-gateways-II deleted file mode 100644 index 16f3e3cd17f..00000000000 --- a/changelog/cleanup-upe-gateways-II +++ /dev/null @@ -1,4 +0,0 @@ -Significance: minor -Type: dev - -Cleanup the deprecated payment gateway processing - part VI diff --git a/changelog/cleanup-upe-gateways-part-1 b/changelog/cleanup-upe-gateways-part-1 deleted file mode 100644 index d449f2047df..00000000000 --- a/changelog/cleanup-upe-gateways-part-1 +++ /dev/null @@ -1,4 +0,0 @@ -Significance: minor -Type: dev - -Cleanup the deprecated payment gateway processing - part V diff --git a/changelog/dev-3468-allow-reset-account-management b/changelog/dev-3468-allow-reset-account-management deleted file mode 100644 index ed030674f95..00000000000 --- a/changelog/dev-3468-allow-reset-account-management +++ /dev/null @@ -1,4 +0,0 @@ -Significance: minor -Type: add - -Add Account Management tools with reset account functionality for partially onboarded accounts. diff --git a/changelog/dev-bump-wc-version-8-4-0 b/changelog/dev-bump-wc-version-8-4-0 deleted file mode 100644 index 5c00289cc5b..00000000000 --- a/changelog/dev-bump-wc-version-8-4-0 +++ /dev/null @@ -1,4 +0,0 @@ -Significance: minor -Type: dev - -Bump WC tested up to version to 8.4.0. \ No newline at end of file diff --git a/changelog/dev-fix-e2e-tests-on-wc-7-7 b/changelog/dev-fix-e2e-tests-on-wc-7-7 deleted file mode 100644 index 15b4d3b72e9..00000000000 --- a/changelog/dev-fix-e2e-tests-on-wc-7-7 +++ /dev/null @@ -1,5 +0,0 @@ -Significance: patch -Type: dev -Comment: Fix e2e tests on WC 7.7. - - diff --git a/changelog/dev-fix-multi-currency-e2e-tests b/changelog/dev-fix-multi-currency-e2e-tests deleted file mode 100644 index 45ac7deccc1..00000000000 --- a/changelog/dev-fix-multi-currency-e2e-tests +++ /dev/null @@ -1,5 +0,0 @@ -Significance: patch -Type: dev -Comment: Fix multi-currency e2e tests. - - diff --git a/changelog/dev-test-ci-without-3ds1 b/changelog/dev-test-ci-without-3ds1 deleted file mode 100644 index f2d4b778788..00000000000 --- a/changelog/dev-test-ci-without-3ds1 +++ /dev/null @@ -1,4 +0,0 @@ -Significance: patch -Type: dev - -Comment: Fix declined 3DS card E2E test. diff --git a/changelog/e2e-7349-currency-switcher-widget b/changelog/e2e-7349-currency-switcher-widget deleted file mode 100644 index 1bf9af1d6c3..00000000000 --- a/changelog/e2e-7349-currency-switcher-widget +++ /dev/null @@ -1,4 +0,0 @@ -Significance: patch -Type: dev - -Add e2e tests for the currency switcher widget. diff --git a/changelog/e2e-7382-spec-merchant-multi-currency-setup b/changelog/e2e-7382-spec-merchant-multi-currency-setup deleted file mode 100644 index b079e3e6e8e..00000000000 --- a/changelog/e2e-7382-spec-merchant-multi-currency-setup +++ /dev/null @@ -1,4 +0,0 @@ -Significance: patch -Type: dev - -E2E test - Merchant facing: Multi-currency setup diff --git a/changelog/fix-3693-qualitative-feedback-note b/changelog/fix-3693-qualitative-feedback-note deleted file mode 100644 index 8862cc0c961..00000000000 --- a/changelog/fix-3693-qualitative-feedback-note +++ /dev/null @@ -1,4 +0,0 @@ -Significance: patch -Type: fix - -Update Qualitative Feedback note to have more efficient sql query. diff --git a/changelog/fix-6700-remove-currency-sign-modification-code b/changelog/fix-6700-remove-currency-sign-modification-code deleted file mode 100644 index 74634338357..00000000000 --- a/changelog/fix-6700-remove-currency-sign-modification-code +++ /dev/null @@ -1,4 +0,0 @@ -Significance: patch -Type: fix - -Fix currency negative sign position on JS rendered amounts diff --git a/changelog/fix-6782-support-phone-dev-mode b/changelog/fix-6782-support-phone-dev-mode deleted file mode 100644 index 42166e6419d..00000000000 --- a/changelog/fix-6782-support-phone-dev-mode +++ /dev/null @@ -1,4 +0,0 @@ -Significance: patch -Type: fix - -Allow test phone number as Support Phone in Dev mode diff --git a/changelog/fix-6806-authorizations-level-3-data-error-while-trying-to-capture-partial-amount b/changelog/fix-6806-authorizations-level-3-data-error-while-trying-to-capture-partial-amount deleted file mode 100644 index 870c1de09f2..00000000000 --- a/changelog/fix-6806-authorizations-level-3-data-error-while-trying-to-capture-partial-amount +++ /dev/null @@ -1,4 +0,0 @@ -Significance: patch -Type: fix - -Fixed a Level 3 error occurring during the capture of an authorization for amounts lower than the initial authorization amount. diff --git a/changelog/fix-7301-descriptive-error-message-on-invalid-pm b/changelog/fix-7301-descriptive-error-message-on-invalid-pm deleted file mode 100644 index 798235980af..00000000000 --- a/changelog/fix-7301-descriptive-error-message-on-invalid-pm +++ /dev/null @@ -1,4 +0,0 @@ -Significance: patch -Type: fix - -Improved error message for invalid payment method diff --git a/changelog/fix-7588-woopay-subscription-variation b/changelog/fix-7588-woopay-subscription-variation deleted file mode 100644 index 06f44dc9845..00000000000 --- a/changelog/fix-7588-woopay-subscription-variation +++ /dev/null @@ -1,5 +0,0 @@ -Significance: patch -Type: fix -Comment: Edge case adding subscription_variation to WooPay button supported types - - diff --git a/changelog/fix-7592-update-transaction-order-id b/changelog/fix-7592-update-transaction-order-id deleted file mode 100644 index 0ef8cffd17f..00000000000 --- a/changelog/fix-7592-update-transaction-order-id +++ /dev/null @@ -1,4 +0,0 @@ -Significance: patch -Type: fix - -Fix missing order number in transaction reports CSV diff --git a/changelog/fix-7595-reports-customers b/changelog/fix-7595-reports-customers deleted file mode 100644 index e4ab131cb21..00000000000 --- a/changelog/fix-7595-reports-customers +++ /dev/null @@ -1,4 +0,0 @@ -Significance: patch -Type: fix - -Fix missing customer data from transactions report diff --git a/changelog/fix-7748-capture-notification-styles-are-broken b/changelog/fix-7748-capture-notification-styles-are-broken deleted file mode 100644 index 348106f98f8..00000000000 --- a/changelog/fix-7748-capture-notification-styles-are-broken +++ /dev/null @@ -1,4 +0,0 @@ -Significance: patch -Type: fix - -Fixed broken styles in authorization capture notifications diff --git a/changelog/fix-7750-include-discount-in-tooltip b/changelog/fix-7750-include-discount-in-tooltip deleted file mode 100644 index b600a611e92..00000000000 --- a/changelog/fix-7750-include-discount-in-tooltip +++ /dev/null @@ -1,4 +0,0 @@ -Significance: patch -Type: fix - -Include discount fee in fees tooltip diff --git a/changelog/fix-7834-zero-decimals-csv-export b/changelog/fix-7834-zero-decimals-csv-export deleted file mode 100644 index 1e5b2a1cf87..00000000000 --- a/changelog/fix-7834-zero-decimals-csv-export +++ /dev/null @@ -1,4 +0,0 @@ -Significance: patch -Type: fix - -Fix incorrect amounts caused by zero-decimal currencies on Transactions, Deposits and Deposits CSV export diff --git a/changelog/fix-7838-fraud-filters-html-encode-bug b/changelog/fix-7838-fraud-filters-html-encode-bug deleted file mode 100644 index 1b358176fe8..00000000000 --- a/changelog/fix-7838-fraud-filters-html-encode-bug +++ /dev/null @@ -1,4 +0,0 @@ -Significance: patch -Type: fix - -Fix country names with accents not showing correctly on international country fraud filter diff --git a/changelog/fix-7839-deposits-rest-api-docs b/changelog/fix-7839-deposits-rest-api-docs deleted file mode 100644 index b50f1644a81..00000000000 --- a/changelog/fix-7839-deposits-rest-api-docs +++ /dev/null @@ -1,4 +0,0 @@ -Significance: minor -Type: dev - -Added documentation for deposits REST API endpoints. diff --git a/changelog/fix-7913-woopay-automatewoo-referrals-integration b/changelog/fix-7913-woopay-automatewoo-referrals-integration deleted file mode 100644 index bace9a2cc9b..00000000000 --- a/changelog/fix-7913-woopay-automatewoo-referrals-integration +++ /dev/null @@ -1,4 +0,0 @@ -Significance: patch -Type: fix - -Fix WooPay integration with AutomateWoo - Refer a Friend extension. diff --git a/changelog/fix-7920-correct-account-overview-account-type-nullable b/changelog/fix-7920-correct-account-overview-account-type-nullable deleted file mode 100644 index 5db6d1382f4..00000000000 --- a/changelog/fix-7920-correct-account-overview-account-type-nullable +++ /dev/null @@ -1,5 +0,0 @@ -Significance: patch -Type: dev -Comment: No changelog entry required – minor TS interface fix with no user-facing changes - - diff --git a/changelog/fix-7958-transaction-details-dispute-details-broken-ui b/changelog/fix-7958-transaction-details-dispute-details-broken-ui new file mode 100644 index 00000000000..b196bc9910c --- /dev/null +++ b/changelog/fix-7958-transaction-details-dispute-details-broken-ui @@ -0,0 +1,5 @@ +Significance: patch +Type: fix +Comment: Not user-facing: fixes styling bug introduced in develop branch + + diff --git a/changelog/fix-account-currency-hook b/changelog/fix-account-currency-hook deleted file mode 100644 index 23d9628b19f..00000000000 --- a/changelog/fix-account-currency-hook +++ /dev/null @@ -1,4 +0,0 @@ -Significance: patch -Type: fix - -fix: account currency hook return value diff --git a/changelog/fix-apple-pay-including-tax b/changelog/fix-apple-pay-including-tax deleted file mode 100644 index 59afc2bef4f..00000000000 --- a/changelog/fix-apple-pay-including-tax +++ /dev/null @@ -1,4 +0,0 @@ -Significance: patch -Type: fix - -Fixed Apple Pay Double Tax Calculation Issue diff --git a/changelog/fix-jstest-regression-pr-7851 b/changelog/fix-jstest-regression-pr-7851 deleted file mode 100644 index 4308b603c02..00000000000 --- a/changelog/fix-jstest-regression-pr-7851 +++ /dev/null @@ -1,5 +0,0 @@ -Significance: patch -Type: dev -Comment: Fix JS regression test in PR 7851 - - diff --git a/changelog/fix-jsx-account-status-error-messages b/changelog/fix-jsx-account-status-error-messages deleted file mode 100644 index a45adc8b5ab..00000000000 --- a/changelog/fix-jsx-account-status-error-messages +++ /dev/null @@ -1,4 +0,0 @@ -Significance: patch -Type: fix - -Fix account status error messages with links. diff --git a/changelog/fix-pay-for-order-and-first-party-auth-compatibility b/changelog/fix-pay-for-order-and-first-party-auth-compatibility deleted file mode 100644 index 26182c064d4..00000000000 --- a/changelog/fix-pay-for-order-and-first-party-auth-compatibility +++ /dev/null @@ -1,4 +0,0 @@ -Significance: patch -Type: fix - -Pass the pay-for-order params to get the pre-fetch session data diff --git a/changelog/fix-refresh-payments-overview-account-balances-on-instant-deposit b/changelog/fix-refresh-payments-overview-account-balances-on-instant-deposit deleted file mode 100644 index 59ba1fb0bdd..00000000000 --- a/changelog/fix-refresh-payments-overview-account-balances-on-instant-deposit +++ /dev/null @@ -1,4 +0,0 @@ -Significance: patch -Type: fix - -Update account balances on the Payments Overview screen when an instant deposit is requested diff --git a/changelog/fix-test-support-phone b/changelog/fix-test-support-phone deleted file mode 100644 index 97abae072f7..00000000000 --- a/changelog/fix-test-support-phone +++ /dev/null @@ -1,5 +0,0 @@ -Significance: patch -Type: fix -Comment: Modified the test phone numbers supported by Stripe. - - diff --git a/changelog/fix-trim-woopay-source-url b/changelog/fix-trim-woopay-source-url new file mode 100644 index 00000000000..d0542cc8201 --- /dev/null +++ b/changelog/fix-trim-woopay-source-url @@ -0,0 +1,4 @@ +Significance: patch +Type: fix + +Checkout error when page URL is too long diff --git a/changelog/fix-update-payment-assets b/changelog/fix-update-payment-assets deleted file mode 100644 index 0b45545b774..00000000000 --- a/changelog/fix-update-payment-assets +++ /dev/null @@ -1,4 +0,0 @@ -Significance: patch -Type: update - -Actualized cards-related assets for settings and transactions pages. diff --git a/changelog/partially-ccleanup-legacy-upe-and-card b/changelog/partially-ccleanup-legacy-upe-and-card deleted file mode 100644 index 9e5386f594e..00000000000 --- a/changelog/partially-ccleanup-legacy-upe-and-card +++ /dev/null @@ -1,4 +0,0 @@ -Significance: minor -Type: update - -Cleanup the deprecated payment gateway processing - part II diff --git a/changelog/remove-flag-usage b/changelog/remove-flag-usage deleted file mode 100644 index cab11239829..00000000000 --- a/changelog/remove-flag-usage +++ /dev/null @@ -1,4 +0,0 @@ -Significance: minor -Type: fix - -Avoid using the removed deferred UPE flag diff --git a/changelog/revert-file-needed-for-plugin-update b/changelog/revert-file-needed-for-plugin-update deleted file mode 100644 index f4e5d1e3224..00000000000 --- a/changelog/revert-file-needed-for-plugin-update +++ /dev/null @@ -1,5 +0,0 @@ -Significance: patch -Type: dev -Comment: This is the file revert to avoid failures on plugin update. This is a temporary solution. Both removal & revert happen on develop meaning there is no change to the outside world. - - diff --git a/changelog/revert-prefetch-session-for-button b/changelog/revert-prefetch-session-for-button deleted file mode 100644 index bcb2e97e61e..00000000000 --- a/changelog/revert-prefetch-session-for-button +++ /dev/null @@ -1,4 +0,0 @@ -Significance: patch -Type: fix - -Revemoved pre-fretch session for button to prevent draft order creation diff --git a/changelog/subscriptions-6.6.0-1 b/changelog/subscriptions-6.6.0-1 deleted file mode 100644 index 9c70ea3d4ce..00000000000 --- a/changelog/subscriptions-6.6.0-1 +++ /dev/null @@ -1,4 +0,0 @@ -Significance: minor -Type: dev - -Deprecate the WC_Subscriptions_Synchroniser::add_to_recurring_cart_key(). Use WC_Subscriptions_Synchroniser::add_to_recurring_product_grouping_key() instead. diff --git a/changelog/subscriptions-6.6.0-2 b/changelog/subscriptions-6.6.0-2 deleted file mode 100644 index 98a24e2a8d8..00000000000 --- a/changelog/subscriptions-6.6.0-2 +++ /dev/null @@ -1,4 +0,0 @@ -Significance: minor -Type: dev - -Introduce a new wcs_get_subscription_grouping_key() function to generate a unique key for a subscription based on its billing schedule. This function uses the existing recurring cart key concept. diff --git a/changelog/subscriptions-core-6.6.0 b/changelog/subscriptions-core-6.6.0 deleted file mode 100644 index 192de7697f3..00000000000 --- a/changelog/subscriptions-core-6.6.0 +++ /dev/null @@ -1,4 +0,0 @@ -Significance: minor -Type: dev - -Updated subscriptions-core to version 6.6.0 diff --git a/changelog/subscriptions-core-6.6.0-3 b/changelog/subscriptions-core-6.6.0-3 deleted file mode 100644 index 39e3728713e..00000000000 --- a/changelog/subscriptions-core-6.6.0-3 +++ /dev/null @@ -1,4 +0,0 @@ -Significance: minor -Type: fix - -Fetch and update the `_cancelled_email_sent` meta in a HPOS compatibile way. diff --git a/changelog/subscriptions-core-6.6.0-4 b/changelog/subscriptions-core-6.6.0-4 deleted file mode 100644 index adf5488ac54..00000000000 --- a/changelog/subscriptions-core-6.6.0-4 +++ /dev/null @@ -1,4 +0,0 @@ -Significance: minor -Type: fix - -Ensure proper backfilling of subscription metadata (i.e. dates and cache) to the postmeta table when HPOS is enabled and compatibility mode (data syncing) is turned on. diff --git a/changelog/subscriptions-core-6.6.0-5 b/changelog/subscriptions-core-6.6.0-5 deleted file mode 100644 index fc15acdb576..00000000000 --- a/changelog/subscriptions-core-6.6.0-5 +++ /dev/null @@ -1,4 +0,0 @@ -Significance: minor -Type: fix - -Resolved an issue that would cause undefined $current_page, $max_num_pages, and $paginate variable errors when viewing a page with the subscriptions-shortcode. diff --git a/changelog/subscriptions-core-6.6.0-6 b/changelog/subscriptions-core-6.6.0-6 deleted file mode 100644 index df965094736..00000000000 --- a/changelog/subscriptions-core-6.6.0-6 +++ /dev/null @@ -1,4 +0,0 @@ -Significance: minor -Type: fix - -When HPOS is enabled and data compatibility mode is turned on, make sure subscription date changes made to postmeta are synced to orders_meta table. diff --git a/changelog/subscriptions-core-6.6.0-7 b/changelog/subscriptions-core-6.6.0-7 deleted file mode 100644 index 96c2cae1f2c..00000000000 --- a/changelog/subscriptions-core-6.6.0-7 +++ /dev/null @@ -1,4 +0,0 @@ -Significance: minor -Type: fix - -Prevents a PHP fatal error that occurs when the cart contains a renewal order item that no longer exists. diff --git a/changelog/subscriptions-core-6.6.0-8 b/changelog/subscriptions-core-6.6.0-8 deleted file mode 100644 index a2ffa0feb0c..00000000000 --- a/changelog/subscriptions-core-6.6.0-8 +++ /dev/null @@ -1,4 +0,0 @@ -Significance: minor -Type: fix - -When using the checkout block to pay for renewal orders, ensure the order's cart hash is updated to make sure the existing order can be used. diff --git a/changelog/update-4163-compatibility-service b/changelog/update-4163-compatibility-service deleted file mode 100644 index 3a524da05ae..00000000000 --- a/changelog/update-4163-compatibility-service +++ /dev/null @@ -1,4 +0,0 @@ -Significance: minor -Type: add - -Adding Compatibility Service to assist with flagging possible compatibility issues in the future. diff --git a/changelog/update-6320-rule-card-behavior-if-affected-by-other-config b/changelog/update-6320-rule-card-behavior-if-affected-by-other-config deleted file mode 100644 index 3755be13f4f..00000000000 --- a/changelog/update-6320-rule-card-behavior-if-affected-by-other-config +++ /dev/null @@ -1,4 +0,0 @@ -Significance: patch -Type: update - -Updates the behavior and display of the international IP address rule card if the rule is being affected by the WooCommerce core selling locations general option. diff --git a/changelog/update-6325-fraud-risk-link-text-in-settings b/changelog/update-6325-fraud-risk-link-text-in-settings deleted file mode 100644 index 3f37d6371ca..00000000000 --- a/changelog/update-6325-fraud-risk-link-text-in-settings +++ /dev/null @@ -1,4 +0,0 @@ -Significance: patch -Type: update - -Updates the anchor text for the fraud and risk tools documentation link on the Payments Settings page. diff --git a/changelog/update-change-setup-refund-policy-note-into-task b/changelog/update-change-setup-refund-policy-note-into-task deleted file mode 100644 index 08cf0d142a9..00000000000 --- a/changelog/update-change-setup-refund-policy-note-into-task +++ /dev/null @@ -1,4 +0,0 @@ -Significance: patch -Type: dev - -Remove "Set-up refund policy" Inbox note as superfluous. diff --git a/client/checkout/blocks/index.js b/client/checkout/blocks/index.js index deed017c0d9..0ce235a0086 100644 --- a/client/checkout/blocks/index.js +++ b/client/checkout/blocks/index.js @@ -34,6 +34,7 @@ import { } from '../constants.js'; import { getDeferredIntentCreationUPEFields } from './payment-elements'; import { handleWooPayEmailInput } from '../woopay/email-input-iframe'; +import wcpayTracks from 'tracks'; import wooPayExpressCheckoutPaymentMethod from '../woopay/express-button/woopay-express-checkout-payment-method'; import { isPreviewing } from '../preview'; @@ -113,6 +114,24 @@ Object.entries( enabledPaymentMethodsConfig ) } ); } ); +const addCheckoutTracking = () => { + const placeOrderButton = document.getElementsByClassName( + 'wc-block-components-checkout-place-order-button' + ); + if ( placeOrderButton.length ) { + placeOrderButton[ 0 ].addEventListener( 'click', () => { + const blocksCheckbox = document.getElementById( + 'radio-control-wc-payment-method-options-woocommerce_payments' + ); + if ( ! blocksCheckbox?.checked ) { + return; + } + + wcpayTracks.recordUserEvent( wcpayTracks.events.PLACE_ORDER_CLICK ); + } ); + } +}; + // Call handleWooPayEmailInput if woopay is enabled and this is the checkout page. if ( getUPEConfig( 'isWooPayEnabled' ) ) { if ( @@ -131,4 +150,5 @@ if ( getUPEConfig( 'isWooPayEnabled' ) ) { registerExpressPaymentMethod( paymentRequestPaymentMethod( api ) ); window.addEventListener( 'load', () => { enqueueFraudScripts( getUPEConfig( 'fraudServices' ) ); + addCheckoutTracking(); } ); diff --git a/client/checkout/classic/event-handlers.js b/client/checkout/classic/event-handlers.js index 00a2581b8a9..584495518be 100644 --- a/client/checkout/classic/event-handlers.js +++ b/client/checkout/classic/event-handlers.js @@ -26,6 +26,7 @@ import WCPayAPI from 'wcpay/checkout/api'; import apiRequest from '../utils/request'; import { handleWooPayEmailInput } from 'wcpay/checkout/woopay/email-input-iframe'; import { isPreviewing } from 'wcpay/checkout/preview'; +import wcpayTracks from 'tracks'; jQuery( function ( $ ) { enqueueFraudScripts( getUPEConfig( 'fraudServices' ) ); @@ -58,6 +59,18 @@ jQuery( function ( $ ) { return processPaymentIfNotUsingSavedMethod( $( this ) ); } ); + $( 'form.checkout' ).on( 'click', '#place_order', function () { + const isWCPay = document.getElementById( + 'payment_method_woocommerce_payments' + ).checked; + + if ( ! isWCPay ) { + return; + } + + wcpayTracks.recordUserEvent( wcpayTracks.events.PLACE_ORDER_CLICK ); + } ); + window.addEventListener( 'hashchange', () => { if ( window.location.hash.startsWith( '#wcpay-confirm-' ) ) { showAuthenticationModalIfRequired( api ); diff --git a/client/checkout/woopay/email-input-iframe.js b/client/checkout/woopay/email-input-iframe.js index f57c3b4e90f..4a2efe861e5 100644 --- a/client/checkout/woopay/email-input-iframe.js +++ b/client/checkout/woopay/email-input-iframe.js @@ -263,7 +263,10 @@ export const handleWooPayEmailInput = async ( ); urlParams.append( 'wcpayVersion', getConfig( 'wcpayVersionNumber' ) ); urlParams.append( 'is_blocks', isBlocksCheckout ? 'true' : 'false' ); - urlParams.append( 'source_url', window.location.href ); + urlParams.append( + 'source_url', + wcSettings?.storePages?.checkout?.permalink + ); urlParams.append( 'viewport', `${ viewportWidth }x${ viewportHeight }` diff --git a/client/components/woopay/save-user/checkout-page-save-user.js b/client/components/woopay/save-user/checkout-page-save-user.js index 8edd7c583d4..c38bcae2929 100644 --- a/client/components/woopay/save-user/checkout-page-save-user.js +++ b/client/components/woopay/save-user/checkout-page-save-user.js @@ -73,7 +73,8 @@ const CheckoutPageSaveUser = ( { isBlocksCheckout } ) => { ? {} : { save_user_in_woopay: isSaveDetailsChecked, - woopay_source_url: window.location.href, + woopay_source_url: + wcSettings?.storePages?.checkout?.permalink, woopay_is_blocks: true, woopay_viewport: `${ viewportWidth }x${ viewportHeight }`, woopay_user_phone_field: { @@ -291,7 +292,9 @@ const CheckoutPageSaveUser = ( { isBlocksCheckout } ) => {
- $15.00 - - USD - - - Pending - -
- Fees: - -$0.00 -
- -- Net: +
$15.00 + + USD + + + Pending +
++ Fees: + -$0.00 +
+ ++ Net: + $15.00 +
+
-
- { formatExplicitCurrency( - balance.amount, - balance.currency - ) } -
- ) : null } - { balance.refunded ? ( -- { `${ - disputeFee - ? __( - 'Deducted', - 'woocommerce-payments' - ) - : __( - 'Refunded', - 'woocommerce-payments' - ) - }: ` } - { formatExplicitCurrency( - -balance.refunded, - balance.currency - ) } -
- ) : ( - '' - ) } -
+
+ { formatExplicitCurrency(
+ balance.amount,
+ balance.currency
+ ) }
+
+ { `${
+ disputeFee
+ ? __(
+ 'Deducted',
+ 'woocommerce-payments'
+ )
+ : __(
+ 'Refunded',
+ 'woocommerce-payments'
+ )
+ }: ` }
+ { formatExplicitCurrency(
+ -balance.refunded,
+ balance.currency
+ ) }
+
- { `${ __(
- 'Loan repayment',
- 'woocommerce-payments'
- ) }: ` }
- { formatExplicitCurrency(
- charge.paydown.amount,
- balance.currency
- ) }
+
+ { `${ __(
+ 'Loan repayment',
+ 'woocommerce-payments'
+ ) }: ` }
+ { formatExplicitCurrency(
+ charge.paydown.amount,
+ balance.currency
+ ) }
+
+
+
- $20.00 - - usd - - - Payment authorized - -
- Fees: - -$0.70 -
- -- Net: - $19.30 +
+ $20.00 + + usd + + + Payment authorized +
++ Fees: + -$0.70 +
+ ++ Net: + $19.30 +
+- $20.00 - - usd - - - Needs review - -
- Fees: - -$0.70 -
- -- Net: - $19.30 +
+ $20.00 + + usd + + + Needs review +
++ Fees: + -$0.70 +
+ ++ Net: + $19.30 +
+- $20.00 - - usd - - - Paid - -
- Fees: - -$0.70 -
- -- Net: - $19.30 +
+ $20.00 + + usd + + + Paid +
++ Fees: + -$0.70 +
+ ++ Net: + $19.30 +
+- $20.00 - - usd - - - Paid - -
- Fees: - -$0.70 -
- -- Net: - $19.30 +
+ $20.00 + + usd + + + Paid +
++ Fees: + -$0.70 +
+ ++ Net: + $19.30 +
+- $20.00 - - usd - - - Paid - -
- Fees: - -$0.70 -
- -- Net: - $19.30 +
+ $20.00 + + usd + + + Paid +
++ Fees: + -$0.70 +
+ ++ Net: + $19.30 +
+- $20.00 - - usd - - - Paid - -
- Fees: - -$0.70 -
- -- Net: - $19.30 +
+ $20.00 + + usd + + + Paid +
++ Fees: + -$0.70 +
+ ++ Net: + $19.30 +
+- $20.00 - - usd - - - Refunded - -
- Refunded: - -$20.00 -
-- Fees: - -$0.70 -
- -- Net: - -$0.70 +
+ $20.00 + + usd + + + Refunded +
++ Refunded: + -$20.00 +
++ Fees: + -$0.70 +
+ ++ Net: + -$0.70 +
+- - - USD - - -
- Fees: - $0.00 -
- -- Net: - $0.00 +
+ + + USD + +
++ Fees: + $0.00 +
+ ++ Net: + $0.00 +
+- $20.00 - - usd - - - Partial refund - -
- Refunded: - -$12.00 -
-- Fees: - -$0.70 -
- -- Net: - $7.30 +
+ $20.00 + + usd + + + Partial refund +
++ Refunded: + -$12.00 +
++ Fees: + -$0.70 +
+ ++ Net: + $7.30 +
+- $20.00 - - usd - - - Paid - -
- Fees: - -$0.70 -
- -- Net: - $19.30 +
+ $20.00 + + usd + + + Paid +
++ Fees: + -$0.70 +
+ ++ Net: + $19.30 +
+- $20.00 - - usd - - - Disputed: Won - -
- Fees: - -$0.70 -
- -- Net: - $19.30 +
+ $20.00 + + usd + + + Disputed: Won +
++ Fees: + -$0.70 +
+ ++ Net: + $19.30 +
+- - Amount placeholder - -
+
- Fee amount + Amount placeholder
- -+
+ + Fee amount + +
+ ++ + Net amount + +
+- $1,500.00 - - usd - - - Paid - -
- Fees: - -$74.00 -
- -- Net: - $1,426.00 +
+ $1,500.00 + + usd + + + Paid +
++ Fees: + -$74.00 +
+ ++ Net: + $1,426.00 +
+