shopp_order_amt_authorized()

get the current amount authorized on order

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

Description

get the current amount authorized on order

Examples

get the current authorized amount on order by id

// get authorized amount for order 102
$authorized = shopp_order_amt_authorized( 102 );

get the current authorized amount by transaction id

// get authorized amount for order with transaction id G1Y3NQ43L1V131LCN
$authorized = shopp_order_amt_authorized( 'G1Y3NQ43L1V131LCN', '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