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

Get the total amount of the transaction after deducting refunds


Parameters Parameters

$price_args

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

Default value: array()

$format

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

Default value: 'html'


Top ↑

Return Return

(mixed)


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

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.