[] See PaymentMethodsResponse::toArray() output */ public function get_all_payment_methods( ?string $store_id, ?string $merchant, $cache = false ): array; /** * Check if the payment method data matches a valid payment method. */ public function is_payment_method_data_valid( ?Payment_Method_Data $data ): bool; /** * Look for available payment methods which can be used with the widget * * @return array[] */ public function get_all_widget_compatible_payment_methods( string $store_id, ?string $merchant ): array; /** * Look for available payment methods that can be used with part payments * * @throws Throwable * * @return array[] */ public function get_all_mini_widget_compatible_payment_methods( string $store_id, ?string $merchant ): array; /** * Check if the current page is the order pay page */ public function is_order_pay_page(): bool; /** * Check if the current page is the checkout page */ public function is_checkout(): bool; }