public static function calculateTaxClass($amountInclTax, $taxAmount)
    {
        $taxClasses = array(
            0 => 'N',
            9 => 'L',
            21 => 'H'
        );

        $taxRate = self::calculateTaxPercentage($amountInclTax, $taxAmount);

        $nearestTaxRate = self::nearest($taxRate, array_keys($taxClasses));
        return $taxClasses[$nearestTaxRate];
    }
public static function calculateTaxClass($amountInclTax, $taxAmount)
    {
        $taxClasses = array(
            0 => 'N',
            9 => 'L',
            21 => 'H'
        );

        $taxRate = self::calculateTaxPercentage($amountInclTax, $taxAmount);

        $nearestTaxRate = self::nearest($taxRate, array_keys($taxClasses));
        return $taxClasses[$nearestTaxRate];
    }
public static function calculateTaxClass ( $ amountInclTax , $ taxAmount ) { $ taxClasses = array ( 0 => 'N' , 9 => 'L' , 21 => 'H' ) ; $ taxRate = self :: calculateTaxPercentage ( $ amountInclTax , $ taxAmount ) ; $ nearestTaxRate = self :: nearest ( $ taxRate , array_keys ( $ taxClasses ) ) ; return $ taxClasses [ $ nearestTaxRate ] ; }
Determine the tax class to send to Pay.nl

@param int|float $amountInclTax
@param int|float $taxAmount
@return string The tax class (N, L or H)
Determine the tax class to send to Pay . nl