The following warnings occurred: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Warning [2] Undefined array key "avatartype" - Line: 783 - File: global.php PHP 8.1.31 (Linux)
|
![]() |
Capturing post data from external page (moneybookers.com) - Printable Version +- Form Tools (https://forums.formtools.org) +-- Forum: Form Tools (https://forums.formtools.org/forumdisplay.php?fid=1) +--- Forum: General Discussion (https://forums.formtools.org/forumdisplay.php?fid=5) +--- Thread: Capturing post data from external page (moneybookers.com) (/showthread.php?tid=823) |
Capturing post data from external page (moneybookers.com) - villjam - Aug 25th, 2010 Cenario: Customer goes thru and fills in multiple pages of form data. How do I send this data to an external source (moneybookers) via hidden fields? When the payment is done all the information will be sent back to my site thru post method. How do I capture this to the db and associate it with the original user? I guess after that I just redirect them to the Thank you page, to clear everything? Just point me in the right direction or exampel. I think I can figuer it out by my self with just a little bit of help. Thanks RE: Capturing post data from external page (moneybookers.com) - Ben - Aug 28th, 2010 Hey Villjam, You might want to check out this tutorial: http://docs.formtools.org/tutorials/paypal/?page=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 |