The  gravityflowwoocommerce_paid_payment_status filter allows you to customize what status is returned after capturing payment.

See WooCommerce Capture Payment Step for more details.


Parameter Type Definition
$status String The status to return after payment has been captured.
$step Gravity_Flow_Step The current step.


Example 1 - Change status to completed

By default, we set the payment status to "Processing" after capturing it. You can change it to "Completed" if that's what you need.

add_filter( 'gravityflowwoocommerce_paid_payment_status', 'my_gravityflowwoocommerce_paid_payment_status', 10, 2 );
function my_gravityflowwoocommerce_paid_payment_status( $status, $step ) { //Ensure you are only adjusting the desired form/step if ( $step->get_id() !== 76 ) { return $status; } if ( $step === 'woocommerce_capture_payment' ) { return 'completed'; // Change to completed, the default is processing. } return $status; }


This code should be placed in the functions.php file of your active theme or in a custom functions plugin.