AbstractPaymentMethodType
AbstractPaymentMethodType class.
Description Description
Source Source
File: packages/woocommerce-blocks/src/Payments/Integrations/AbstractPaymentMethodType.php
Changelog Changelog
Version | Description |
---|---|
2.6.0 | Introduced. |
Methods Methods
- get_editor_script_handles — Returns an array of script handles to enqueue in the admin context.
- get_name — Returns the name of the payment method.
- get_payment_method_data — An array of key, value pairs of data made available to payment methods client side.
- get_payment_method_script_handles — Returns an array of script handles to enqueue for this payment method in the frontend context
- get_payment_method_script_handles_for_admin — Returns an array of script handles to enqueue for this payment method in the admin context
- get_script_data — An array of key, value pairs of data made available to the block on the client side.
- get_script_handles — Returns an array of script handles to enqueue in the frontend context.
- get_setting — Get a setting from the settings array if set.
- get_supported_features — Returns an array of supported features.
- is_active — Returns if this payment method should be active. If false, the scripts will not be enqueued.