Author Topic: Paypal - IPN Help  (Read 662 times)

Offline Slashmore

  • Level 17
  • *
  • Posts: 156
  • Reputation: +1/-0
    • View Profile
Paypal - IPN Help
« on: October 10, 2009, 10:26:12 PM »
I've added IPN ( Sorta )

So far,

User goes on my game -> Clicks buy points and is taken to paypal -> Asked to login to pay x amount -> Once payment has been made they are taken back to my game -> Then inserts a field into the DB saying they have bought points on x date and the item name.

From here, How should I get the points to the players account? Use a cron every 30 mins to check if theres any points that need to be added to players account? Once added the points deletes the row form the table and adds to some kinda log system for future refrence.

I've used https://www.paypaltech.com to help me so far.

Offline travo

  • Level 18
  • *
  • Posts: 186
  • Reputation: +2/-0
    • View Profile
Re: Paypal - IPN Help
« Reply #1 on: October 11, 2009, 02:52:30 AM »
Why not have the ipn listener add the points to the account? Use the custom field paypal allows to supply the user id to your ipn listener. Just tell the users points may not be added straight away.

Offline Chris

  • Game Owner
  • Level 35
  • *
  • Posts: 2,133
  • Reputation: +26/-1
    • View Profile
Re: Paypal - IPN Help
« Reply #2 on: October 12, 2009, 12:25:07 PM »
I made the table with paypal entries and then run a check on the table to add points. But it was overcomplicated, if I were to make it again I would simply add points instantly without all these tables (only add some logs and that's all). I expected paypal notification to be broken so I made this complex system, but it turns out that it works smoothly so I never really had a reason to use it and I put it in instant mode anyway.

 


SimplePortal 2.3.3 © 2008-2010, SimplePortal