Jump to content

Create html link that expires after a Paypal Payment


IamJim

Recommended Posts

  Hello and looking for some help please..

 

I have already read this : http://www.phpfreaks.com/forums/index.php?topic=120619.0

 

  What I am after to do, is to after a successful Paypal payment from paypal, generate a link in a wordpress site (or external even) that will expire after 3 days to a video.

 

  I hope that makes sense please?

 

Thanks in advance,

 

Jim

Link to comment
Share on other sites

  Hello Batwimp and I thank you very much for the reply.

 

Correct, it will be... right now, we have a buy it now...  We just want a "rental" option also for them to be able to view it with a generated link during a 3 day period and not download it. 

 

  Does that make sense?

Link to comment
Share on other sites

You will need to be able to write their information to a database. Store the video information, a user ID, the date they paid, and any other relevant information in a database table and query that table for the date of purchase and compare to the current date. If they are within the date range, output the link via an echo command. But to make sure they don't cheat and copy the link and paste it later, you may need to store the information into a session variable to check against on the video delivery page.

 

I'm not sure of your level of PHP expertise, so I don't know how much of that you understand.

 

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.