Jump to content
MakeWebGames

Question about a IPN system


BreakingLight

Recommended Posts

Re: Question about a IPN system

UCC, I think he wants it, so at random, it gives out 2 packs.

All you need to do is in the script, do a random statement and it the variable equals that random number, give out 2 packs, else, do one.

Hope you understand this. Looks confusing to me. Please someone make this better. lol

Link to comment
Share on other sites

Re: Question about a IPN system

 

No UCC was right,but i really wanna know how it works.And thanks for the responce

Well the system I created (modified 2.0 code) has the donator packs setup as items. All I do, if I were to have a 2-1 sale, is to change the add_item number from 1 to 2 where I have the quantity listed.

Link to comment
Share on other sites

Re: Question about a IPN system

The user links from your site to Paypal. In your link, you send information on the amount, the donator item number, and whatever other information you want to send. Once the personal pays through Paypal, Paypal sends them back to your game. Just like you sent info to Paypal, Paypal sends info to you. That info either confirms or denies that they actually paid you. It also sends back the information you sent so you can process.

Paypal, have this person pay me $3 and give me the number 6 and a yes/no once they do

Paypal sends you a Yes and the number 6, so your system can realize they payment was successful and the number they wanted was 6

Link to comment
Share on other sites

Re: Question about a IPN system

Once you get the system setup, what I would do is put a variable at the top. Kinda like this...

$multiplies = 2;

mysql_query("UPDATE users SET iq=iq+(25*$multiplies);

 

Not familiar with IPN, so don't know how well that would work, but then you could set how many packs you wanna give out at a time.

Link to comment
Share on other sites

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.   Paste as plain text instead

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