Redirect from Paypal to form submission

Permalink
I created a web page last year in html/jquery that users could enter data on then choose to pay the balance through Paypal. Once the user had paid, Paypal redirected back to the website where I had jquery that automatically filled the input fields based on the parameters sent in the URL and then auto submitted the form, which would do the default behavior that the form was setup for (in this case, it was to email the form fields to an email address).

This year, I've modified the form and added a feature where a user can choose to either pay through Paypal, or choose to print off the form and mail it in with a check/cash.

So, I created a webpage with a Concrete 5 Form. We'll call it wp_Form. I then created a submit page, which has the same field names and form name as wp_Form. The submit page grabs the parameters in the URL, fills in the fields automatically, and then calls document.{form name}.submit. We'll call that page wp_Submit. Then, I created the actual web page that the user fills out all the fields on. There's a button to pay via Paypal or a Manual Pay button that the user can choose to print out the form and mail in. The Paypal button redirects to Paypal and then once the user has paid, redirects to wp_Submit. The Manual Pay button redirects directly to wp_Submit.

When selecting the Manual Pay button, the form submits correctly - I get the email with all the form fields. When redirecting from Paypal, the form submits, but I never get the email with all the form fields. Prior to this year, redirecting from Paypal worked fine and the form submitted.

Does anyone have any ideas on this? I've been playing around with it for weeks thinking I could work around it. I've even tried submitting via Paypal, bouncing back to the web page, and auto submitting from the web page to wp_Submit. No luck there either.

I can post code samples if needed - it's long and lengthy though. I just need to know how to work around these forms in Concrete5. If I had the time I'd rebuild the site in a more programmer friendly software.

 
hutman replied on at Permalink Reply
hutman
This sounds like it would be fairly straightforward, but it's hard to say without seeing some code, can you provide your code snippets?