diff --git a/lib/Plugin/Services/WC_EBANX_Capture_Payment.php b/lib/Plugin/Services/WC_EBANX_Capture_Payment.php index 7a23dabd..45f4aec0 100644 --- a/lib/Plugin/Services/WC_EBANX_Capture_Payment.php +++ b/lib/Plugin/Services/WC_EBANX_Capture_Payment.php @@ -55,7 +55,7 @@ public static function add_order_capture_button_css() { * * @return array */ - public function add_auto_capture_dropdown( $actions ) { + public static function add_auto_capture_dropdown( $actions ) { global $theorder; if ( is_array( $actions ) && $theorder->get_status() === 'on-hold' diff --git a/lib/Plugin/Services/WC_EBANX_Checker.php b/lib/Plugin/Services/WC_EBANX_Checker.php index bf550318..ffb2a40c 100644 --- a/lib/Plugin/Services/WC_EBANX_Checker.php +++ b/lib/Plugin/Services/WC_EBANX_Checker.php @@ -286,7 +286,7 @@ public static function check_https_protocol( $context ) { * * @throws Exception Param not found exception. */ - public function validate_document() { + public static function validate_document() { if ( \WC_EBANX_Request::has( 'billing_country' ) && \WC_EBANX_Request::read( 'billing_country' ) === 'AR'