$method the payment method. See PaymentMethodsResponse::toArray() output */ public function can_display_widget_for_method( $product, $method ): bool; /** * Get enabledForServices from general settings. */ public function is_enabled_for_services( ?string $country = null ): bool; /** * Get allowFirstServicePaymentDelay from general settings. */ public function is_allow_first_service_payment_delay( ?string $country = null ): bool; /** * Get allowServiceRegistrationItems from general settings. */ public function is_allow_service_registration_items( ?string $country = null ): bool; /** * Get defaultServicesEndDate from general settings. */ public function get_default_services_end_date(): string; /** * Get the reference of a given product */ public function get_reference( WC_Product $product ): string; /** * Get product name */ public function get_name( WC_Product $product ): string; }