Make sure that the post type is correct, I was going by your wp_form() code
'new_post' => array( 'post_type' => 'post_type_listings', 'post_status' => 'pending', ),
I don’t see any reason why the redirect is not working
Honestly, the if statement shouldn’t even be needed because none of the redirects should do anything unless this is true
if ( have_rows( 'listing_payment_options', $post_id ) ) :
and this should only be true on the correct post type the only thing you should really need to check is
This should not help because you have the action in the theme, but you could try increasing the priority to > 10
add_filter('acf/save_post', 'stripe_payment_redirect', 20);
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
© 2022 Advanced Custom Fields.