Posts: 5
Threads: 1
Joined: Nov 2011
Reputation:
0
Hi,
I happened across Form Tools, and it looks great!! I have struggled in the past with PayPal integration, so I thought your donate form looked like the ideal solution (especially as this is for a non-profit organizations donation page!!)
In the process of setting up the form, I got to the bottom of the "Adding the donation form to Form Tools" page of the tutorial, and step 10 says:
Quote:10. Open up the donation form again in your browser (index.php). Put through another submission, this time you should be redirected to PayPal.
but, no PayPal Sandbox page...instead i get this:
Quote:
ERROR
The submission was processed correctly, but you haven't specified a redirect URL for this form! Edit your form in the Form Tools UI and add the redirect URL.
do i need to specify something in redirect?? in Step 5, it specifically says "Leave the Redirect URL field blank"
I have set the option
Quote:// the Form Tools submission mode
$pp["mode"] = "live";
in the includes/library.php
not sure what to do next.
thanks,
janaki
Posts: 2,456
Threads: 39
Joined: Dec 2008
Reputation:
6
Hi Janaki,
Welcome to the forums!
Regarding your problem, it actually it looks like you may have some configuration problems. When you see that message it means that the submission was just added to Form Tools. But for PayPal integrations, generally you don't want to do that right away: you want to add the data but not "finalize" it in the database, so that incomplete submissions don't get added.
Are you following this tutorial?
http://docs.formtools.org/tutorials/paypal/
The form you're adding needs to be an API form, not a Direct/POST form. In the Form Tools interface, edit your form and on the Main tab, change it to "External" and API/Code. Then try putting through the submission again.
Good luck! I personally *hate* working with PayPal, so I know what it's like...!
- Ben
Posts: 5
Threads: 1
Joined: Nov 2011
Reputation:
0
(Nov 3rd, 2011, 12:44 PM)Ben Wrote: Are you following this tutorial?
http://docs.formtools.org/tutorials/paypal/
The form you're adding needs to be an API form, not a Direct/POST form. In the Form Tools interface, edit your form and on the Main tab, change it to "External" and API/Code. Then try putting through the submission again.
Good luck! I personally *hate* working with PayPal, so I know what it's like...!
- Ben
yes, i am using the tutorial located at the above url.
i do have the form set to External, and i changed from "Direct" to "Code (API), and resubmitted, but i'm still getting the error:
Quote:ERROR
The submission was processed correctly, but you haven't specified a redirect URL for this form! Edit your form in the Form Tools UI and add the redirect URL.
i feel like i'm missing something incredibly basic - i apologize for my obtuseness, and really appreciate your help!
Posts: 2,456
Threads: 39
Joined: Dec 2008
Reputation:
6
Hi jkuruppu,
I think it's still the form type that's the problem: or you've set it up to point the form to the process.php script. The reason being, that's the only place that error gets output!
The form should have this as the form tag (or something very like it):
Code: <form action="<?php echo $_SERVER["PHP_SELF"]?>" method="post" onsubmit="return rsv.validate(this, rules)">
That will post the form to itself, which then uses the API to redirect to the next page (paypal_submit.php). So there shouldn't be any links to process.php.
Any help...? Sorry, it's never easy setting these things up (that's why I'm working so frantically on the Form Builder: no more manual creation of forms!)
- Ben
Posts: 5
Threads: 1
Joined: Nov 2011
Reputation:
0
(Nov 8th, 2011, 10:08 AM)Ben Wrote: or you've set it up to point the form to the process.php script. The reason being, that's the only place that error gets output!
The form should have this as the form tag (or something very like it):
Code: <form action="<?php echo $_SERVER["PHP_SELF"]?>" method="post" onsubmit="return rsv.validate(this, rules)">
Hurray!! That was it - somehow, the form action did get set to point to the process.php script. now it's self-referring, and it did send me to the sandbox!! i'm back on my way now (although, for the time-being, i made up a form that submits to paypal that does actually work, but i hate it - you're right PayPal is awful to integrate!!)...
thanks so much!
Posts: 2,456
Threads: 39
Joined: Dec 2008
Reputation:
6
Ah, wonderful!
Good luck with the rest of it...!
-Ben
|