Rifts Posted August 19, 2010 Share Posted August 19, 2010 Hey everyone. I'm making a php/mysql game and I don't understand how do to this. please read the whole thing and dont just say use paypal. thanks in advanced. The game is free to play but if you want some extra perks like gold and what not I want to you be able to pay with real money to get them. I dont have ANY idea how to do this.... Say there are three parts 100gold 1,000gold 10,000gold $5 $10 $20 Is this possible: use paypal set up three different buttons/links for that then I know paypal asks if you wants to point them to a thankyou page so I would make the thankyou page have the PHP in it to update they database with the new gold values. the problem I see is how will paypal save their member id or user id number so my script in the thankyou page will update the right account and also what is stopping people from just going straight to the thankyou page without paying? Thanks for the info Quote Link to comment https://forums.phpfreaks.com/topic/211207-i-dont-understand-how-to-edit-a-database-upon-payment/ Share on other sites More sharing options...
hcdarkmage Posted August 19, 2010 Share Posted August 19, 2010 I hate to ask this, but have you gone through the PayPal documentation on how to use their APIs? The documentation will tell you what values to pass to PayPal and how you can retrieve them WITHOUT the user bypassing the whole thing. You can set up a specialized variable (like a customer id) that you send to PayPal and they will send that variable back to you, if you request it. Just go through the documentation that PayPal has. Quote Link to comment https://forums.phpfreaks.com/topic/211207-i-dont-understand-how-to-edit-a-database-upon-payment/#findComment-1101347 Share on other sites More sharing options...
Rifts Posted August 19, 2010 Author Share Posted August 19, 2010 Could you point me to the article your talking about because I search and found a few but none seem to be about this. thank for the info i appreciate it Quote Link to comment https://forums.phpfreaks.com/topic/211207-i-dont-understand-how-to-edit-a-database-upon-payment/#findComment-1101349 Share on other sites More sharing options...
Rifts Posted August 19, 2010 Author Share Posted August 19, 2010 oh I think I may have found the correct article its called paypal IPN not API Quote Link to comment https://forums.phpfreaks.com/topic/211207-i-dont-understand-how-to-edit-a-database-upon-payment/#findComment-1101350 Share on other sites More sharing options...
hcdarkmage Posted August 19, 2010 Share Posted August 19, 2010 This may help: https://www.x.com/community/ppx/documentation. It has all the documentation you need for implementing PayPal into your site. Quote Link to comment https://forums.phpfreaks.com/topic/211207-i-dont-understand-how-to-edit-a-database-upon-payment/#findComment-1101357 Share on other sites More sharing options...
Rifts Posted August 19, 2010 Author Share Posted August 19, 2010 man this is a lot more complicated than I hoped it would be *sigh* Quote Link to comment https://forums.phpfreaks.com/topic/211207-i-dont-understand-how-to-edit-a-database-upon-payment/#findComment-1101360 Share on other sites More sharing options...
Rifts Posted August 20, 2010 Author Share Posted August 20, 2010 I don't really understand any of this. If anyway has done this before and wants to help me out please let me know. thanks Quote Link to comment https://forums.phpfreaks.com/topic/211207-i-dont-understand-how-to-edit-a-database-upon-payment/#findComment-1101509 Share on other sites More sharing options...
Rifts Posted August 21, 2010 Author Share Posted August 21, 2010 bumpzor Quote Link to comment https://forums.phpfreaks.com/topic/211207-i-dont-understand-how-to-edit-a-database-upon-payment/#findComment-1101959 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.