Feb 24th, 2010, 9:35 PM
(Feb 23rd, 2010, 3:41 PM)martin_undefined Wrote: So if I understand you correctly, I need to:
1) Call my form and pass the id in eg. myform.php?form_id=5
Yup!
(Feb 23rd, 2010, 3:41 PM)martin_undefined Wrote: 2) Once the session has been started, store the form_id in the session
Yes. The Form Tools API functions will handle this for you - as long as you pass in the $_GET["form_id"] to the ft_api_init_form_page function.
(Feb 23rd, 2010, 3:41 PM)martin_undefined Wrote: 3) Pass it into Paypal using the custom value and then bring it back in so the ft_api knows where to store the submission
Exactly.
(Feb 23rd, 2010, 3:41 PM)martin_undefined Wrote: But I'm confused by your last point on spliting the return value - where does that process happen i.e. which file contains list($form_id etc?)
Ah, this bit will occur in ipn.php. That page is where the ft_finalize_submission() function is called that tells Form Tools that the PayPal payment went through correctly. Right now, it thinks that the $_POST["custom"] value being sent from PayPal contains just the Submission ID, but after you pass the "form ID,submission ID" value you'll need to do the split() stuff to separate them.
This will allow you to finalize any submission in any of the three forms - all using the same, single ipn.php page.
Hope that makes sense!
- Ben