woocommerce/plugins/woocommerce-blocks/assets/js/blocks-registry/payment-methods
Raluca Stan a2f39d07f1 Add documentation for registerPaymentMethodExtensionCallbacks (https://github.com/woocommerce/woocommerce-blocks/pull/4834)
* Improve the type for callbacks registered by extensions

The previous type was CanMakePaymentCallback, used for the payment methods's own canMakePayment callbacks, which could also return Promises. In order to eliminate the confusion, a new type has been created that defines callbacks that only return true or false.

* Document registerPaymentMethodExtensionCallbacks

* Update docs/extensibility/filtering-payment-methods.md

Co-authored-by: Thomas Roberts <5656702+opr@users.noreply.github.com>

* Add information about payment method name in documentation

Co-authored-by: Thomas Roberts <5656702+opr@users.noreply.github.com>
2021-09-24 14:34:07 +01:00
..
test Add support for extensions to filter express payment methods (https://github.com/woocommerce/woocommerce-blocks/pull/4774) 2021-09-23 10:09:55 +01:00
assertions.ts Add Typescript to /blocks-registry/payment-methods (https://github.com/woocommerce/woocommerce-blocks/pull/4702) 2021-09-15 18:36:02 +02:00
express-payment-method-config.ts Add support for extensions to filter express payment methods (https://github.com/woocommerce/woocommerce-blocks/pull/4774) 2021-09-23 10:09:55 +01:00
extensions-config.ts Add documentation for registerPaymentMethodExtensionCallbacks (https://github.com/woocommerce/woocommerce-blocks/pull/4834) 2021-09-24 14:34:07 +01:00
index.ts Add Typescript to /blocks-registry/payment-methods (https://github.com/woocommerce/woocommerce-blocks/pull/4702) 2021-09-15 18:36:02 +02:00
payment-method-config-helper.ts Add documentation for registerPaymentMethodExtensionCallbacks (https://github.com/woocommerce/woocommerce-blocks/pull/4834) 2021-09-24 14:34:07 +01:00
payment-method-config.tsx Add support for extensions to filter express payment methods (https://github.com/woocommerce/woocommerce-blocks/pull/4774) 2021-09-23 10:09:55 +01:00
registry.ts Add documentation for registerPaymentMethodExtensionCallbacks (https://github.com/woocommerce/woocommerce-blocks/pull/4834) 2021-09-24 14:34:07 +01:00