Sep 23rd, 2009, 8:05 PM
(Sep 23rd, 2009, 1:49 PM)axel Wrote: Hey there FormTools Community,
I've been having problems with a Form for registering an Attendee for a convention.
The attendee fills out the form and selects their badge, which then sends it to PayPal.
Using the API for holding the submission, it won't finalize the submission.
Code:// successful payment! finalize the submission in the database
if (eregi("VERIFIED", $result))
{
ft_finalize_submission($pp["form_id"], $_POST['custom']);
}
That line should be called, but it won't. And I'm not sure why. I have tried finalizing the submission before it's sent to PayPal, but when it sends it back, it won't talk to FormTools.
Thanks,
Axel
Hi Axel,
For debugging, try adding a mail() line in that if-statement that sends you an email containing the two parameters: $pp["form_id"] and $_POST["custom"].
Just check that both are being returned from PayPal correctly. If they ARE, then either these values being passed to and from PayPal are incorrect or that function isn't doing it's job.
- Ben