Coly010 Posted February 26, 2015 Posted February 26, 2015 Ok so I created a few buttons on paypal to manage my in game purchases. My problem is that I've never worked with an auto creditor system before, so what I'm asking is how do I find out from paypal that the player paid the money, so that I can credit them the pack. I have the button return the item number of the pack, which it does using $_GET. So far I've it set up so that it credits the user based on $_GET and I thank god the game is not live because people could just fake it. Any help is appreciated. Quote
Veramys Posted February 26, 2015 Posted February 26, 2015 I think paypal has an api for this. You could look into that. Quote
Coly010 Posted February 26, 2015 Author Posted February 26, 2015 Am I right in thinking IPN is what I'm looking for? Quote
Veramys Posted February 26, 2015 Posted February 26, 2015 Probably. I've never focused much on it because I use Dave's Donation mod. Quote
Coly010 Posted February 26, 2015 Author Posted February 26, 2015 I really can't get my head round any of this. I have set up Express Checkout, it was working for the sandbox accounts, but then once I swapped it to the live accounts it says I need to sign up to accept Digital Goods, which I can't find a link to anywhere. On the documentation it tells me to click the Get Started button. When I do nothing happens. I've tried setting up buttons, but I can't find a way to securely find out if the transaction was completed so the code can credit the user. Quote
HauntedDawg Posted February 27, 2015 Posted February 27, 2015 MCCode's come's with an IPN file. Paypal also provide's an IPN PHP file. Use those in your application. They already have the methods to check a payment is completed. Quote
Coly010 Posted February 27, 2015 Author Posted February 27, 2015 I didn't even think to look for mccodes IPN. I'm using a custom script aha. Thanks, I'll check it out Quote
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.