-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Purchase not working for God of Blades #21
Comments
Actively buying games will never work on my server because mine only has static (unchanging) responses to API requests. Responses to purchase requests needs to contain some data item of the request, and this is not possible statically. Instead of needing an active purchase process, the game should start up, check if it has been bought on the server and see that is has been. Some games have a "sync purchases" button. Maybe God of Blades has one, too. |
Wouldn't this not work for the vast majority of games with in-app
purchases? Many games do not have the ability purchase the full version
from the store.
Or am I misunderstanding something?
|
"check if it has been bought" does also work for in-app purchases. The game requests a list of "receipts" from the server and then looks which features have been bought and unlocks them. |
So, to help me understand, the app needs to request "has it been purchased"
from your server, not making the purchase?
And at some point, the game should send that request?
|
Correct. I looked at the source of the game, and unlike others it only fetches the receipts when it gets a "android account changed" notification:
I currently do not know how to trigger this event. |
I built a dynamic purchase handler on my server, but the game does still not unlock - but also gives no more debug messages. |
I've done all I could, but I don't know why it does not unlock. Closing this for now. |
Found it! The purchase response must be encrypted twice. |
In game purchase prompt indicates purchase was made, but doesn't actually complete the purchase in games. On cweiske's server.
The text was updated successfully, but these errors were encountered: