MasterACE14 Posted August 10, 2007 Share Posted August 10, 2007 http://www.phpfreaks.com/forums/index.php/topic,149302.0.html I have some new information on the problem which may assist people in helping me. when I set the paypal url like this(paypal sandbox to test it): $p->paypal_url = 'https://www.sandbox.paypal.com/cgi-bin/webscr'; // testing paypal url The IPN Validates successfully, but my function still isn't executed. but when I set the paypal url like this(the real deal): $p->paypal_url = 'https://www.paypal.com/cgi-bin/webscr'; // paypal url it fails. I am dieing for some help. any suggestions what so ever are appreciated, can someone PLEASE, PLEASE help! I will GREATLY appreciate it! Regards a very desperate ACE Quote Link to comment https://forums.phpfreaks.com/topic/64219-i-really-need-help-ive-had-this-problem-for-months-now-and-i-want-help-please/ Share on other sites More sharing options...
optikalefx Posted August 10, 2007 Share Posted August 10, 2007 did you use the code that paypal gives you i just started using it, and it all works fine Quote Link to comment https://forums.phpfreaks.com/topic/64219-i-really-need-help-ive-had-this-problem-for-months-now-and-i-want-help-please/#findComment-320514 Share on other sites More sharing options...
d22552000 Posted August 10, 2007 Share Posted August 10, 2007 (im not sure how you do it) but you have to authenticate with the paypa server. When I do this and take the code it gives me about 9 lines of html code iwth hidden fields and such just to do it... when I tried to translat this into php I found that you need to make a post request to the paypal server, and not just a string request. Quote Link to comment https://forums.phpfreaks.com/topic/64219-i-really-need-help-ive-had-this-problem-for-months-now-and-i-want-help-please/#findComment-320650 Share on other sites More sharing options...
MasterACE14 Posted August 10, 2007 Author Share Posted August 10, 2007 I believe the code you guys are talking about is the paypal HTML button in "Merchant Tools" ? see if I did it that way, the payment goes like so. my website => paypal => success or cancel page My function that runs is to upgrade the persons account to paid member. See if I did it with the HTML button, they could just put http://www.mywebsite.com/success.php and it would run the query every time they do it, thats why I am using a IPN script so it makes sure they have paid first before giving them member status. Quote Link to comment https://forums.phpfreaks.com/topic/64219-i-really-need-help-ive-had-this-problem-for-months-now-and-i-want-help-please/#findComment-320724 Share on other sites More sharing options...
optikalefx Posted August 11, 2007 Share Posted August 11, 2007 ive got a better way! when you pay with paypal to upgrade, have paypal send an extra query, which you encryp, which tells a script on the return page to send an email with a password to the person who just paid. and in the email have a link that goes to a crazy encrypted URL which runs the database query to upgrade. i think its a cool idea. Quote Link to comment https://forums.phpfreaks.com/topic/64219-i-really-need-help-ive-had-this-problem-for-months-now-and-i-want-help-please/#findComment-320872 Share on other sites More sharing options...
MasterACE14 Posted August 15, 2007 Author Share Posted August 15, 2007 that idea came and went awhile back lol. Quote Link to comment https://forums.phpfreaks.com/topic/64219-i-really-need-help-ive-had-this-problem-for-months-now-and-i-want-help-please/#findComment-324431 Share on other sites More sharing options...
optikalefx Posted August 15, 2007 Share Posted August 15, 2007 well what was wrong with it? Quote Link to comment https://forums.phpfreaks.com/topic/64219-i-really-need-help-ive-had-this-problem-for-months-now-and-i-want-help-please/#findComment-324675 Share on other sites More sharing options...
MasterACE14 Posted August 20, 2007 Author Share Posted August 20, 2007 What happens is, The IPN script works with the payments, but it doesnt validate with the paypal website. Which in turn doesnt execute the function that edits the database. Quote Link to comment https://forums.phpfreaks.com/topic/64219-i-really-need-help-ive-had-this-problem-for-months-now-and-i-want-help-please/#findComment-328592 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.