I would like to take _POSTed passback variables from a 3rd party payment gateway [2co.com in this case], and use those variables to automatically add the new user.
Example:
1) visitor clicks on drupal site on "buy now" and is taken to the payment gateway for credit card processing
2) upon succesful credit card payment, visitor is returned to the drupal site where he receives the confirmation message AND where the "order_number" is used as the username AND he is already registered AND the user registration confirmation email with the password is already emailed.
This is probably a php script that needs to write directly into the database - that much I know. But how....
Anybody have any experience with this?
Thanks! ~tom
Comments
I've not found it yet....
The code is built into the payment module to do this - the return from the payment gateway just needs to call the right url and provide the right name=value pairs.
I've been desperately looking for what this url should be - I can't find it anywhere and nobody is talking. After a whole day stuck on this issue I'm at my wits end - I guess that's what you get using open source - when it goes wrong you become totally dependent upon the good grace of others to help out.
If you work it out PLEASE contact me - this is ruining my weekend!
Ian
A clue...
On the settings screen for the worldpay.module (that I modded to work with secpay). The description worlding wasn't overtly clear to me - it names the callback page - the name of which is also the function that processes the payment. If you take the module apart you could insert triggers to add the member there.
I believe that the various subscription modules will do this for you, but I've not needed to use them yet.
Ian