paypal

What is JotForm?

JotForm is a freeonline form builder which helps you create online forms without writing a single line of code.

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.

Why do you not want to answer this thread?(Your answer will be sent to Jeanette and Aytekin)

rinsight

Asked on February 19, 2012 at 12:33 PM

If I have a form set up to post data to a confirmation page and also have it set up for paypal does the form data get posted before the user is redirected to pay pal or after a successful payment?

If the payment is not successful does the form data get posted?

If the payment is successful and the user is redirected to the conformation page and the form data is posted is there anything in the post data signifying a successful payment?

I posted this question earlier today and still no response? I see other questions have been responded to but not this one!!!

The data gets posted once the user has successfully paid using Paypal since only after then they are redirected to the confirmation/thank you page. If the payment was not successful or if the user closed the browser without completing the payment process at paypal this will be recorded in JotForm as a Pending Submission. The confirmation page will not be loaded and no notification email is sent out.

The structure of the post data would vary according the fields included in the form. To find out how the data is posted you can use and include the following code in your PHP page.

<?phpprint_r( $_POST );?>

Thanks!

rinsight

Answered on February 21, 2012 at 10:14 AM

I know that

but you said in the first reply

"For successful payment the payer information such as first name, last name and PayPal email address is included in the submission."

The payer information is not variable, you should include that detail in a doc and not have me print them out using print_r in order to determine the structure of this data. Also the only way for me to do that would be to actually make a purchase since I cannot use a PayPal sandbox account. Please provide documentation on the payer post data that is returned by PayPal.

Thanks

fxr

Answered on February 22, 2012 at 08:13 AM

The actual '==Payer Info==' is not passed in the post data array from the JotForm Form, as its not discovered until the payment is processed by paypal.

The only data on the post array will be the selected product related data and this will change from form to form depending on the configuration of the payment field.

You can change the prices of your products on your payment field to 0.01c to test out what you can and can not access from the payment fields post data array.