Feb 23rd, 2010, 3:41 PM
(Feb 21st, 2010, 11:30 AM)Ben Wrote: In terms of passing it to and from PayPal, that's no problem. Just update the $_POST["custom"] value to store something like "X,Y" where X is the form ID and Y is the submission ID - instead of just passing the submission ID like you do now. You could then just split the return value and extract the values for finalizing the submission.
PHP Code:list($form_id, $submission_id) = split(",", $_POST["custom"]);
The good news is that I do know what form the user is submitting. So if I understand you correctly, I need to:
1) Call my form and pass the id in eg. myform.php?form_id=5
2) Once the session has been started, store the form_id in the session
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
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?
Thanks
Martin