View Full Version : Paypal Question
wlang 03-01-2005, 07:19 AM Ok everything is working good except one thing. Paypal is not updating there credits and does not let you return to the page. If someone for example goes straight into place an ad and goes through the steps in adding there picture and description etc then gets the error that they dont have credits they for one dont know to go to my accounts to purchase them and 2 when they do go to purchase them it goes into paypal, lets you pay and all that is correct but does not take you back to the webpage where they just spent all the time setting up there ad. It actually doesnt go back to the website at all. It also doesnt add the credits to the users account even after they have paid. Is there a setting that I am missing?
Thanks for the help.
Wlang,
I have exactly the same problem. On Paypal my IPN setting =on
Hope Jafo can help us...
Gijsbert
wlang 03-01-2005, 09:27 AM Yea I hope so to. I was reading other post regarding paypal. They are asking to change the paypal.cgi script. However when logging into my server, their is not paypal.cgi script. Any suggestions??
Wlang,
So far I have good experiences (see the item 'some questions 4.0'). Because the former script was a cgi-script, some people are stil talking about that one or making a mistake. I found the actual IPN routines in the index.php file.
Bert
wlang 03-01-2005, 09:44 AM }
### Paypal IPN
elseif ($form['txn_id'] != "") {
$req = 'cmd=_notify-validate';
foreach ($_POST as $key => $value) {
$value = urlencode(stripslashes($value));
$req .= "&$key=$value";
}
Here is the section in the Index.php file. Do you have any idea what I need to edit on this. Let me know if you need to see more of the file and I will post it here.
Thanks for your help.
wlang 03-01-2005, 10:03 AM ok after I tried making the paypal page go back to the site it never gets there. All the paypal site does is go to a summary of what I have purchased in the past. It never brings you back or updates the credits.
http://www.worldwidecreations.com/forums/showthread.php?t=885
Jafo,
I made a new account, and indeed there are credits now. After that I bought via PayPal one credit. This credit was not added to my account.
So the PayPal issue is still open - I think.
Gijsbert
Are you sure the script is being contacted by Paypal? Did you setup your IPN to contact the script? It would be the entire URL to the paypal index.php page. Also, make sure you turn the pages on.
If paypal is contacting the script, information about it should be located in the temp directory.
wlang 03-02-2005, 04:53 AM Ok I have verified that the IPN is directed to the correct page but it never gets sent back to the page and it never updates the credits. This issue is still open. Is there a way to contact you in a differnt way. I really need to get this up as soon as I can. This was supoosed to be up on Monday when we purchased the script and I would really apprecaite assistance. This is the last issue I am having with this script and is the most crucial as you well know. Please help.
Jafo,
In my case it is a second IPN url. According to Paypal this is very possible including the notify_url in the HTML. ( https://www.paypal.com/en_US/pdf/integration_guide.pdf (p 93). It should override any settings in your Paypals 'profile'. )
I don't see that notify_url statement in your files. So if I add in the user_account.php:
<input type=hidden name=notify_url value="http://www.nauticlink.com/vaarmarkt/">
you think it should work?
Bert
Adding to my last message above:
I tried. Perhaps it should work, but then there is something else that doesn't...
Bert
If you want to place the notify_url tag to the payment string, open index.php and find this line:
Redirect("$paypal_url$paypal_address&item_name=$paypal_item&item_number=$id&amount=$price&no_shipping=0&no_note=1¤cy_code=$paypal_currency",Messages(ProceedingToPayment));
Modify this to something similiar to:
Redirect("$paypal_url$paypal_address&item_name=$paypal_item&item_number=$id&amount=$price&no_shipping=0&no_note=1¤cy_code=$paypal_currency¬ify_url=http://yoursite.com/classads/index.php",Messages(ProceedingToPayment));
Just make sure you use your URL there.
In your temp directory, there should be a file called activity.php (provided you set permisions on the temp directory 777). That file should contain any contact made to the script from Paypal. If there is no file there, then either your temp directory is not 777, or your IPN settings (or notify_url) are not correct.
wlang 03-02-2005, 06:34 PM Is their anyway if I give you temp access to where your program is installed on our server, you or someone on the tech staff could help us out solve our PayPal issue?? I would really appreaciate it very much.. Tell me how we can hook up...
Sincerely,
William
Could you tell me if there is an activity file in your temp directory?
wlang 03-02-2005, 07:24 PM No their is not
wlang 03-02-2005, 07:37 PM I even looked in the install files we uploaded and their is no Acitive Directory
wlang 03-02-2005, 07:45 PM I have looked at all the Directory structure and I don't see any activity file located in any directory. Anyway I can get it??
There should be an activity.php file in your temp directory.
wlang 03-03-2005, 02:41 AM I looked everywere for this file, and I don't see one at all
wlang 03-03-2005, 04:25 AM I looked again in every directory and also had another person look and I do not have this file anywhere. Is this a file that is generated and gets put in the tmp folder or should we have this file when we install the script. Please let me know what I can do to get this file if I need it to get this to work. thank you.
Jafo,
Thanks, it works now!
Please remind the script to add the identity to automate adding the user ID to the user_id field of the credits table of my allready 217- registrated users (was other credit issue)
Bert
Wlang,
Do you have your PayPal- IPN settings well set? (IPN=on and the right index.php url for your classifiedsscript? I have the activity-file now indeed in the tmp directory.
In my case there was another issue with the notify_url that occurs if you have two different Pay Pal IPN scripts running... Perhaps your case?
Bert
wlang 03-03-2005, 08:24 AM Yea I do: I have the IPN settings going to http://www.globalnetone.com/shareware/index.php So what you are saying if I have the right IPN Set up and have the Activity File in my tem directory this should worked?? Anyway I can get this file?? I really would like to get this up and running ASAP!!!!
Ok, are you sure the tmp directory is CHMOD 777? This file should be created by the script as soon as Paypal contacts it.
If it is not being created, then my first guess is, the script is not being contacted so either a. Your IPN settings are incorrect or turned off, or b. paypal is notifying a different script.
wlang 03-04-2005, 11:30 AM ok I have double checked the folder and it is 777. I also made sure my settings are set to on for the IPN and made sure I am forwarding it to http://www.globalnetone.com/shareware/index.php
Now is this the correct place to go from paypal or should it be going to a different place. I have checked everything to make sure it is setup properly but this is just not working. Let me know what else may need to be done.
Thank you in advance.
Yes, that is the correct place. Are you sure you also checked the box to turn IPN on?
wlang 03-14-2005, 03:10 AM ok Jafo everything is setup perfect but this is still not working. All it does after you make the payment is take you to the summary of things you purchased. The credits do not update and it does not take me back to the place I stated above. This has gone on way to much now. How can I get in touch with you so I can fix this issue. I have other scripts setup that the IPN forwads just fine. Not sure what is going on with this script but I really need a solution as soon as possible. Please help.
wlang 03-15-2005, 07:50 AM Jafo,
Please help us with this issue we are having on the script. The IPN settings are setup correctly but it only goes to the summary of things you bought within Paypal and not back to the script. It also does not update the credits. I know I am so close to getting this resolved I really need your assistance.
I just ran a test on your script that really shows that your IPN settings are probably not correct. When I went to this folder on your site:
http://www.globalnetone.com/shareware/tmp/
There was no activity file.
I then wrote a litte script here on my side that posted to your classifieds script emulating a simple paypal transaction. There is now an activity file.
If Paypal was contacting the script, there would have already been an activity.php file.
wlang 03-16-2005, 03:03 AM Hello Jafo,
I went into my Pay Pal account and made sure the ipn address was set to http:///www.globalnetone.com/shareware/index.php and made sure it was turn on. I see in our Directory that their is a acitivity.php file located in our tmp directory. So I went ahead and re submit another test.
Still I get the same results. After someone pay's it wont go back to the script to update someones account. What are we doing wrong??????
William
Please tell me this is not how you typed it in your paypal account:
http:///www.globalnetone.com/shareware/index.php (http://www.globalnetone.com/shareware/index.php)
That is how you have it typed above, when it SHOULD be:
http://www.globalnetone.com/shareware/index.php
(note the two slashes instead of three).
wlang 03-16-2005, 10:00 AM Jafo,
In the IPN it is set up this way.. http://www.globalnetone.com/shareware/index.php The first one is a typo... It is set up correctly. Right now if you try to pay it will charge you one penny.
William
Ok, I have a feeling your email address that you are using is not correct, when I go to the payment page:
"Note: This recipient is not yet registered with PayPal. An email will be sent to the recipient explaining how to open a PayPal account and receive your transaction.
Pay To: salessupport AT postsithere.com "
(I replaced @ with AT)
It would seem that email address is not linked to your business paypal account, which is required. You should change the email address in the change settings section of the admin control panel (paypal_address variable) to reflect the email address you have on file with your business account.
wlang 03-16-2005, 10:29 AM Jafo the email address is correct. I have double checked and can log into Paypal and get my information and everything with no problem I know this email address is valid and registered with Paypal.
wlang 03-16-2005, 10:36 AM Jafo,
I even made the Primary email account in PayPal the correct email account on our script. Still when I tried to pay it still would not credit my account.
William
This is what I get when I try to pay:
wlang 03-16-2005, 10:53 AM I am going to contact Paypal and see whats going on. From my side it says I am verfied. I have other things that use this account and it works fine. This is the first itme I have ever seen this and cant imagine me not being verfied. It even says on my account that I am verfied. Is there another thing I am supposed to do? It just doesnt seem right that everything else works fine but this scxript is saying I am not verfied with Paypal. What else can I do?
Are you sure the email address is correct? No typo's?
wlang 03-16-2005, 11:57 AM Yes it is
wlang 03-17-2005, 06:07 AM ok Jafo we changed the email address and made sure it is verfied. The credits are now being updated. We are making great progress. The only thing now is that it still is not forwarding it back to the website. It is staying at the Paypal history page. We have doubled and triple checked the IPN settings and made sure it was set correctly. We have made sure it is checked to being on, but it still will not go back to the website. Like I said the credits are now being updated so that is a big step. This is a more minor issue but still would like to have the customers get sent back to the website so that they will see that there purchase went through. Any ideas what we can do? Thanks again for your help on the other problems we were having, I hope that there is a quick solution to this issue and then we wont have to bug you anymore.
William
Actually, this really doesnt have anything to do with the script in itself but by the fact that there is no return URL setting in the paypal link.
You can add a return page to the link by finding this code in the script (index.php):
Redirect("$paypal_url$paypal_address&item_name=$paypal_item&item_number=$id&amount=$price&no_shipping=0&no_note=1¤cy_code=$paypal_currency",Messages(ProceedingToPayment));
And changing it to:
Redirect("$paypal_url$paypal_address&item_name=$paypal_item&item_number=$id&amount=$price&no_shipping=0&no_note=1¤cy_code=$paypal_currency&return_url=http://www.yoursite.com/somethankyoupage.php",Messages(ProceedingToPayment));
Note you would have to change the domain and page that you are going to send your users too. It cannot be an .htm or .html page because Paypal will be posting to that page, and many servers will throw an error when you try to post to a page with a .htm or .html extension.
I believe that is how you do it with Paypal, but if that doesnt work, you might want to checkout paypals help files to see how to insert a thankyou page in a sales link.
wlang 03-23-2005, 03:55 AM Thank you for the info, we will look into this.
MajorHart 05-18-2005, 01:31 PM Where in paypal is the ipn url placed. I went to the merchant tools and all it had was a demo. I assume I would direct it back to
http://pride-of-st-joseph.us/class40/index.php - which is the homepage of my classifieds - but not sure.
MajorHart
In paypal, click profile -> instant payment preferences.
theshark 03-12-2006, 11:51 PM after adding the return url to the index.php page, when you go and do a payment it says proceeding to checkout and then dumps me right to the paypal home page...
what the heck. it was working before and was updating account credits fine but it wasnt redirecting back to the site after a sale... now it wont let me even make a payment...
theshark 03-12-2006, 11:54 PM do i need to upgrade to a business account? i dont understand why it worked before but not now
theshark 03-13-2006, 12:02 AM nm fixed it, i had ?User_account after index.php... guess u cant do that
theshark 03-13-2006, 12:16 AM hehe nope not fixed... it lets me go through the payment process, correctly updates the account credits but it doesnt send me back to the return_url i specified in index.php file
the return url is http://2guysads.com/index.php
I have another script that uses the PayPal IPN. Does this mean I have to create a new paypal account to use with the Classifieds Script?
No, you only need on paypal account.
|