Integrations
4 months ago
Api.php
2 years ago
PaymentMethodRegistry.php
2 years ago
PaymentMethodTypeInterface.php
2 years ago
PaymentMethodTypeInterface.php
45 lines
| 1 | <?php |
| 2 | namespace Automattic\WooCommerce\Blocks\Payments; |
| 3 | |
| 4 | use Automattic\WooCommerce\Blocks\Integrations\IntegrationInterface; |
| 5 | |
| 6 | interface PaymentMethodTypeInterface extends IntegrationInterface { |
| 7 | /** |
| 8 | * Returns if this payment method should be active. If false, the scripts will not be enqueued. |
| 9 | * |
| 10 | * @return boolean |
| 11 | */ |
| 12 | public function is_active(); |
| 13 | |
| 14 | /** |
| 15 | * Returns an array of script handles to enqueue for this payment method in |
| 16 | * the frontend context |
| 17 | * |
| 18 | * @return string[] |
| 19 | */ |
| 20 | public function get_payment_method_script_handles(); |
| 21 | |
| 22 | /** |
| 23 | * Returns an array of script handles to enqueue for this payment method in |
| 24 | * the admin context |
| 25 | * |
| 26 | * @return string[] |
| 27 | */ |
| 28 | public function get_payment_method_script_handles_for_admin(); |
| 29 | |
| 30 | /** |
| 31 | * An array of key, value pairs of data made available to payment methods |
| 32 | * client side. |
| 33 | * |
| 34 | * @return array |
| 35 | */ |
| 36 | public function get_payment_method_data(); |
| 37 | |
| 38 | /** |
| 39 | * Get array of supported features. |
| 40 | * |
| 41 | * @return string[] |
| 42 | */ |
| 43 | public function get_supported_features(); |
| 44 | } |
| 45 |