Jump to content

I don't understand how to edit a database upon payment


Rifts

Recommended Posts

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

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.