Reputation: 7094
I am trying to integrate Paypal with one of the registration forms in my site. The flow is like this:
Now my question is, how can i keep track of user data filled in the form and sent to paypal? What is my best bet?
Or is there any other way of doing it?
I just want to get back all the form values after a successful payment, and only then, i can insert them into the database. I prefer sandbox testing prior to using real paypal.
Upvotes: 3
Views: 2714
Reputation: 659
I suggest making a registration without instant payment, but making their account inactive. This way you will get user id and put it in the custom field. Uppon a successful payment, activate user's account. Here is an example of the IPN script. https://cms.paypal.com/cms_content/US/en_US/files/developer/IPN_PHP_41.txt
You will need a business account for this to work.
Upvotes: 3