John McKenzie
2011-02-01 21:19:55 UTC
Hello.
I am helping someone build a website that sells one product, a
downloadable book. It would be nice to sell the hard copy version as
well, but the digital copy is what we are mostly concerned about. As I
have done some scripting in my life, but not allot, and none of it was
ecommerce related I am seeking help. With the appearent demise of
comp.infosystems.www.cgi I am hoping someone here can help and does not
mind the topic being posted here.
We are setting up an account with a payment processor. You click a link,
go to their hosted payment form and fill out the payment details. If
accepted you are sent to a web page I chose, and if decline you are sent
to a different page I can also choose. The decline one will be a static
page saying you are declined and providing a link to try again. The idea
for the accepted page would be to send the user to a CGI script I host.
At this point I would like to know what to do conceptually. I will take
my meagre scripting skills and learn more in order to write this once I
know what to do.
Looking for guidance, suggestions and to learn how these things are
generally done.
So the user gets refer by the hosted payment page to my script. It needs
to give them the file they paid for without giving the info to get the
file for free in the future. Send them a time limited URL would probably
be the best way to go. If so, how do those get made?
Here is a guess at one way to do it.
Script creates random number, say 12345.
Script creates a file called 12345 which is a symlink to the real file
to download.
Script creates a web page whose content is a hyperlink to the symlink.
Script emails URL to web page to customer.
Cron job once a week deletes any pages that were created by the script
and are more than say 5 - 7 days old.
Is this a normal, good way to do it? Is that how these things would
normally work?
Thanks, everyone.
I am helping someone build a website that sells one product, a
downloadable book. It would be nice to sell the hard copy version as
well, but the digital copy is what we are mostly concerned about. As I
have done some scripting in my life, but not allot, and none of it was
ecommerce related I am seeking help. With the appearent demise of
comp.infosystems.www.cgi I am hoping someone here can help and does not
mind the topic being posted here.
We are setting up an account with a payment processor. You click a link,
go to their hosted payment form and fill out the payment details. If
accepted you are sent to a web page I chose, and if decline you are sent
to a different page I can also choose. The decline one will be a static
page saying you are declined and providing a link to try again. The idea
for the accepted page would be to send the user to a CGI script I host.
At this point I would like to know what to do conceptually. I will take
my meagre scripting skills and learn more in order to write this once I
know what to do.
Looking for guidance, suggestions and to learn how these things are
generally done.
So the user gets refer by the hosted payment page to my script. It needs
to give them the file they paid for without giving the info to get the
file for free in the future. Send them a time limited URL would probably
be the best way to go. If so, how do those get made?
Here is a guess at one way to do it.
Script creates random number, say 12345.
Script creates a file called 12345 which is a symlink to the real file
to download.
Script creates a web page whose content is a hyperlink to the symlink.
Script emails URL to web page to customer.
Cron job once a week deletes any pages that were created by the script
and are more than say 5 - 7 days old.
Is this a normal, good way to do it? Is that how these things would
normally work?
Thanks, everyone.