getTaxRateForLocation() public method

If a postal code is provided, it will try to lookup the different postal code exceptions that are possible.
public getTaxRateForLocation ( string $countryCode, string | null $postalCode = null, boolean | false $company = false ) : float
$countryCode string
$postalCode string | null
$company boolean | false
return float
示例#1
0
 /**
  * Returns the tax rate for the given country code and postal code.
  *
  * @return \Illuminate\Http\Response
  */
 public function getTaxRateForLocation($countryCode = null, $postalCode = null)
 {
     return ['tax_rate' => $this->calculator->getTaxRateForLocation($countryCode, $postalCode)];
 }