Jump to content

paypal IPN quick question


ohdang888

Recommended Posts

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

Link to comment
https://forums.phpfreaks.com/topic/228423-paypal-ipn-quick-question/
Share on other sites

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.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.