public static function allowPartialRefund($gateway)
    {
        return (
            self::configToConstant($gateway, 'can_refund') === self::PARTIAL
            || self::configToConstant($gateway, 'can_refund') === self::MULTIPLE
        );
    }