Skip to content

Commit 2c97705

Browse files
committed
Merge trunk v5.1.0 into develop
2 parents 8393554 + 9cca596 commit 2c97705

File tree

61 files changed

+105
-237
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

61 files changed

+105
-237
lines changed

changelog.txt

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,55 @@
11
*** WooCommerce Payments Changelog ***
22

3+
= 5.1.0 - 2022-11-30 =
4+
* Add - Add a counter of pending authorizations to Uncaptured tab in Transactions page.
5+
* Add - Added support for a WooPay express checkout button on checkout blocks. This feature is currently behind a feature flag and is not yet publicly available.
6+
* Add - Adds encryption to the exposed `client_secret` to harden the store against card testing attacks
7+
* Add - Add uncaptured transactions count badge to Transactions menu.
8+
* Add - Enable the improvements to the authorization and capture workflow, that were hidden behind a feature flag.
9+
* Add - Improve fingerprint mechanism on checkout page
10+
* Add - New wcs_get_orders_with_meta_query() helper function to query for orders and subscriptions.
11+
* Add - Send merchant's setting for ship_to_billing_address_only to platform checkout
12+
* Add - Support creating new platform checkout user from checkout blocks.
13+
* Fix - Fix an error in the Uncaptured transactions table when it is sorted using the Capture by column.
14+
* Fix - Fix blocks checkout when card testing prevention is active
15+
* Fix - fixed bug that would not allow customers to add new payment methods to WooPay
16+
* Fix - Fixed bug that would not allow customers using firefox to log in to WooPay sometimes
17+
* Fix - Fix the "Learn more" link on Express Payments section
18+
* Fix - Fix undefined element error on Cart block for WooPay enabled site.
19+
* Fix - Handle errors in retrieving a file gracefully
20+
* Fix - On HPOS stores, ensure payment tokens are copied from the subscription to the renewal order.
21+
* Fix - On HPOS stores, make sure the links in the related-orders table redirect to the new Edit Order URL.
22+
* Fix - On HPOS stores, when a subscription is loaded from the database, make sure all core subscription properties are read directly from meta.
23+
* Fix - On HPOS stores, when querying for subscriptions with wcs_get_orders_with_meta_query() with status 'any', ensure that wc_get_orders() queries for subscription statuses.
24+
* Fix - On HPOS stores, when saving a subscription make sure subscription properties (ie `_requires_manual_renewal`) are saved to the database.
25+
* Fix - Processing a manual renewal order with HPOS and data syncing enabled correctly saves the related order cache metadata on the subscription and prevents the post and order meta data getting out of sync.
26+
* Fix - Redirect modal not closing when customer clicks back button on safari
27+
* Fix - Refactor `WCS_Meta_Box_Schedule::save` to support HPOS stores, fixing a PHP warning notice when updating an order via the Edit Order screen.
28+
* Fix - Return a fresh instance of the renewal order after creating it. Fixes caching issues on HPOS sites where the returned order has no line items.
29+
* Fix - Set payment tokens when copying data between orders and subscriptions in a CRUD compatible way. Fixes PHP notices during renewal order process.
30+
* Fix - Update margin to fix cropping of search field for Multi-Currency currency search
31+
* Fix - Use botwoo user for a job in the post-release-updates workflow
32+
* Fix - Use supported CRUD apis to determine if subscriptions are present on store (`wcs_do_subscriptions_exist`)
33+
* Fix - When viewing My Account > Subscriptions, fix an issue where no subscriptions were listed when HPOS is enabled.
34+
* Fix - With HPOS and data syncing enabled, updating the status of a pending manual renewal order to a paid status correctly activates the related subscription.
35+
* Update - Display related orders table when viewing the new "Edit Order" page (HPOS enabled stores).
36+
* Update - Don't load WooPay scripts and styles when the WCPay payment gateway isn't available.
37+
* Update - Refactor our Related Orders data store classes (WCS_Related_Order_Store_Cached_CPT and WCS_Related_Order_Store_CPT) to use CRUD methods to support subscriptions and orders stored in HPOS.
38+
* Update - Refactor the `wcs_is_subscription` helper function to support HPOS.
39+
* Update - Replace instances of `get_posts()` across codebase with new wcs_get_orders_with_meta_query() function.
40+
* Update - Update copy of warning modal appearing while deactivating Subscriptions extension.
41+
* Dev - Add API docs for authorization endpoints
42+
* Dev - Add description for capture authorization endpoint
43+
* Dev - Add new workflow to amend (or generate) the changelog for the release
44+
* Dev - Add PHPCS `PEAR.WhiteSpace.ObjectOperatorIndent` rule.
45+
* Dev - Bump minimum required version of WooCommerce to 6.9 and WordPress to 5.9
46+
* Dev - Fix section divider in Authentication API docs
47+
* Dev - Introduce a WC_Subscription::set_status() function to handle subscriptions set with a draft or auto-draft status. Replaces the need for the overriding WC_Subscription::get_status() which has been deleted.
48+
* Dev - Manual renewal orders created with HPOS and data syncing enabled are properly linked to the subscription by its `_subscription_renewal` meta and backfilled to posts table.
49+
* Dev - Refactor the saving of subscription dates in the subscription datastore to separate fetching changes and saving. Enables backfilling subscription dates when HPOS syncing is enabled.
50+
* Dev - Removed the deprecated "wcs_subscriptions_for_{$relation_type}_order" dynamic hook used to filter the list of related subscriptions for the given relation type. The following hooks have been removed with no alternative: wcs_subscriptions_for_renewal_order, wcs_subscriptions_for_switch_order, wcs_subscriptions_for_resubscribe_order
51+
* Dev - Show uncaptured transactions tab only when some specific criteria is met
52+
353
= 5.0.3 - 2022-11-15 =
454
* Fix - Purchasing a synced subscription with WCPay Subscriptions correctly sets the next payment date to the sync date in Stripe.
555

changelog/add-1427-style-woopay-express-checkout-button

Lines changed: 0 additions & 5 deletions
This file was deleted.

changelog/add-4504-auth-count-badge

Lines changed: 0 additions & 4 deletions
This file was deleted.

changelog/add-4772-fingerprintjs

Lines changed: 0 additions & 4 deletions
This file was deleted.

changelog/add-4774-cloak-client-secret

Lines changed: 0 additions & 4 deletions
This file was deleted.

changelog/add-4933-authorizations-drop-auth-capture-project-feature-flags

Lines changed: 0 additions & 4 deletions
This file was deleted.

changelog/add-amend-changelog-workflow

Lines changed: 0 additions & 4 deletions
This file was deleted.

changelog/add-api-docs-authorizations

Lines changed: 0 additions & 4 deletions
This file was deleted.

changelog/add-show-uncaptured-when-checks-are-meeted

Lines changed: 0 additions & 4 deletions
This file was deleted.

changelog/delete-test-site-yml

Lines changed: 0 additions & 5 deletions
This file was deleted.

0 commit comments

Comments
 (0)