There’s a new version of WooCommerce Blocks available! Version 4.8.0 is now available on WordPress.org and GitHub.
This release includes exposing additional data to registered payment methods and some more bug fixes for the Cart and Checkout blocks. Please check the changelog below for more information.
Dev note
The shouldSavePayment
value is now available as a prop for registered payment methods. This helps payment methods that need to know the value of this checked item client side before sending info to the server.
The onPaymentProcessing
event can now be observed by saved payment methods that implement the savedTokenComponent
configuration property.
Changelog
Enhancements
- Registered payment methods now have access to the
shouldSavePayment
prop in their components (which indicates whether the shopper has checked the save payment method checkbox). (3990) - Payment methods implementing the
savedTokenComponent
configuration property will now have theonPaymentProcessing
event available to the registered component. (3982)
Leave a Reply