I basically have a form in which I"m taking credit card data and when submit I POST it to a gateway and getting the results by being redirected to conditionally URL - meaning if card is declined I'm landing to one page and if transaction approved I'm going to another page (this is done by the Gateway).
Now I want the Form Data (name, Phone, etc.) to be saved in a 'google sheet' (I'll do that lets say via webhook with Zapier), only if the card is approved.
So my question is can I POST data from a form by redirecting a page? in other words: can a 'page redirect' trigger to POST data to URL? and if it can, can it even if it has POSTed the data already to another URL? (cuz the redirect is done after the gateway responds to the data he got...)
Is there any better solution how to get this done?
Thanks!