paypal

  • Profile Image
    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!!!

     

    Thanks

  • Profile Image
    mliz
    Answered on February 20, 2012 at 10:09 AM

    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.

    Please follow this guide to learn How to View Pending Submissions.

    http://www.jotform.com/help/135-How-to-View-Pending-Submissions

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

    Hope this information helps.

  • Profile Image
    rinsight
    Answered on February 20, 2012 at 10:19 AM

    Thanks!! Can you give me details on how the array will be structured in the post data. I need this detail in order to integrate the post data. I see this

    http://www.jotform.net/help/126-How-to-Insert-or-update-form-submissions-to-your-MySQL-database-using-PHP

    but that does not detail the payment post data details

    Thanks

  • Profile Image
    mliz
    Answered on February 21, 2012 at 09:48 AM

    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.


    <?php
       print_r( $_POST );   ?>

    Thanks!

  • Profile Image
    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

  • Profile Image
    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.

     

    Hope that helps.