I have a problem and I would reeeeeeally appreciate help with this.
What I want to do is to reward the players of my app when they reach a certain score with real money.
I don't know how to accomplish this. My initial thought was that when they reach the score sufficient to earn the money they would press the "checkout" button which would take them to a new layout that will have them fill in the information required for me to process their payout. When they have filled out this information they will press send and the information will be sent to my email. (my email adress will not be visible to them to avoid fraud)
So that was my plan, but this seems very hard to accomplish at least for me. So I wonder, does anybody know how to do this? OR does anyone know an alternative way of doing this?
Your best bet is to get a server. Use AJAX to communicate all the info you need to a file on the server (probably php) where you can send yourself that mail. w3schools.com/php/func_mail_mail.asp
But please be very very careful with this, get yourself someone who really knows what he is doing, otherwise you´ll open yourself up to all kinds of cheating/frauds/hacks/injection attacks. Not to mention GDPR and data security laws.
Yes, somebody actually already advised me of doing it with AJAX like you are saying.
Part of the problem for me is that I don't really know anything about it and it seems hard to get a hold of someone that really knows how to do this.
Thanks for your reply!
Real Money rewards are dangerous in terms for games, especially for indie games. The best way you can protect yourself is if you have a company with lots of manpower and resources. It can even be classified as a gambling game if money is in a circulation and there might be some special laws for that, which you might want to consult a lawyer with.
It might be looking as if I'm discouraging you but I am just advising you to be careful and get some professionals if you actually want to go along with that. Not just with the technicalities of the game but also with the protection of other stuffs like the security of the runtime, server, your local law and international law.
Develop games in your browser. Powerful, performant & highly capable.
Yes, thank you.
I have actually looked into it and my particular game will not be classified as a gambling game. So I am not that worried or concerned about the law aspect.
My biggest issue is the programming. I am currently trying to learn swift in xcode as it seems easier to arrange the solutions I am looking for there. But if anyone can help me out accomplishing it in construct I would appreciate it also.