[Zope] Download After Purchase

Philippe Jadin philippe@123piano.com
Sun, 11 Nov 2001 15:43:45 +0100


Ben Ocean wrote:
> 
> Hi;
> I need to enable visitors to d'l s/w after purchasing. Of course, I want
> the d'l page protected, so I presume I'll have to generate a password, etc.
> Has anyone done this and have some code they could share to get me started?
> TIA,
> BenO

You should use a more sophisticated user folder (backed by an sql db for
example), and insert the proper user when the payement is completed. You
give him the right role (for example : basic buyer / vip buyer...), then
you give access to the protected area (the are is protected by allowing
only particular roles to see/download the content).

Your user can use the login/password you sent him and you inserted in
the user db.

hth

Philipppe