liamloveslearning Posted June 8, 2008 Share Posted June 8, 2008 Hey everyone I've just been browsing website scripts such as freelance and scriptlance etc; and I'm wondering instead of people depositing/withdrawing/transferring funds on websites such as those; is it possible to implement a credit system? Say a user needs to post a topic, he can purchase credits (Say 10 for £3) in which he is then given the opportunity to post 10 different topics and the money would go into the websites account, this way its less liable to be caught up in managing users money. My question is how would this be implemented? would my php calculate how much it woulc cost to purcahse X amount of credits and then direct the users to a paypal page? And would this then updat my Credits field in my DB to however many they purcahsed?; then when a user posts a topic it -1 from my credit field? Sorry if I've shrouded this question in jargon I'm just curious, thanks Quote Link to comment Share on other sites More sharing options...
keeB Posted June 8, 2008 Share Posted June 8, 2008 Sounds like you have a rough idea. Your question isn't really focused. Quote Link to comment Share on other sites More sharing options...
liamloveslearning Posted June 8, 2008 Author Share Posted June 8, 2008 Does anybody have any examples of websites using systems such as this? Im just trying to work it out in my head thats all; thanks again Quote Link to comment Share on other sites More sharing options...
rarebit Posted June 8, 2008 Share Posted June 8, 2008 When you send a user to paypal and they pay, paypal will contact a page of yours where you check the details and communicate with a builtin address and verify the transaction. At this point you credit your db with a data value. The user then comes back to your site or not. Either way you've credited your system. Then whenever the user does something which costs, you check and deduct from the data... oh, this requires paypal IPN Quote Link to comment Share on other sites More sharing options...
liamloveslearning Posted June 8, 2008 Author Share Posted June 8, 2008 ahh okay, so this is a difficult script to implement for people who dont have major experience in php and myQL? Can I just ask what paypal IPN is too? Quote Link to comment Share on other sites More sharing options...
rarebit Posted June 8, 2008 Share Posted June 8, 2008 IPN = Instant Payment Notification https://www.paypal.com/ipn Quote Link to comment Share on other sites More sharing options...
liamloveslearning Posted June 8, 2008 Author Share Posted June 8, 2008 thanks Quote Link to comment 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.