public add_fee ( string $name, float $amount, boolean $taxable = false, string $tax_class = '' ) | ||
$name | string | Unique name for the fee. Multiple fees of the same name cannot be added. |
$amount | float | Fee amount. |
$taxable | boolean | (default: false) Is the fee taxable? |
$tax_class | string | (default: '') The tax class for the fee if taxable. A blank string is standard tax class. |