Sweet script, I will try it out soon
Can we make users register on our own (MySQL) database? Also, it is possible to make it completely white label (basic users won't be able to see that it is related to Moneypot.com)? As we share profits, I think they should allow that
Basically, it's an affiliate program, right?
> Can we make users register on our own (MySQL) database?
The MoneyPot login integration is pretty much standard OAuth: you redirect the user to MoneyPot, and MoneyPot redirects the user back to you with an `access_token`. You can then query MoneyPot's API (
https://www.moneypot.com/api-docs#v1-public-get-token-info) to get that user's underlying `auth_id` (you can think of it as a unique user ID) and save it in your database for that user so you that can link users to their MoneyPot account in your system.
So, yes, you can have your own authentication/user system and save the aforementioned MoneyPot `auth_id` in your users table. Now a user should be able to "Login with MoneyPot" or enter their username/password on your site to log into their account.
> Also, it is possible to make it completely white label (basic users won't be able to see that it is related to Moneypot.com)?
Yes, you can do this and hide the fact that your site uses MoneyPot all together, but it would require a lot of custom programming.
Basically, you would have to run the casino on your own server (unlike Untitled-Dice which runs on the client aka browser). Users deposit Bitcoin into your own system, and you re-deposit it into your own MoneyPot account. When a user bets on your casino, you basically make the bet through your own MoneyPot account and then use the outcome response to update the user's balance in your own system.
Obviously, any features you don't use MoneyPot for are features you're going to build yourself, but the above scheme illustrates how you can use MoneyPot solely for its bankroll and its betting API if that's what you want to do.
> Basically, it's an affiliate program, right?
Yeah, you can think of the MoneyPot bet API as a system that simply rewards you for sending it bets that its investors are willing to take.