online payment system for username/pass [closed]
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 1 year ago.
Improve this questionWhere should I start looking for a online payment system 开发者_C百科where once a user pays their account is given full access to the game? Basically exactly like the payment system in minecraft.net . I post in r/programming, because I don't know if I should be using sql database or what. I don't even have the username/password system set up.
It's not that difficult, in theory. I'll leave the implementation up to you, though.
This assumes you have a A. website, B. SQL database, and C. PayPal account:
- User registers on your website, which creates a record in your database
- User clicks "buy" link, is sent to PayPal, which contains a reference to their account information on your site.
- PayPal returns payment confirmation using IPN (Instant Payment Notification). Update the user's database row with the PayPal transaction ID you received to confirm they've paid for the game.
And now you can check that they've paid when they log in to the game client.
精彩评论