celticweb Posted April 7, 2008 Share Posted April 7, 2008 Hi everyone, I know that there are plenty of threads about digital downloads links, I am sure I have been through all of them. So sorry for being a pain. I have set up my store for digital downloads with paypal ipn. I use the ipn on the paypal site and not the oscommerce contribution. I have the return address on paypals ipn as checkout_process.php . I have all the order statuses set for pending and the files for download (.rar) are in the downloads folder. I have downloaded the ipn contribution for oscommerce and uploaded ipn_paypal.php to the payments module but it is not appearing there for installation. I have tried the store and bought a test product and I get redirected to paypal (can only use the "without account" if I use the Pay Pal Standard setyup eben though express payment is also installed.) I got to pay pal, payment goes fine, the money is taken from my bank account and appears in my pay pal account. I get redirected back to the site , I can see the words where it should be a download link, but its not a link. All the other details are correct and I get the same information when I view the downloadables through my account. I have the download by redirect swithced to off, as many posters seem to suggest. I have not changed the download.php file as suggested by Scotty2000 as it is not clear what remains of the original code and security is not a big issue for me right now. I am using the most recent version of oscommerce 2.2rc2a. So any ideas as to what I am doing wrong. Most of the php files remain untouched apart from those editted in the original set up. I am sure I am missing something with the php. I am not an experienced coder but pick things up fairly quickly. Thanks in advance for the help, I have seen you folks help out others a lot, hope you can do the same for me!!! John Link to comment Share on other sites More sharing options...
Guest Posted April 7, 2008 Share Posted April 7, 2008 what happens when you go to the admin area and update the order status to updated? do you get the link then? Link to comment Share on other sites More sharing options...
celticweb Posted April 7, 2008 Author Share Posted April 7, 2008 what happens when you go to the admin area and update the order status to updated? do you get the link then? Hi John, thanks for the speedy reply. Nothing happens sadly. I installed the UPDATED option for Order Status, set it as default and then set the order status on the payment module as default - still nothing happens. Any other ideas gratefully accepted. John Link to comment Share on other sites More sharing options...
celticweb Posted April 7, 2008 Author Share Posted April 7, 2008 I have followed all the step by step procedures out there and none of them work. If anyone has got the digital downloads to work please let me know how they did that. At this stage I would consider paying someone to fix the problem. Cheers. JOHn Link to comment Share on other sites More sharing options...
lindascott121 Posted April 7, 2008 Share Posted April 7, 2008 So, in your product attributes section (in admin) you have set up an option name of "download" or something similar, and a corresponding option value of "Yes"? and you have entered in the path to your file - yourfile.zip? and downloads are enabled in admin/configuration? And, in fact, you have a downloads folder with said file within? If all of that is fine, check your catalog/includes/configure file Mine is like this: <?php define('HTTP_SERVER', 'http://www.mysite.com'); define('HTTPS_SERVER', 'https://www.mysite.com'); define('ENABLE_SSL', true); define('HTTP_COOKIE_DOMAIN', 'mysite.com'); define('HTTPS_COOKIE_DOMAIN', 'mysite.com'); define('HTTP_COOKIE_PATH', '/catalog/'); define('HTTPS_COOKIE_PATH', '/catalog/'); define('DIR_WS_HTTP_CATALOG', '/catalog/'); define('DIR_WS_HTTPS_CATALOG', '/catalog/'); define('DIR_WS_IMAGES', 'images/'); define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/'); define('DIR_WS_INCLUDES', 'includes/'); define('DIR_WS_BOXES', DIR_WS_INCLUDES . 'boxes/'); define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'functions/'); define('DIR_WS_CLASSES', DIR_WS_INCLUDES . 'classes/'); define('DIR_WS_MODULES', DIR_WS_INCLUDES . 'modules/'); define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'languages/'); define('DIR_WS_DOWNLOAD_PUBLIC', 'pub/'); define('DIR_FS_CATALOG', '/catalog/'); define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/'); define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/'); define('DB_SERVER', 'localhost'); define('DB_SERVER_USERNAME', 'your_username'); define('DB_SERVER_PASSWORD', 'password'); define('DB_DATABASE', 'your_database'); define('USE_PCONNECT', 'false'); define('STORE_SESSIONS', 'mysql'); ?> I remember when I was setting this up two years ago I was also tearing my hair out. Turns out I was missng a forward slash after the word "download" in the above code. Link to comment Share on other sites More sharing options...
Relative0 Posted April 8, 2008 Share Posted April 8, 2008 Perhaps someone might have some advice for me... I am not getting the download link all together, (even with the "unreal.zip" file for testing). I can pay myself through paypal, (2 different accounts) and it seems that I am sucessfully re-directed back to the OSCommerce page which has a clipart of a guy on a surfboard and the following text, (with a little checkbox in front of "digitalpic" -------------------------------------------------------------------- Your Order Has Been Processed! Your order has been successfully processed! Your products will arrive at their destination within 2-5 working days. Please notify me of updates to the products I have selected below: digitalpic Thanks for shopping with us online! -------------------------------------------------------------------- So something is returning and working right. I did under product admin, make a the product options and such so that I can say I want it downloaded, (as well of course setting the download to true in the "configuration->downloads", as well as the re-direct to true). I tried putting the name, in this case for "digitalpic", I tried, in the filename box for the download option in the "catalog->product attributes" to put the filename as "digitalpic.zip", as well as "digitalpic", (without the quotes of course). I also have a download folder underneath the catalog folder, (where the unreal.zip also is). I uploaded the digitalpic.zip to it too. Some of my thoughts, well first, there are a bunch of settings when I enable the Credit/Debit Card (via Paypal), and have tried several of them but am not sure of the combinations to put the 3 fields: Set Preparing Order Status Set PayPal Achnowledged Order Status Set PayPal Completed Order Status However it might be more significant that it seems even if I change the folder name which contains the 3 files my-prvkey.pem, my-pubcert.pem, and paypal_cert.pem, I still get to paypal and can pay. I don't know if these ".pem" files are even being found or not. Also for the OpenSSL Location I have /usr/bin/openssl which is on my C:drive. I don't know what to set this to or where I got the idea to set it to this. I also have Enable Encrypted Web Payments set to False, I don't see how that would matter for getting the download link, but I have no idea what the problem is so I kind of wouldn't be suprised. I am running this on a Live Server. Have GoDaddy Hosting, have the Proxy server set to what it is suggested for the cURL for GoDaddy. I also removed the cURL to see if that worked, but to no avail. On the Customers->Orders page, the orders show up and they say Prepairing [Paypal IPN]. I also have the IPN turned off in Paypal via the instructions found in the paypal installation module osCommerce_PayPal_IPN_v2.3.3. I also have oscommerce-2.2rc2a. Also, even while I am going through the buying process for the image for digital download I get the page "catalog/checkout_payment.php" and it has the adress details. While I don't care if it shows an adress, (even know it is pointless as this is a digital download), I thought it might shed some light on what is going on.... The values contents of that page are below.... Any ideas no what is going on? Thanks very much, Brian ------------------------------------------------------------- Credit/Debit Card (via PayPal) Products (Edit) 1 x digitalpic - Download: Yes $0.01 Billing Information Billing Address (Edit) Think! Brian Droncheff 1811 Tamarind Ave. Apt. 24 Los Angeles, CA 90028 United States Payment Method (Edit) Credit/Debit Card (via PayPal) Sub-Total: $0.01 Total: $0.01 Payment Information Credit/Debit Card (via PayPal) ------------------------------------------------------------------- Link to comment Share on other sites More sharing options...
Relative0 Posted April 8, 2008 Share Posted April 8, 2008 Also, I just got a E-mail as I tried to set different parameters for one of the orders under "Customer->orders" one of them that had the value "Preparing [PayPal IPN]" and had a red x marking that an e-mail had not been sent to the Customer. So I changed the "Preparing [PayPal IPN]" to "Processing" and I got a green checkmark. A little bit later I got an e-mail, (The e-mail for the seller), about an "PayPal IPN Invalid Process". The e-mail contents are below: $_POST: payment_date=19:05:57 Apr 07, 2008 PDT txn_type=web_accept last_name=Droncheff residence_country=US item_name=Brian\'s Store payment_gross=0.01 mc_currency=USD [email protected] payment_type=instant verify_sign=AiPC9BjkCyDFQXbSkoZcgqH3hpacAAvB2Y-eQjacgBhbl3.GwIgm5DCS payer_status=verified tax=0.00 [email protected] txn_id=6TN915917A5566042 quantity=1 [email protected] first_name=Brian payer_id=F5HGYGQRESC4S receiver_id=4AY9BYMP4H6RE item_number= payment_status=Completed payment_fee=0.01 mc_fee=0.01 shipping=0.00 mc_gross=0.01 custom=2 charset=windows-1252 notify_version=2.4 $_GET: language=english Any ideas?? Thanks kindly, Brian Link to comment Share on other sites More sharing options...
lindascott121 Posted April 8, 2008 Share Posted April 8, 2008 I have download by redirect set to false. I use paypal standard, and the acknowledged order status is set to "delivered". Does it work on your local server when you try the fake credit card to purchase? Try that,and if that works you know your issue is with the paypal setup. Link to comment Share on other sites More sharing options...
desiredin Posted April 9, 2008 Share Posted April 9, 2008 If the name is showing up, but you cannot click on it, then it isn't finding the file. If you are putting in the full path "/download/filename.rar"of the file rather than the file name "filename.rar", that is why. Because OSC has the download directory path set on the configuration, all you need to do is type in the filename when declaring your attributes. Link to comment Share on other sites More sharing options...
shartlesville Posted May 28, 2008 Share Posted May 28, 2008 If the name is showing up, but you cannot click on it, then it isn't finding the file. If you are putting in the full path "/download/filename.rar"of the file rather than the file name "filename.rar", that is why. Because OSC has the download directory path set on the configuration, all you need to do is type in the filename when declaring your attributes. The only way I got the download function to work was to upload the downloadable file to TWO locations: store/catalog/download store/catalogdownload If I put the file in only one of the two, I get no link. It must be in both folders though I have no idea why. I am guessing there was a typo somewhere that left out the original / between catalog and download but I have no idea where to look for that. It takes extra time and server space but it works. Now, if only I could get the "free" items to automatically set to "complete" so people could download them without waiting for me to update the status, I would be a happy camper, lol. Good luck! K Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.