The following warnings occurred:
Warning [2] Undefined array key "avatartype" - Line: 783 - File: global.php PHP 8.1.31 (Linux)
File Line Function
/global.php 783 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined array key "avatartype" - Line: 783 - File: global.php PHP 8.1.31 (Linux)
File Line Function
/global.php 783 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined variable $newpmmsg - Line: 40 - File: global.php(841) : eval()'d code PHP 8.1.31 (Linux)
File Line Function
/global.php(841) : eval()'d code 40 errorHandler->error
/global.php 841 eval
/printthread.php 16 require_once
Warning [2] Undefined array key "style" - Line: 909 - File: global.php PHP 8.1.31 (Linux)
File Line Function
/global.php 909 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined property: MyLanguage::$lang_select_default - Line: 5024 - File: inc/functions.php PHP 8.1.31 (Linux)
File Line Function
/inc/functions.php 5024 errorHandler->error
/global.php 909 build_theme_select
/printthread.php 16 require_once
Warning [2] Undefined array key "additionalgroups" - Line: 7162 - File: inc/functions.php PHP 8.1.31 (Linux)
File Line Function
/inc/functions.php 7162 errorHandler->error
/inc/functions.php 5044 is_member
/global.php 909 build_theme_select
/printthread.php 16 require_once
Warning [2] Undefined array key 1 - Line: 1415 - File: inc/functions.php PHP 8.1.31 (Linux)
File Line Function
/inc/functions.php 1415 errorHandler->error
/inc/functions.php 1370 fetch_forum_permissions
/printthread.php 76 forum_permissions
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 165 errorHandler->error



Form Tools
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