rpress_is_payment_complete

Author: RestroPress 14 views

This filter is applied to use to checks whether a payment has been marked as complete, it is including three parameters.
$ret -> is return a boolean.
$payment_id -> is containing payment id.
$payment->post_status.

function check_payment_complete( $payment_id ){
// its return payment status complete or not.
return $payment->post_status;
}
add_filter( 'rpress_is_payment_complete', 'check_payment_complete',10,3 );