Paypal Integration not working properly

  • beatsahead
    Asked on October 30, 2015 at 9:01 AM

    I have this working well on one of my forms http://dj-hire-london.co.uk/book/

     

    but the new one below submits all to paypal, whichever option they have checked for payment. 

    http://www.jotform.com/52734647551359 

     

    Can you tell me where I am going wrong?

  • David JotForm Support Manager
    Replied on October 30, 2015 at 1:32 PM

    I cloned your form, I reviewed your conditions, they are properly setup. I did some test, and no matter what option you choose, it takes you to Paypal page.

    I went to review your settings on Preferences,  I noticed that the "Clear Hidden Field Values" setting is set up to "Don't clear". So, what's happening here is that the Paypal field still receives values, even though is hidden, that's why it still redirects you to Paypal page.

    So, go to Preferences>Advance Settings, and set "Clear on Being Hidden" to the Clear Hidden Field Values setting:

    Paypal Integration not working properly Image 1 Screenshot 20

    That will solve the issue. If you need anything else, please open a new thread, we will be glad to assist you.

  • beatsahead
    Replied on October 30, 2015 at 2:35 PM

    Thanks for checking that out and coming up with a solution, it seems to have rectified it, however I am now getting this error message on submission. Warning: trim() expects parameter 1 to be string, array given in /home/content/97/11197497/html/dev1/wp-includes/query.php on line 1577

  • David JotForm Support Manager
    Replied on October 30, 2015 at 4:00 PM

    That's because you are sending Post data to your thank you page.

    Go to Preferences>Advanced Settings, and set the "Send Post Data" option to "NO", if you are not using it:

    Paypal Integration not working properly Image 1 Screenshot 30

    If you are using it, make sure to validate your fields.

    Paypal Integration not working properly Image 2 Screenshot 41

    Check also this guide: http://www.jotform.com/help/213-Send-POST-Data-From-JotForm-Using-PHP-in-Custom-Thank-You-Page

  • beatsahead
    Replied on October 31, 2015 at 2:22 AM

    Ultimately I want to get the data to my 3rd party online planner, and had forgotten I;d left Post data on, thanks for all your help.

  • beatsahead
    Replied on October 31, 2015 at 4:37 AM

    Now, my second form isn't displaying

    First form

    http://beatsahead.com/

    should submit to 

    http://beatsahead.com/dj-booking-page/?all2={all1}&peak2={peak1}&eventDate[month]={musicStart:month}&eventDate[day]={musicStart:day}&eventDate[year]={musicStart:year}

    but is getting stuck at 

    https://submit.jotformeu.com/submit/52762376904361/

  • beatsahead
    Replied on October 31, 2015 at 7:08 AM

    working now

  • Welvin Support Team Lead
    Replied on October 31, 2015 at 1:35 PM

    That's great to know! Please contact us again if there are any problems.

    Thanks