Mpociot\VatCalculator\VatCalculator::shouldCollectVAT PHP Method

shouldCollectVAT() public method

Determines if you need to collect VAT for the given country code.
public shouldCollectVAT ( $countryCode ) : boolean
$countryCode
return boolean
    public function shouldCollectVAT($countryCode)
    {
        $taxKey = 'vat_calculator.rules.' . strtoupper($countryCode);
        return isset($this->taxRules[strtoupper($countryCode)]) || isset($this->config) && $this->config->has($taxKey);
    }