Jump to content

Handling Downloadable Products


mattspriggs28

Recommended Posts

Hi,

 

I'm building an e-commerce site that is product downloads only.

 

I'm trying to get my head around the best way to approach this from a process point of view.

 

The site will be using PayPal.

 

This is how I would envisage it:

 

1. User adds product to basket. This is then stored in a database table and a random code is generated and stored along with it.

2. The user pays via PayPal

3. IPN then sends message back to the basket to say that the customer has paid, and sends an email with links to the documents, using the randomly generated codes as security and to monitor the status of the download. (i.e. whether it has been downloaded or not)

4. The customer then downloads the document and the status of the download is set to 'COMPLETE' to prevent them using the link again.

 

 

Is this the best way to apprach this or does anyone else have any other suggestions?

 

Thanks

Link to comment
Share on other sites

As far as I can tell that would be a fair way to go about it, but I would set a timeout on the link rather then just checking to see if it is downloaded. For example, if my browser downloads to a temp folder or somewhere that I cant find (or forget where to look) I might want to try again straight away, so personally I would set a 24 hour limit for the link to be active

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.