PayPal\Api\Tax::setPercent PHP Method

setPercent() public method

The rate of the specified tax. Valid range is from 0.001 to 99.999.
public setPercent ( string | double $percent )
$percent string | double
    public function setPercent($percent)
    {
        NumericValidator::validate($percent, "Percent");
        $percent = FormatConverter::formatToPrice($percent);
        $this->percent = $percent;
        return $this;
    }