def METHOD_NAME(
    self, payment_information: "PaymentData", previous_value
) -> "GatewayResponse":
    if not self.active:
        return previous_value
    return refund(payment_information, self._get_gateway_config())