That’s because you’re using a post action which sends the user to another website. The template_redirect never runs because the user isn’t on your site any more. You’ll need to keep them on the site, register the new user then send them to the gateway with the post data.
Related Posts:
- WP Login forms action URLs displayed as pretty URLs in browser (ex with Restore Password)
- How to redirect user to a page after form submission
- How to redirect user after login to a specific page?
- How to pass email values from one php page to another
- How to redirect if a background request is still being executed
- Building a request processor for multi-page forms, etc using $_GET requests
- Remove #wpcf7-f2450-o1 with Contact form 7 redirect [closed]
- Redirect user if they are not logged in
- WP_List_table with form of method=GET redirects to wrong url after submit
- Display Freebie Page Content only if Referrer is from Form Page
- simple wordpress form redirection
- Select post from dropdown and add query args not working
- Postback redirect through add_action is not triggered
- Why is WordPress redirecting to homepage after GET form submit?
- Custom Form Redirects to Post after Submit
- noheader on the user/frontend side
- How to redirect to a page after submitting form data?
- Create a custom redirect link that tracks the first visited page and after submitting form goes to first page using formidable forms plugin? [closed]
- Redirect Restricted Page to 404
- Which hook should be used to add an action containing a redirect?
- Redirect user to original url after login?
- Site redirects to wrong url when saving settings
- Redirect blog page to latest post?
- WordPress site redirects to different wordpress domain on the same server after reuploading db backup
- Links to an exisiting Page are now redirecting to a draft page?
- Random and Erroneous WordPress Redirect
- Redirect Old domain & posts to new domain homepage
- add_rewrite_rule to pass entire path as a single parameter
- What is the wordpress way of displaying local external content?
- htaccess redirect dynamic posts
- RedirectMatch and Redirect interfering with each other
- Redirect all pages to homepage but still allow dashboard
- Return to where the user was, after log out
- Change ‘Back To Website’ link in wp-login.php
- How do I map a subdomain in wordpress to the primary domain in a multisite setup?
- htaccess rules not applied?
- Load time cost of using a redirect plugin v direct .htaccess entry
- Intercept the “lost password” action by first redirecting to an existing instructions page
- How to include error message on login
- WooCommerce unexpected behavior [closed]
- Force WordPress to load from site’s hostname
- 301 redirection editing .htaccess doesn’t work
- Redirect custom post type from one domain to another domain
- How can I force the user to log in, even if they’re already authenticated?
- 301-redirect directives for blogger to wordpress migration
- Stop Redirecting to and from www
- How to pass a message using template_redirect
- Disable WordPress URL auto complete
- Redirect Main Home Page url to category URL without plugin
- W3 Cache redirects to front page when I press purge all caches
- Stop forcing certain paths to end with a forward slash
- Force 404 redirect to home?
- Is it possible to wp_redirect() to a new tab?
- Redirection on Custom page
- How do I redirect users after submitting a topic for moderation?
- Direct iPhone visitors to different stylesheet?
- How to delete a post and keep its slug to refer to another post
- 301 redirect any RSS feed on level up url
- Dynamic 404 page content while still keeping 404 status code?
- Redirect loop with similar URLs
- Why does WP HTTP API switch the method (POST/PURGE) to GET when redirecting (302)?
- Redirect user to specific link after login
- 301 redirect via htaccess rules on the new site
- WordPress Domain redirects to different host
- A good hook to check authorization and redirect?
- Change the domain url?
- Redirect depending on category chosen
- custom login form redirect problem
- Trying to re-direct users to specific page based on an ACF variable
- wp_redirect is only working in Chrome Network, page is not redirecting
- login form should redirect to register page for in 1st login next time it should redirected to home page
- Open wordpress page in directory the way index.html would open
- How to remove redirection
- Redirect Homepage to another page when user login
- Determine user destination on wp-login.php
- Random redirect to wp-admin/install.php
- How to redirect returning users who previously logged in?
- Page editing in backend redirecting to 404 page not found with url /post.php
- wordpress redirect error in xampp
- Swapping current old site to new WordPress site – need to check I’m doing it right
- How to change form action of wp-login page with a function
- how redirect users to custom login page when user comment must “login to reply” is clicked?
- Allow GET request on certain page
- .htaccess redirect for old subfolder installation to new subfolder installation and https
- PHP Mistake – Whats wrong here?
- WordPress update 4.4.1 redirect loop
- Redirecting Issue
- Redirect user to login and then to page where they came from
- htaccess and redirect to new url using regex
- redirect attachment page to category page
- 301 redirect for wordpress permarlink
- Google PageSpeed: Avoid landing page redirects?
- How to Redirect Url to homepage?
- 404 Not Found with All Cloaking plugins
- Stopping media file redirects
- Redirect loop upon installation of my plugin
- redirect the root of a domain, while leaving the www version unredirected
- How to Create Custom Route to a page in WordPress
- How to create a redirect to another domain like safe redirect manager from php
- Post Migration Site Migration Redirects All Known Solutions Attempted