Hello everyone,
I have implemented the in-app purchase system in our mobile game, and we have a problem with android.
If the user needs to validate the transaction in his mobile bank application (and therefore pass the game on background), the billing system won’t be happy when he is back on the game, and doesn’t process the purchase.
My question: How do you have implemented this situation in your games?
Here is more info of the workflow:
-
I click on the item in the game store, and launch the billing process. The Google play interface pop up. I can select a credit card.
-
The Google play interface asks for the bank validation. In my case, a popup of my bank app shows on top of my screen, I press the notification, and I am now on the bank app.
-
After I accept the transaction, the bank app close, and I am back in the game with the Google play popup still open.
But I am no longer in the shop menu, I am on the splash screen of the game because he “reload” each time I put him in background and goes back to him.
And the Google play popup ask me again to validate the transaction, and I have a new bank notification. -
I can do the same operation again, and again …
More info:
- The project is on 4.27, I can’t upgrade
- I have implemented the billing system with the Android Play Billing Plugin
- Everything work on test with the Google play test user card, and work on production with paypal (you don’t have to exit the game with paypal)
- I can’t currently run the game attach to my computer to debug.
My guess is, because we have to put the game on background, the billing process is disconnected or interrupted.
Thanks for the lecture.