IamJim Posted April 2, 2012 Share Posted April 2, 2012 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 https://forums.phpfreaks.com/topic/260201-create-html-link-that-expires-after-a-paypal-payment/ Share on other sites More sharing options...
batwimp Posted April 2, 2012 Share Posted April 2, 2012 is the video a product? So, the customers pays via Paypal, then they have access to a video for three days? Link to comment https://forums.phpfreaks.com/topic/260201-create-html-link-that-expires-after-a-paypal-payment/#findComment-1333624 Share on other sites More sharing options...
IamJim Posted April 2, 2012 Author Share Posted April 2, 2012 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 https://forums.phpfreaks.com/topic/260201-create-html-link-that-expires-after-a-paypal-payment/#findComment-1333627 Share on other sites More sharing options...
batwimp Posted April 2, 2012 Share Posted April 2, 2012 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 https://forums.phpfreaks.com/topic/260201-create-html-link-that-expires-after-a-paypal-payment/#findComment-1333633 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.