Board index   FAQ   Search  
Register  Login
Board index php forum :: PHP and MySQL Security PHP & MySQL Security

How to preserve user information using PayPal ?

Security issues related to php and mysql usage. How to make your code secure? Security measures and configurations? It's all in here!

Moderators: macek, egami, gesf

How to preserve user information using PayPal ?

Postby Kane » Fri Jul 27, 2012 12:43 am

Let's hypothesize that I already have a site with users, whose names and passwords along with other data are already stored to a mySQL database.
One day I decide that I want to expand that site, but require payment for existing users in order to give them access to the new pages. I use PayPal in order to accept payments, in order to confirm that someone has already donated I use ipn.php which connects directly to PayPal and gets specific data. Thus I can not use cookies to know which user payed, and I am not able to update the row of the user, so they would not get what they payed for.
How can I pass data to PayPal in order to recognize who payed? :( :help:
Kane
New php-forum User
New php-forum User
 
Posts: 3
Joined: Sun Aug 07, 2011 1:44 am

Re: How to preserve user information using PayPal ?

Postby freshnet » Fri Jul 27, 2012 5:20 am

The only way that's reliable is to update the row in the database or create a new table to reference the user with their payment. Why can't you do this?
User avatar
freshnet
php-forum Active User
php-forum Active User
 
Posts: 278
Joined: Tue Feb 22, 2011 8:19 am
Location: Canada

Re: How to preserve user information using PayPal ?

Postby johnj » Sun Jul 29, 2012 6:04 am

...How can I pass data to PayPal in order to recognize who payed?


Read the paypal payment documentation, it has how to recognize the user.
johnj
php-forum Super User
php-forum Super User
 
Posts: 1805
Joined: Thu Mar 10, 2011 5:07 pm


Return to PHP & MySQL Security

Who is online

Users browsing this forum: No registered users and 1 guest

Sponsored by Sitebuilder Web hosting and Traduzioni Italiano Rumeno and antispam for cPanel.