shopp_order_amt_captured()

get the current amount captured on order

shopp_order_amt_captured ( $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 captured on the order, bool false if order does not exist

Description

get the current amount captured on order

Examples

get the current captured amount on order by id

// get captured amount for order 103
$captured = shopp_order_amt_captured( 103 );

get the current captured amount by transaction id

// get captured amount for order with transaction id KKE77KQA3EHZTH7SE
$captured = shopp_order_amt_captured( '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