def METHOD_NAME(self, task):
    if task.data["service"] == self.classname and "ticket" in task.data:
        res = self.load(
            self.RESPOND_URL,
            post={
                "action": "SETBADIMAGE",
                "username": self.config.get("username"),
                "password": self.config.get("password"),
                "imageid": task.data["ticket"],
            },
        )
        if res == "SUCCESS":
            self.log_info(self._("Bad captcha solution received, requested refund"))
        else:
            self.log_error(
                self._("Bad captcha solution received, refund request failed"), res
            )