Webhook data not received when submitting a PayPal integrated form

  • barryblizzard
    Asked on February 16, 2017 at 7:21 AM

    If users go through to PAypal and enter as guest they do nothen send on the Thanks You php files I do not see their signups in the database.

     

    Would Webhooks solve this. I also have a request for help on web hooks outstanding.

     

    This is now urgent.

  • KadeJM
    Replied on February 16, 2017 at 11:28 AM

    Do you mean you are trying to get sent php data from your form's thank you page included in paypal with guest accounts so that you can see there data in your database or something? Please feel free to correct me though if I've misunderstood you.

    Which form are you trying to connect this from? 

    And what do you currently have for it?

    A webhook might work as an alternative if the end point supports it's usage as well.

    Additionally, you have quite a few threads so at the moment I'm not sure which you meant was outstanding for it?

  • barryblizzard
    Replied on February 16, 2017 at 1:45 PM
    I am currently using thank you but it does not seem to send data if it goes through to paypal and theydo nto return to merchant or pay by credit card.
    I have tried webhooks and it does post but it posts blank fields only.
    Here is some of the code called by the webhook, note it is posting to a filemaker database but that should not matter.
    $ip = $_POST['ip'];
    $fullname = $_POST['name4'];
    $jerseytext = $_POST['jerseytext'];
    $jerseysize = $_POST['jerseysize'];
    $email = $_POST['email10'];
    $homenumber = $_POST['homenumber32'];
    $mobilenumber = $_POST['mobilenumber31'];
    $biketransport = $_POST['biketransport35'];
    $bikedropoff = $_POST['bikedropoff'];
    $flight = $_POST['flight'];
    $hotelroomie = $_POST['hotelroomie'];
    $hotelrequired = $_POST['hotelrequired'];
    $paymentamount = $_POST['paywith'];
    $paymentwith = $_POST['howdo66’];
    Creates a record but has a blank for all of the fields.
    The form is
    https://form.jotformeu.com/70454142630346
    Barry Brown CITP; MBCS; APM; Bsc Econ,
    Technical Director,
    GURU Consultancy Limited,
    M : 07903 804715
    ...
  • barryblizzard
    Replied on February 16, 2017 at 1:46 PM
    Can you tell me when the webhook is fired off. IS it before the Paypal is called or when it returns.
    Barry Brown CITP; MBCS; APM; Bsc Econ,
    Technical Director,
    GURU Consultancy Limited,
    M : 07903 804715
    ...
  • Boris
    Replied on February 16, 2017 at 4:01 PM

    The webhooks are fired when a submission in completed. This means it will be fired when PayPal notifies us that a payment is complete - when the submission appears on your submissions page:

    https://www.jotform.com/help/269-How-to-View-Form-Submissions

    Webhooks are not fired for incomplete submissions, which happen when users are directed to PayPal, but they do not make a payment:

    https://www.jotform.com/help/564-how-to-view-incomplete-payments-of-your-payment-forms/

    You can read more about incomplete payments here:

    https://www.jotform.com/help/272-Paypal-Incomplete-Payments-FAQ

    To ensure your submissions are correctly marked as completed when a payment is made, your IPN must be enabled in your PayPal account:

    https://www.jotform.com/help/276-How-to-Enable-IPN-on-your-Paypal-Account

    Please let us know should you need any further assistance. Thank you.

  • barryblizzard
    Replied on February 16, 2017 at 5:46 PM
    What is the difference between a Thank You php response and a wehook.
    Which is better ?
    Barry Brown
    GURU Consultancy Limited
    ...
  • Boris
    Replied on February 16, 2017 at 6:54 PM

    These are really just slightly different ways of forwarding the same submission data to your PHP scripts.

    You can essentially either use the Send POST Data method to forward submissions to your custom PHP page, or you can use Webhooks:

    https://www.jotform.com/help/51-How-to-Post-Submission-Data-to-Thank-You-Page

    https://www.jotform.com/help/245-How-to-Setup-a-Webhook-with-JotForm

    With the first method, the form itself must redirect your users to the thank you page. This means that your users will see the page where your custom PHP script is.

    With the second method, your form will present users with a usual thank you page that is set for your form, but the data will get forwarded to its webhook destination "behind the scenes" as well.

    Other than that, there is not really much of a difference between the two.