AlexStudio Posted October 27, 2005 Share Posted October 27, 2005 For there are very limited instruction available in the Downloads Controller Contrib, http://www.oscommerce.com/community/contributions,994 and complicated setup procedure for both osC and Paypal IPN http://www.oscommerce.com/community/contributions,2679 to work correctly, I decided to write this setup guide, for those who does have the skill to manipulate the PHP or other codes/scripts. The reason to combine these 2 add-ons to osC is quite obvious. Paypal is the best choice for those newbie e-store owners to receive payments, and the Downloads Controller is the best contrib to solve the downloadable goods problems come with the osC MS2.2. If you want to find out what's wrong with the original download module built-in with osC MS2.2, please do the search for 'stealing download without paying' or 'blank download page'......,etc, in this forum. You will find out there are huge security issues with the original download module and problem downloading large files. installing osCommerce PayPal IPN Module v1.0 For 2.2MS2 1. The installation guide can be found in this contrib. READ IT! It's quite straight forward. For those who don't understand how to setup to encrypt payments data to be sent to Paypal, we will deal with that part later. 2. Make sure you have followed every instruction in the installation guide, including the osC MS2.2 and osC PayPal IPN Module. !!!!!!!! CHMOD /catalog/download to 755, and /catalog/pub 777, also create /catalog/tmp and CHMOD to 777. 3. Go to Admin page, under Configuration>Download, set Enable download true, Download by redirect ture (Unix based host only). NOTICE: redirect only work with Unix based host!!!! If you set this to true with non-unix host, download WILL NOT WORK!!! Set redirect to false if you're using non-unix host. Also under Configuration>Gzip Compression, set to false. Many people have problems with gzip truned on. Under Modules>Payment>PayPal (Credit Card / Debit), set Enable Paypal IPN module true, set Gateway Server to 'Testing'. And fill-in with a false e-mail address in the E-Mail Address field. This e-mail address will be used for PayPal Sandbox. Fill-in page style with 'Paypal', and Debug E-Mail Address with your REAL e-mail. Now we are done with the PayPal IPN Module. We can deal with other settings later. 4. Go to PayPal website and sign-up an Developer account in https://developer.paypal.com/devscr?cmd=_signup-run page to use the sandbox. There are many instructions available for setting up sandbox in the developer center. Read them. Create at least 2 accounts in sandbox, one for seller, and the other for customer. The seller must setup with the false e-mail address which we fill-in the IPN module. Then setup false credit cards for both seller and customer, I suggest you to do the verify procedure to make both sandbox accounts Verified. Then in the sandbox, seller's profile, Instant Payment Notification Preferences, turn IPN on, with the URL http://yourdomain/catalog/includes/modules.../paypal_ipn.php then save. 5. Upload a samll test.zip file to /catalog/download for later testing. The file size should be no larger than 1Mb. We want to make sure everything works fine before we approach forward. The smaller file seems to be less problematic. It doesn't matter what you put in the test.zip, but make sure you can unzip it without problem. Naming that .zip file is crucial for download to work properly later. 6. Go to Admin page, under Catalog>Categories/Products, add a new product with whatever name/price, set weight to 0. Go to Catalog>Products Attributes and add an option name 'Shipping Options', and an option value 'Instant Download'. Now from the dropping list add a products attributes below with the product name we just created, then select option name 'Shipping Options', and option value 'Instant Download'. Fill-in file name with 'test.zip' and leave the others and click 'insert'. Now we have a new product which is downloadable after payment approved. 7. Now we can test purchasing the test.zip with Paypal sandbox, if you have done everything correctly, you can make payments with the false customer account in sandbox, than the browser returns to your store, with download link available. NOTICE: Try not to complete the Paypal payment pages, open another browser and login again with the same user account, go to 'My Account', Wala!! The download link is there without paying a dime!!!!!! BIG PROBLEM, right? If you have no problem downloading the test.zip file, with or without payment, don't forget to open or unzip it. If your downloaded file can't be opened, then you have some problem with your server. Probably something is wrong with your host setup. Fix the problem before going on next step. Download will not work if you don't get it work here. to be continued........ hooher tod 1 Quote Super Download Shop, PayPal Express Checkout IPN, Selling Downloads, Visual Validation (preventing robotic flood), phpBB2 Integration Yes, I'm willing to help, but please ask in the right place. Think twice before trying to PM me, it might be ignored. Link to comment Share on other sites More sharing options...
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.