shopp_order_amt_refunded()

get the current amount refunded on order

shopp_order_amt_refunded ( $id, $by )

@param int $id the order id or txn id
@param string $by (optional default:id) lookup by 'id', or 'trans'
@return float|bool float amount refunded on the order, bool false if order does not exist

Description

get the current amount refunded on order

Examples

get the current refunded amount on order by id

// get refunded amount for order 104
$refunded = shopp_order_amt_refunded( 104 );

get the current refunded amount by transaction id

// get refunded amount for order with transaction id KKE77KQA3EHZTH7SE
$refunded = shopp_order_amt_refunded( 'KKE77KQA3EHZTH7SE', 'trans' );

See Also

You must be logged in to post a comment.

© Ingenesis Limited. Shopp™ is a registered trademark of Ingenesis Limited.

Skip to toolbar