kuligs2 backend server? i dont know how things for payment works, but i imagine you send API requests to some payment server and just validate the transaction
I don't know about mobile apps, but from my experience with web dev the basics are:
- register with the payment service provider
- get the public and private keys to sign all requests and validate all responses with
- send an API request to begin the payment, get a URL in return and redirect the user to it
- check status of payment, if OK then do whatever the user paid for
GDScript might be able to do API calls, but I don't know if it can do or if I'd trust it with cryptography... Correct me if I'm wrong.
Edit: Maybe I'm missing something obvious, but if you directly call the store's API, without your own backend in the middle, then how do you store the private key? With a website, I'd put it on the server where the user can't reach it. If it's all inside the app, someone could extract it and use it to sign their own requests to, for example, get info about transactions that aren't their own.
So you would need to either integrate with the Store's payment system and have the purchase happen on their side, like how mobile apps do it, or have your own backend (assuming the TOS allows it). No?
Chukwubuikem Moreover, it seems windows store is against using an external service to implement in app purchase for any app published on their store.
Makes sense, so is the Play Store and App Store. They want a cut of the money. I'm pretty sure if you tried to get around it (e.g. if you redirected the user to Paypal) Microsoft would not like that, but I'm not familiar with the Windows store or how strict they are compared to Google and Apple.
ArDanZ11 I think that is possible. You would need to have a link to the HTML page and that should do it.
Again, I would definitely read through the Windows Store's terms of services before doing that.
Chukwubuikem I just wonder why godot unlike other game engines doesn't natively support in app purchase for Windows games the same way it does for mobile games.
Not enough demand, I guess. I don't know anyone who uses the Windows Store, I sure haven't touched it in my life.