SilverShop\Model\Order::TotalOutstanding
Calculate how much is left to be paid on the order.
Enforces rounding precision. Payments that have been authorized via a non-manual gateway should count towards the total paid amount. However, it's possible to exclude these by setting the $includeAuthorized parameter to false, which is useful to determine the status of the Order. Order status should only change to 'Paid' when all payments are 'Captured'.
Signature
public function TotalOutstanding([boolean
$includeAuthorized = true] )
Parameters
$includeAuthorized
— boolean- whether or not to include authorized payments (excluding manual payments)
Returns
- float