getPreCheckoutQuery()->answer(true); // If we do make certain checks, you can define the error message displayed to the user like this. // return $this->getPreCheckoutQuery()->answer(false, [ // 'error_message' => 'Registration (or whatever) required...', // ]); } }