This action runs when a payment is marked as complete.
do_action( 'rpress_complete_purchase', $payment_id );
Simple example
function pw_rpress_on_complete_purchase( $payment_id ) { // Basic payment meta $payment_meta = rpress_get_payment_meta( $payment_id ); // Cart details $cart_items = rpress_get_payment_meta_cart_details( $payment_id ); // do something with payment data here } add_action( 'rpress_complete_purchase', 'pw_rpress_on_complete_purchase' );