LLMS_Transaction::get_net_amount( array $price_args = array(), string $format = 'html' )

Get the total amount of the transaction after deducting refunds

Parameters Parameters


(array) (Optional) array of arguments that can be passed to llms_price()

Default value: array()


(string) (Optional) format conversion method [html|raw|float]

Default value: 'html'

Top ↑

Return Return


Top ↑

Source Source

File: includes/models/model.llms.transaction.php

	public function get_net_amount( $price_args = array(), $format = 'html' ) {
		$amount = $this->get_price( 'amount', array(), 'float' );
		$refund = $this->get_price( 'refund_amount', array(), 'float' );
		return llms_price( $amount - $refund, $price_args, $format );

Top ↑

Changelog Changelog

Version Description
3.0.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.