shopp_order_txnstatus_update

called on transaction/payment status update.

add_action('shopp_order_txnstatus_update', [callback]);

@param string $txnstatus the new payment status of the order
@param Purchase $Purchase the purchase object

Description

Runs when the transaction status has been updated in the order manager admin. Passed the new status and the Purchase object. Useful for running code which depends on the state of the transaction.

Example

add_action('shopp_order_txnstatus_update', 'my_function', 10, 2);
function my_function ( $txnstatus, $Purchase ) {
// do stuff
}

See Also

You must be logged in to post a comment.

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

Skip to toolbar