public static function allowVoid($gateway)
    {
        $setting = self::getConfigSetting($gateway, 'can_void');
        // if the setting isn't present, default to true, otherwise check against falsy values
        return ($setting === null || !($setting == false || $setting === 'off' || $setting === 'false'));
    }
public static function allowVoid($gateway)
    {
        $setting = self::getConfigSetting($gateway, 'can_void');
        // if the setting isn't present, default to true, otherwise check against falsy values
        return ($setting === null || !($setting == false || $setting === 'off' || $setting === 'false'));
    }
public static function allowVoid ( $ gateway ) { $ setting = self :: getConfigSetting ( $ gateway , 'can_void' ) ; // if the setting isn't present, default to true, otherwise check against falsy values return ( $ setting === null || ! ( $ setting == false || $ setting === 'off' || $ setting === 'false' ) ) ; }
Whether or not the given gateway should allow voiding of payments
@param string $gateway the gateway name
@return bool
Whether or not the given gateway should allow voiding of payments