8395954c7a
* handle plain options passed to registerPaymentMethod: - no need for a callback dance - support the previous API: if a function is passed, call it as before * update Stripe for new registerPaymentMethod interface * update docs & all built-in payment methods to simpler API * handle plain options arg to registerExpressPaymentMethod: - add legacy fallback if passed a function - update stripe express payment method - update docs - remove unused `assertValidPaymentMethodCreator` util * use correct case for `JavaScript` Co-authored-by: Darren Ethier <darren@roughsmootheng.in> * typedefs for payment registration options + tidies for regular methods * typedef express payment options arg & tidy stripe/payment-request: - use camelCase for config instance (not a constructor/type) * mention typedefs in payment method dev docs * use @wordpress/deprecated to warn if callback passed to payment register * update unit tests for new payment method API Co-authored-by: Darren Ethier <darren@roughsmootheng.in> |
||
---|---|---|
.. | ||
block-client-apis | ||
blocks | ||
contributors | ||
extensibility | ||
releases | ||
testing | ||
theming | ||
readme.md |
readme.md
WooCommerce Blocks Handbook
The WooCommerce Blocks Handbook provides documentation for designers and developers on how to extend or contribute to blocks, and how internal developers should handle new releases.
Document | Description |
---|---|
Contributing | These documents explain how you can contribute to the development of the blocks plugin, development best practices, and how to help with testing. |
Releases | These documents cover how to release and test new versions of the blocks plugin. |
Blocks | This documentation covers functionality specific to certain Blocks. |
Block Client APIs | This documentation covers API interfaces within Blocks. In most cases, these docs describe APIs and interfaces that are internal only, and thus are provided to assist with developing the blocks in this repository. Documentation will tend to focus on high level overviews. |
Store API (REST API) | These documents cover the Store API used to get product data on the frontend. |
Extensibility | These documents cover extensibility of WooCommerce Blocks. |
Theming | These documents cover theming for blocks, styles, CSS classnames and other theming best practices. |