Glenskie Posted January 28, 2014 Share Posted January 28, 2014 Is there some way to make it to where a user is only allowed to the site if they have donated to the site ? otherwise they get a page where it askes to donate to the site and then they can access the content in the back ? I would like to do this in PHP Quote Link to comment https://forums.phpfreaks.com/topic/285748-is-there-a-way-to-only-allow-access-to-site-if-user-donated-to-you/ Share on other sites More sharing options...
ginerjm Posted January 28, 2014 Share Posted January 28, 2014 Of course you can set something up. Make the site secure so that they have to login to use it. Only give them login credentials when they make a donation and you receive it. Write the code and if you have a problem THEN post it here for help. Quote Link to comment https://forums.phpfreaks.com/topic/285748-is-there-a-way-to-only-allow-access-to-site-if-user-donated-to-you/#findComment-1466870 Share on other sites More sharing options...
DenRomano Posted January 28, 2014 Share Posted January 28, 2014 The suggestion that @ginerjm has is a much better solution then what I about to suggest t a VERY simple method would be this. If you plan to use paypal to collect the donation then... Paypal has a listener that it calls after any payment (or donation) to your website is made. Check out https://developer.paypal.com/docs/classic/ipn/ht_ipn/ And to this php file a little code that will add the the donors email address to a dataase. Now you have a database of all your donors and you can ask them to enter their email address to login (no password needed) Quote Link to comment https://forums.phpfreaks.com/topic/285748-is-there-a-way-to-only-allow-access-to-site-if-user-donated-to-you/#findComment-1466878 Share on other sites More sharing options...
.josh Posted January 28, 2014 Share Posted January 28, 2014 Not to be pedantic, but the point of a donation is that it's not compulsory. If you require someone to give you money in exchange for something (be it product, service, access or anything else) then it's no longer a donation, but a fee. I only mention this because that's how the tax people are going to look at it, and they will be expecting a cut, or else proof of exemption. Quote Link to comment https://forums.phpfreaks.com/topic/285748-is-there-a-way-to-only-allow-access-to-site-if-user-donated-to-you/#findComment-1466881 Share on other sites More sharing options...
l0gic Posted January 29, 2014 Share Posted January 29, 2014 Not to be pedantic, but the point of a donation is that it's not compulsory. If you require someone to give you money in exchange for something (be it product, service, access or anything else) then it's no longer a donation, but a fee. I only mention this because that's how the tax people are going to look at it, and they will be expecting a cut, or else proof of exemption. I would agree to with this, though maybe it's simply allowing donating users/members to see a "Thank you for donating." or "Your donation history." type of page. The link posted by DenRomano should make for a good starting point. Quote Link to comment https://forums.phpfreaks.com/topic/285748-is-there-a-way-to-only-allow-access-to-site-if-user-donated-to-you/#findComment-1466897 Share on other sites More sharing options...
.josh Posted January 29, 2014 Share Posted January 29, 2014 ..yeaahhhhhh.. except that totally doesn't sound like what he meant. But maybe he's not in America and maybe whatever country he's in doesn't have laws like that. Quote Link to comment https://forums.phpfreaks.com/topic/285748-is-there-a-way-to-only-allow-access-to-site-if-user-donated-to-you/#findComment-1466903 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.