Page 1 of 1

Find File-Pay-Redirect-Download???

Posted: Thu May 29, 2008 8:54 pm
by jdtsigns
Guys I have been left sitting high and dry from a guy that said he could write code. I do mean high and dry, he got away with few bucks I had saved for somebody to write the code for my website.

Nevermind with that, I need help!!

I understand HTML with no issues at all, but I have no idea what the heck I am doing with PHP, I have read plenty of tutorials, and tried many times.

The object here is customer comes to site, explores for clip-art, finds the file he/she wants, they must pay via paypal on a BUY IT NOW, and I then want them to be redirected back to the same page so they can download the file they just purchased. Paypal has a redirect code but it will only redirect to a page such as a Thank You for your purchase.

Is this even possible, because I know once the customer leaves the page, when they return it will refresh back to the gallery, and then they will have to search for the file again and the payment will not work. I have also had thoughts about making a TOKEN system. They purchase a certain amount of Tokens for a certain dollar amount, then when they are redirected, the page refreshes showing the credit on their account. POSSIBLE with PHP??

Is there an free code out there that I can just plug n play, of course I understand I will have to route it correctly, but I am an idiot with this stuff. I need some help, I have been working on this for a few days now.

Please take it easy on me!!! Not very happy for being so stupid, it almost feels like having your house broken into. :banghead:

Thanks in Advance
Jason

Re: Find File-Pay-Redirect-Download???

Posted: Thu May 29, 2008 9:48 pm
by hansford
When you create the 'buy it now' button you can edit the redirect URL to point back to your site. You can possibly add a query string to the URL that would identify to your site that 'yes' someone paid for your product and what product they paid for.

href="http://www.yoursite.com?product=productname";

then use

if(isset($_GET['product']){
$product = $_GET['product'];
}

or you could use a password protected zip file. You let them download the product, but they cant open it until you verify that they paid for it-then you email them the password for that particular file. I personally would be <span style='color:blue' title='I'm naughty, are you naughty?'>smurf</span> if I had to wait for you to come home from work, check paypal etc... before I got my product though lol
Using the $_GET without writing security code can be risky though as it's easy to exploit. Go to a place like http://www.project4hire.com/ where several programmers will bid your job-cheap! as they are all from poor countries. They have reputations on the site ie; feedback, so it's unlikely you'll get screwed unless he hasn't done many projects

Re: Find File-Pay-Redirect-Download???

Posted: Thu May 29, 2008 10:02 pm
by jdtsigns
I just found this cool site called Hotscripts.com. They have several scripts designed for what I am looking for. The only problem is, most of the reviews are not consistent. One will be good, one will be bad. So it makes it hard to decide to go that way.

This is a new venture for me. I have a online sign shop and have been doing online sales for a while. But I have my site setup to work well for what I want. But I was thinking about adding something different on a sub-domain to make a few extra bucks.

I wish I could get some opinons from some of the veteran php'ers on some of the products offered at hotscripts.

Heres the link if anybody wants to take a look & chime in.
http://www.hotscripts.com/PHP/Scripts_a ... index.html

Thanks for your info hansford. I to am worried greatly about somebody being able to break through and link to the download and passing it out or whatever after just paying once.

Just a side note about having to wait, I work from my own shop, so that is my day job. Most of my time (85%) I am on the computer, so if I was to set it up like that I would be able to respond within 1 hour, so that is not a problem.

Jason