![]() |
[RESOLVED] Need help with implementing a complicated payment system. - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: [RESOLVED] Need help with implementing a complicated payment system. (/showthread.php?tid=31460) |
[RESOLVED] Need help with implementing a complicated payment system. - El Forum - 06-20-2010 [eluser]Xarren[/eluser] Hey, I have quite a complex problem, not specifically related to programming, more problem solving - So I'm not looking for a word to word programming how to, rather an idea on how to solve this: I have a changing amount of girls, each one with public and private photos. VIP members can view the private photos for all the girls, and everyone can view the public ones - Thats simple. What I want to implement is that after a small one time payment a non-VIP member can view a single girls private images for lets say 24 hours. One way I thought to go about this is cookies, making a cookie and setting it to expire in 24 hours, however many people going on these types of websites have private browsing on, so that would not be reliable. Database wise, I was struggling to imagine a structure for that. A header for each girl would most likely not work - girls come and go, it would have to be constantly updated. Another database solution I thought of was a single field with a comma seperated list of all the girls that person has a permission to view private pics of, and another field with the time the permission was given, however that would mean that if the person books one girl on the 1st of march morning, another one that evening, then both the girls would last 24 hours from the second booking. Well unless the times were also a comma seperated list.. Thats all I could think of, and all these seem a bit overcomplicated - there must be an easy way to do this, any ideas would be appriciated ![]() [RESOLVED] Need help with implementing a complicated payment system. - El Forum - 06-20-2010 [eluser]flaky[/eluser] Quote:I have a changing amount of girls, each one with public and private photos. VIP members can view the private photos for all the girls, and everyone can view the public ones - Thats simple. What I want to implement is that after a small one time payment a non-VIP member can view a single girls private images for lets say 24 hours.generate a key for the user that makes the payment, every time the user wants to access a private section/girl ask for the key Quote:Database wise, I was struggling to imagine a structure for that. A header for each girl would most likely not work - girls come and go, it would have to be constantly updated. Another database solution I thought of was a single field with a comma seperated list of all the girls that person has a permission to view private pics of, and another field with the time the permission was given, however that would mean that if the person books one girl on the 1st of march morning, another one that evening, then both the girls would last 24 hours from the second booking. Well unless the times were also a comma seperated list.. a table similar to this perhaps Code: user_id, [RESOLVED] Need help with implementing a complicated payment system. - El Forum - 06-20-2010 [eluser]Xarren[/eluser] Ahh the second bit is a good idea, didn't think of that.. I feel a bit silly now ![]() |