What is JotForm?
JotForm is a free online form builder which helps you create online forms without writing a single line of code. No sign-up required.
At JotForm, we want to make sure that you’re getting the online form builder help that you need. Our friendly customer support team is available 24/7.
We believe that if one user has a question, there could be more users who may have the same question. This is why many of our support forum threads are public and available to be searched and viewed. If you’d like help immediately, feel free to search for a similar question, or submit your question or concern.
Is POST data sent to the server before or after the payment is made?Asked by actors2014 on September 09, 2015 at 12:23 PM
Im setting up a customer db on another server.
Currently the user is redirected to Stripe for credit-card validation. What I want is a copy of the form data to be processed by my server, but only once Stripe has validated the user's credit card info.
So my question is, does the redirect to the "Thank You" page occur AFTER credit card validation with Stripe or before? (IE as soon as Jot-form validates the form-data (which would be VERY bad practice IMHO!))?
Cheers in advance
This is a re-post of a comment on How to Post Submission Data to Thank You Page
Yes, you are correct, the data is sent after the payment is made - credit card validated.
Basically this is how it happens:
1. user submits the form
(if everything is OK)
2. user is redirected to payment processor
(if payment is made)
3. user is redirected to thank you page
4. data is available on the thank you page
You can see the setup for POST data being sent to your page on the guide you have commented on: How to Post Submission Data to Thank You Page
Do let us know if you happen to have any further questions and we would be happy to assist with the same.
Cheers Ben, great answer - your a star!
Hi Guy's, what's the process when a user updates their details? I want (obviously) to send them a pre-populated form, and, once it is validated, have it redirected to our "thank you" script for prrocessing on our DB; Is this possible? Or do I have to use some other crafty method (the quicker & dirtier the better ;}
Can you please explain in more details you question "What's the process when a user updates their details"?
Inside of this guild you can find out how to Let Users Update Their Form Submissions at a Later Date
If you want to prepopulate fields in your form via URL parameters inside of this guide you can see how to do it: http://www.jotform.com/help/71-Prepopulating-the-fields-to-your-JotForm-via-URL-parameters
You can also use the app to generate a prepopulated form: http://prepopulate.jotform.io
If you want to achieve something else please provide us more details and we will be happy to assist you.
Looking forward to your reply.
Er? What more detail do you need? I respectfully suggest you read my earlier question again - its all there... I want, via a server-side php script, to allow users to update their details - not just with you guy's - but on our MySql server. This includes the user's Stripe details, so the user must be authenticated in some manner, via our server. I'd very much rather get the pre-pop data via POST request; as passing pre-pop data via GET parms is very, very insecure for financial transactions (even over HTTPS) - and a complete no-no for Credit card info.
If I understood correctly when data about user are saved inside of your database on your server you want to update it somehow. It is possible to update data about user if your data on server side holds the same subscription ID as the previous (original) entry, which means that if you set your script to check for this unique subscription ID, you would be able to find if this is edit or if this is the first entry and based on that to do what you need. But you will not get the credit card info submitted by the user since our servers do not capture and do not send this info. Because of that I am little confused about your question. What I do not understand - how you want to update Stripe info and authenticate user if you can not post data about payment info and that automatically means that you do not have info in you database about payment.
What's the process when a user updates their details?
If you mean under this if users are sent to payment processor again, I presume that they are not.
I want (obviously) to send them a pre-populated form, and, once it is validated, have it redirected to our "thank you" script for processing on our DB; Is this possible?
You can send them empty or pre-populated form and once the payment is made they are taken to thank you page and the data is sent to your servers.