Mpociot\VatCalculator\Http\Controller::getCountryCode PHP Method

getCountryCode() public method

Returns the tax rate for the given country.
public getCountryCode ( ) : Illuminate\Http\Response
return Illuminate\Http\Response
    public function getCountryCode()
    {
        return ['country_code' => $this->calculator->getIPBasedCountry()];
    }