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> |
||
---|---|---|
.. | ||
add-to-cart-form | ||
cart-checkout | ||
editor | ||
shared | ||
test | ||
container-width-context.js | ||
index.js | ||
query-state-context.js | ||
store-notices-context.js | ||
utils.js |