LLMS_Transaction::get_refundable_amount()
Retrieves the amount of the transaction that can be refunded.
Return Return
(float)
Source Source
File: includes/models/model.llms.transaction.php
public function get_refundable_amount() {
$amount = $this->get_price( 'amount', array(), 'float' );
$refunded = $this->get_price( 'refund_amount', array(), 'float' );
return $amount - $refunded;
}
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
| Version | Description |
|---|---|
| 3.0.0 | Introduced. |