Membership in PHP script + PayPal IPN, with what information do I request and compare?

So I have a product. In order for users to buy them, they need to create an account. This account will later be used to access my product.

My question is: what information do I request from the user during registration (before payment)? I need to compare something when Paypal sends a notification. I mean the following: if I just ask for a username and password - how do I know what it was that was paid by a specific user and updated the database accordingly?

Obviously, I would also like to require first name, last name and E-Mail. The reason I presented the above situation was because I see other membership sites that request email (not PayPal email), but they cannot be sure that the name, surname and / or email address matches information that their PayPal client has.

To do this briefly: how to update the client account whenever I receive a notification (set the Active field in the database to TRUE or something else) and what information can I check / confirm with?

If my question is not clear enough, please feel free to let me know. :)

+3
source share
1 answer

, , - , " , X PayPal". "" - , , .

PayPal, PayPal. ( , "" .) , "" , "item_number". PayPal IPN, , .

, , : a) , PayPal, b) PayPal .

EDIT: PayPal:

, PayPal. , - , .

IPN. , IPN, " IPN-" : https://cms.paypal.com/cgi-bin/marketingweb?cmd=_render-content&content_ID=developer/e_howto_admin_IPNIntro.

, : a) PayPal, , b) PayPal IPN.

, "custom" . (. 4: HTML .)

"custom", . a) , b) , c) ... , , , IPN, : " , X".

+5

All Articles