View Full Version : Not opening pay screen
Jocelyn 05-07-2004, 09:30 AM I have two problems
I am using WorldPay instead of PayPal and when I submit and ad it's not opening up the WorldPay site, although it is automatically posting the ad. $Paypal is definitely set to 1 in the classads.cgi and I have changed the URL to point to WorldPay instead, but it's not attempting to go there.
The second is that I cannot list an ad or preview an ad. The error message is:
Im sorry, there was an error with this operation: Cannot Find .htm file, this is most likely a basepath error.
This is misleading as I have another ad that I posted two days ago that it can list. Does it use the ID to uniquely identify that ad? If so can I show it to check the id is created properly. If I look in ads directory it all seems normal and there are unique ids
The script is not compatible with any other merchant provider than Paypal, I have no clue on how Worldpay works or why you would be having problems with it.
The "Cannot Find .htm file" error message means you did not upload the ad templates correctly.
Jocelyn 05-10-2004, 12:59 PM I've managed to get it to call WorldPay. What I need to know from you is how I can incorporate sending information in HTML format. I've changed the PayPal_ad_success screen to send the information in HTML (which works) the problem I have is that I need to parse the <!--ID-->, how cam assign ID's value to a local variable?
terryriw 10-31-2004, 11:30 AM I have a problem with the ads posting. I have installed all of the scripts and have set the switch to 1 for Paypal payments. I can enter in the text for ads and click submit. I then get the page that states that to complete the ad submission I have to make a payment by clicking the link. I do this and I get to the paypal payment page. After making a payment, I do not see the ad being posted. I have set the IPN to ON and have inputted the URL to paypal.cgi in the appropriate place (the URL is http://www.adultsonlyadverts.com/cgi-bin/classads/paypal.cgi). Do I have to include this URL into the payment link, also?
The problem is that the ad does NOT get added when payments are made.
Terry
:confused:
First, make sure your not paying with an E-CHECK or they will not post until the E-Check clears.
terryriw 10-31-2004, 11:58 PM First, make sure your not paying with an E-CHECK or they will not post until the E-Check clears.
We're not using e-Check. e-Checks don't have to be refunded. Everytime we test the paid ad feature, using my brother's account, we have to refund the $$$. After the payment is made, no ad is posted on the site. The payment shows up, but the ad does not. If we put the site up as is, we'll have the conumer protection agency and the better business bureau crawling all over us. We're taking money for ad but the ads don't get posted? I followed the instructions in the configuration. So, what isn't in the instructions that I don't know about?
Terry
:(
You should have a file in the classads folder called activity.txt. Could you post the contents of the file here.
terryriw 11-04-2004, 10:25 PM There is no file called activity.txt in the classads folder. The classads folder is under the cgi-bin folder. Is this something the application was to create? There is nothing about activity.txt file in the Readme.txt file. I've followed the instruction in the Readme.txt file and changed the file permissions to 755 or 777.
The paypal.cgi file should create it. I think you should check the variables in paypal.cgi and make sure you defined them correctly, especially the $basepath variable.
terryriw 11-04-2004, 11:40 PM OK. I checked the paypal.cgi file and DID find an error in the basepath -
/home/sc10227/www/cgi-bin/classads
I had left off the 'www'. I reloaded the paypal.cgi file up to the server and ran another test. Same results...payment made....no ad. Also, still no activity.txt file.
terryriw 11-04-2004, 11:51 PM I did notice one thing. A new file called ERROR3.txt. When we run our tests we refund the money back to the paying account. The ERROR3.txt shows the refund. That's good, right? But I still don't see any file named activity.txt.
Ok, that doesn't make much sense. The activity file is written to every time paypal.cgi is activated. I am not sure why it would write to an error file and not the activity file.
Be that as it may, the ERROR3.txt file is only written to if the $email variable is not the same as in the paypal link created for the sale, the payment variables do not add up, or if the transaction already exists.
Could you post the contents of one of the refunds here? I will delete the sesitive information (email addresses) after I review it.
terryriw 11-05-2004, 08:48 AM I don't understand either. The directory permissions are set to 777. The contents of the ERROR3 file are:
ERROR: | lindaki@comcast.net | 1099626146 | | Refunded | -9.99 | 2LD34193575168441 | terry@iwaniw.net
ERROR: | lindaki@comcast.net | 1099625624 | | Refunded | -9.99 | 5L845066V1377033L | terry@iwaniw.net
The info isn't THAT sensative. If anyone want to send funds to either PayPal account, they are more then welcome to. :-)
The entries above were generated after we had refunded the moeny back.
terryriw 11-05-2004, 12:36 PM Is the file, activity.txt, actually created by paypal.cgi or do I have to create an empty text file called activity.txt? And then change the permissions to 755?
It shold be created, but you can create an empty one if you wish, but CHMOD it 777.
terryriw 11-06-2004, 04:15 PM Do I need to do anything else on PayPal other then update the IPN URL? I did not add a URL to the successful payment page. However, I did point the IPN URL to the paypal.cgi script.
No, nothing else need be done. Could you send me a link to your classifieds so I can see?
terryriw 11-07-2004, 01:03 AM No, nothing else need be done. Could you send me a link to your classifieds so I can see?
http://www.adultsonluadverts.com/cgi-bin/classads/classads.cgi
Are you sure that is the correct URL, I keep getting site not found errors?
terryriw 11-09-2004, 08:36 PM Are you sure that is the correct URL, I keep getting site not found errors?
Sorry....
http://www.adultsonlyadverts.com/cgi-bin/classads/classads.cgi
I just logged on the FTP server to upload the file activity.txt and I noticed that now there is a file called actvity.txt (same but missing the first 'i'). Also found another file called FRAUD.txt. They weren't there before.
Here is the contents of actvity.txt:
error: CLASSIFIED ADS | lindaki@comcast.net | 1099626146 | | Completed | 9.99 | 1B562651475428527 | terry@iwaniw.net
error: | lindaki@comcast.net | 1099626146 | | Refunded | -9.99 | 2LD34193575168441 | terry@iwaniw.net
error: | lindaki@comcast.net | 1099625624 | | Refunded | -9.99 | 5L845066V1377033L | terry@iwaniw.net
error: | | | | | | |
Ok, odd that it is being created now.
Please open classads.cgi, copy and paste to this forum these lines from your file:
### Amount to charge for base listing without features. If set to 0, no charge for base listings
$base_listing = "0.00";
### Amount to charge for featured listings
$featured_listing = "0.00";
### Amount to charge for bold listings
$bold_listing = "0.00";
### Paypal link
$pay_link = "https://www.paypal.com/xclick/business=you%40yourdomain.com&item_name=Classifieds_Purchase&item_number=<!--IDNUMBER-->&amount=<!--PRICE-->&no_note=1¤cy_code=USD";
And then open paypal.cgi, copy and paste these lines:
### Email address for sale notifications must be the email address used in your paypal link.
$email = "sales\@yoursite.com";
### Amount to charge for base listing without features. If set to 0, no charge for base listings
$base_listing = ".50";
### Amount to charge for featured listings
$featured_listing = ".50";
### Amount to charge for bold listings
$bold_listing = ".50";
terryriw 11-11-2004, 01:08 AM From the classads.cgi file:
### Amount to charge for base listing without features. If set to 0, no charge for base listings
$base_listing = "9.99";
### Amount to charge for featured listings
$featured_listing = "5.00";
### Amount to charge for bold listings
$bold_listing = "2.50";
### Paypal link
$pay_link = "https://www.paypal.com/xclick/business=lindaki%40comcast.net&item_name=CLASSIFIED+ADS&item_number=<!--IDNUMBER-->&amount=<!--PRICE-->&no_note=1¤cy_code=USD";
From the paypal.cgi file:
### Email address for sale notifications must be the email address used in your paypal link.
$email = "lindaki\@comcast.net";
### Amount to charge for base listing without features. If set to 0, no charge for base listings
$base_listing = "9.99";
### Amount to charge for featured listings
$featured_listing = "5.00";
### Amount to charge for bold listings
$bold_listing = "2.50";
Did you create a directory called paytemp in the classfieds directory? Is it CHMOD 777?
terryriw 11-11-2004, 11:30 PM Yep. That was in the instructions.
Is there anything in that directory?
terryriw 11-12-2004, 06:12 PM No, it's empty. Should there be anything there? The instructions didn't mention that I needed to create a file for that directory. The directory permission is set to 777.
My apologies, I suppose I should have asked you if you are using the MySQL or flatfile version first?
terryriw 11-12-2004, 06:24 PM MySQL.
I just ran another test and the funds were taken out, but no ad appeared. I don't see any new text files.
There will not be any text files in the paytemp directory in the MySQL version.
In order for me to find out what is wrong, I am going to need access to your server. Please send the FTP information to our contact form via our main site.
terryriw 11-12-2004, 06:29 PM OK, but I don't have that info with me. I'll send it in a little while.
Ok, fixed. You did not have the correct database name in the paypal.cgi script. You had:
$dbname = 'classads';
Where it should have been the same database name as in classads.cgi. I changed that, and my test ad posted.
When you get a chance, please refund the test purchases I made for bookkeeping purposes.
terryriw 11-15-2004, 02:59 PM OK, thanks. You should have had your funds returned.
I still need to look at all of my basepaths because I did see the ad you put in listed on the index, but when I click on it I get an error. Gotta look at all of the cgi's again. :cry:
|