Hey Villjam,
You might want to check out this tutorial:
http://docs.formtools.org/tutorials/payp...e=overview
Even though it's about PayPal, it works for any payment gateway - and that link above shows a graphic of the overall process.
Basically it works like this:
- the form data is all stored in Form Tools (only) as the user progresses through the form.
- when you want to redirect to the payment gateway, all the info is submitted to them via hidden fields in a form.
[at this juncture, Form Tools contains all the data and a submission_id to uniquely identify the form submission]
- the user does the whole payment thing, and when it's done, it POSTs back the data to a IPN script on your site ("Instant Payment Notification" in PayPal-speak). Virtually all payment gateway's have something similar to IPN - it allows for integration of their services with external scripts like Form Tools.
- Included in that POST submission is the unique submission ID. You can use that to tell Form Tools that the payment went through.
At that point, you can just redirect to the thankyou page.
Conceptually, there's a fair amount going on and you need to make sense of the whole process, but it's perfectly do-able. I'd definitely give the PayPal tutorial a read over - just ignore the actual implementation details.
- Ben
You might want to check out this tutorial:
http://docs.formtools.org/tutorials/payp...e=overview
Even though it's about PayPal, it works for any payment gateway - and that link above shows a graphic of the overall process.
Basically it works like this:
- the form data is all stored in Form Tools (only) as the user progresses through the form.
- when you want to redirect to the payment gateway, all the info is submitted to them via hidden fields in a form.
[at this juncture, Form Tools contains all the data and a submission_id to uniquely identify the form submission]
- the user does the whole payment thing, and when it's done, it POSTs back the data to a IPN script on your site ("Instant Payment Notification" in PayPal-speak). Virtually all payment gateway's have something similar to IPN - it allows for integration of their services with external scripts like Form Tools.
- Included in that POST submission is the unique submission ID. You can use that to tell Form Tools that the payment went through.
At that point, you can just redirect to the thankyou page.
Conceptually, there's a fair amount going on and you need to make sense of the whole process, but it's perfectly do-able. I'd definitely give the PayPal tutorial a read over - just ignore the actual implementation details.
- Ben