spikereloaded Posted June 5, 2013 Share Posted June 5, 2013 Hey people I'm installing Arson's credit mod (where Paypal is used to purchase credits) and having trouble setting up the IPN. The instructions say to turn on IPN in Paypal, but to do this i have to provide a URL, which im not sure about! Which URL should i be providing? anybody got any clues? Quote Link to comment Share on other sites More sharing options...
SRB Posted June 5, 2013 Share Posted June 5, 2013 Should be the return url, so the domain name and TLD Quote Link to comment Share on other sites More sharing options...
spikereloaded Posted June 5, 2013 Author Share Posted June 5, 2013 hmm so it would be websitename.com. tried that and it still doesnt seem to be crediting users with their purchased credits after payment has been sent. Not sure how likely it is that I'll be able to get hold of Arson aswell! thanks for the help Guest Quote Link to comment Share on other sites More sharing options...
spikereloaded Posted June 5, 2013 Author Share Posted June 5, 2013 So the URL isn't the problem by the look of things, it's more around the ion function on the credits page possibly not doing what's it's meant to. Tried for ages to troubleshoot it but still no luck. Payments go through fine, it's just the ATP credit that doesn't seem to be working! Anyone know if arson is still around anywhere?? Quote Link to comment Share on other sites More sharing options...
Bennyh789 Posted June 6, 2013 Share Posted June 6, 2013 Surely someone can shed some light on this for us? In PayPal we have the ipn set up as: http://www.ourgame.com/credits.php?action=payment_received And we can see PayPal is running the URL after payment but then nothing is happening what so ever Thanks Quote Link to comment Share on other sites More sharing options...
KyleMassacre Posted June 6, 2013 Share Posted June 6, 2013 I have talked to spike and think I have found the issue for the most part. Keep in mind I haven't seen the script or have a copy myself but after speaking with him it seems like the files need to possibly be broken up i.e. credits.php and payment_done.php. the reason being is I guess credits.php is including globals.php, now what happens when you visit a page and your login session is not there? it redirects you to login.php so paypal can not hit that query string saying that the payment went through because they are being redirected to login.php. Quote Link to comment Share on other sites More sharing options...
spikereloaded Posted June 6, 2013 Author Share Posted June 6, 2013 cheers Kyle Separated them as suggested, and it does make sense, however doing this alone hasnt sorted the problem. THrough lots of testing it would seem that the code isn't calling in the pack price , therefore when it compares the price in the database to the price paypal sends, its failing. Still working out why but will post here when sorted so others know for future! Quote Link to comment Share on other sites More sharing options...
spikereloaded Posted June 6, 2013 Author Share Posted June 6, 2013 ok now sorted it. Seems to older MYSQL queries just needed updating a bit. pain in the ass figuring that out but all a learning process. Cheers for the assist Kyle. Quote Link to comment Share on other sites More sharing options...
KyleMassacre Posted June 6, 2013 Share Posted June 6, 2013 No problem, glad you got it all sorted Quote Link to comment Share on other sites More sharing options...
boots Posted April 10, 2014 Share Posted April 10, 2014 (edited) I have the same prob with this mod, could tell me how you fixed it Edited April 11, 2014 by boots Quote Link to comment 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.