ohdang888 Posted February 21, 2011 Share Posted February 21, 2011 SOOOOO i understand that paypal sends you the email of the buyer to your script that processes and handles it But i'm really confused as to how I connect that purchase with a user in my database. Because what if they don't use the same email they registered with? I'm thinking create unique user purchase tokens that pass to paypal, and they send it back, and then i get the id from there... Any thoughts? Just wanting to get others opinions before i mess with this Thanks Quote Link to comment https://forums.phpfreaks.com/topic/228423-paypal-ipn-quick-question/ Share on other sites More sharing options...
PaulRyan Posted February 21, 2011 Share Posted February 21, 2011 With PayPal IPN you can send an extra value with say the User's ID number. When PayPal, does a post back you can grab the User ID sent, then do whatever with it to credit that user account. I've done something like this before, and it's relatively easy, once you get the extra field correct You'll have to do some testing with PayPal Sandbox before making anything live. Regards, PaulRyan. Quote Link to comment https://forums.phpfreaks.com/topic/228423-paypal-ipn-quick-question/#findComment-1177796 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.