I want to insert a simple function on my website that allows users to pay to download pdfs, but allows them to type in how much they want to pay when they check out. What's the simplest %26amp; cheapest way to do this? Are there any shopping carts out there that already come with this, and can be paired with an automatic download-after-paying function?|||Download the free scripts "Easy PayPal Integration" and "Shopping cart" from http://www.web2coders.com
In the paypal function, set the field "amount" to be "text" instead of "hidden" (or disabled)
That will allow users to modify the default amount.
As to download PDF, I suggest you set-up a table in database, where you stroe the temporary session, the product, the price, and the file name. Once the payment is completed, copy your original PDF file to a MD5 name and give a link to that file. That way, the user can download the COPY of the file, without interfering with the original.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment