PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

Field Data not being passed after PayPal payment

  1. jonfoster
    Member

    Hi, I'm having a really odd problem with the PayPal add-on.

    Basically, the field data is not being passed as a query string after payment has completed, except for the 1st field.

    It all works fine when PayPal is not enabled for the form, so I don't get what's going wrong.

    Any ideas gratefully accepted!
    Jon

    Posted 13 years ago on Tuesday July 19, 2011 | Permalink
  2. I'm not entirely sure what you are trying to explain. Let me see if I have it. Your form is configured to use a Redirect for the confirmation and you have it configured to pass form field values with that Redirect.

    You also have the PayPal Add-On configured for that form. When the user submits the form and completes the payment on PayPal it's going to the Redirect you configured but not passing all of the query string values you configured? Is that correct?

    Posted 13 years ago on Tuesday July 19, 2011 | Permalink
  3. jonfoster
    Member

    Spot on!

    Sorry for the confusion.

    Jon

    Posted 13 years ago on Tuesday July 19, 2011 | Permalink
  4. Very strange issue. In order to see if I can recreate this issue what i'll need you to do is use the Import/Export tool and select Export Form and export that form to an XML file. Upload it somewhere where you can post a link to it and then post a link so I can download the XML. Then I can see if I can recreate this issue on my test site using the same form you created.

    Posted 13 years ago on Tuesday July 19, 2011 | Permalink
  5. jonfoster
    Member

    Yes - my thoughts exactly!
    Form export here: http://communiq.co.uk/files/gravityforms-export-2011-07-19.xml

    Happy to give you access to the live site - drop me a line jon@communiq.co.uk if you need it.

    Jon

    Posted 13 years ago on Tuesday July 19, 2011 | Permalink
  6. I'm unable to recreate this issue.

    I imported your form into my test site, configured it to use PayPal using my sandbox account and submitted a test form. The form executed properly and it used the redirect you had configured and passed the appropriate values and downloaded a PDF.

    Here is a screenshot of the PDF that was downloaded: http://i.imgur.com/J9Ssr.png

    Everything appears to be correct from what I see... each field has a value in the PDF.

    Posted 13 years ago on Tuesday July 19, 2011 | Permalink
  7. jonfoster
    Member

    Ok - what you suggest my next step is? Shall I try re-creating the form from scratch?

    Yes - that PDF looks fine, so I'm not sure what's going on at my end.

    Thanks
    Jon

    Posted 13 years ago on Wednesday July 20, 2011 | Permalink
  8. You could try exporting the form and then re-import it as a new form. But I don't think the issue is the form, because when I import that form it works perfectly fine for me. The issue could be the test data you are using when submitting the form, try using different test data. I'm not sure. It worked perfectly fine in my tests.

    The only other thing that could cause an issue is some sort of theme or plugin conflict because the difference between my test environment and your site is going to be 1) web server 2) themes 3) plugins.

    So if trying it using different test data doesn't work you may need to test the functionality while checking for theme and plugin conflicts by deactivating all other plugins and testing using the default WordPress theme.

    Posted 13 years ago on Wednesday July 20, 2011 | Permalink
  9. jonfoster
    Member

    Hi Carl,
    I've isolated the problem to being with the theme - I've tried it on TwentyTen and all is fine.

    I can't quite get which bit of theme would be affecting things though - with my theme, the post still contains the correct redirect code:

    <p><script>function gformRedirect(){document.location.href='http://sadev.jonfoster.org.uk/fpdf/generate_pdf.php?saname=test&ename=test&evenue=test&eopens=07/07/2011&eopene=20/07/2011&etens=03/07/2011&etene=14/07/2011&etype=First Choice&eattend=1-50&indem=£5 million&pprem=';}gformRedirect();</script></p>

    Yet only seems to pass the 1st bit of data to the PDF script.

    Jon

    Posted 13 years ago on Thursday July 21, 2011 | Permalink
  10. It's difficult to tell, I would suggest temporarily removing things from the theme and then testing. Maybe see whats in functions.php if there is anything unusual going on there. Is this a custom theme or a premium theme that you purchased? If it's a premium theme who created it?

    Posted 13 years ago on Thursday July 21, 2011 | Permalink
  11. jonfoster
    Member

    It's a premium one which has been pretty heavily customised. The initial launch of the site was in pretty rushed, so there was no time to build a custom one - which was a pain, as this one doesn't seem all that brilliant, this isn't the first weird thing being caused by it!

    Will pull stuff until I can work out what's causing it.

    Thanks for all your help on this.
    Jon

    Posted 13 years ago on Thursday July 21, 2011 | Permalink
  12. Keep us posted, interested in finding out what could be causing this. It's very unusual.

    Posted 13 years ago on Thursday July 21, 2011 | Permalink
  13. jonfoster
    Member

    Hi Carl,
    Sorry for the delay - was away last week - so am only getting back to this today.

    It seems something is turning the & symbols in the URL into the HTML code versions! So I get a URL that looks like this:
    url.com?saname=test#038;ename=test&evenue=test&eopens=12....
    instead of like this:
    url.com?saname=test&ename=test&evenue=test&eopens=12....

    Will keep digging to see if I can find whats causing this - but if you have any other ideas based on that - would love to hear them!!

    Jon

    Posted 13 years ago on Monday August 1, 2011 | Permalink
  14. jonfoster
    Member

    Quick one - what function does GF use to redirect after form completion so I can try something?

    Thanks

    Posted 13 years ago on Wednesday August 10, 2011 | Permalink