function PaymentLineItem::unitAmount in Payment 7
Return this line item's unit amount.
Parameters
boolean $tax: Whether to include taxes or not.
Return value
float
File
- ./
payment.classes.inc, line 1135 - The API and related functions for executing and managing payments.
Class
- PaymentLineItem
- A payment line item.
Code
function unitAmount($tax) {
return $this->amount * ($tax ? $this->tax_rate + 1 : 1);
}