Re-Test IAP (Unity IAP - Google Play)

I am sure this has been discussed, but currently my research has not led me to clear definitive instructions on testing your IAP multiple times over.

I’ll discuss what I am seeing during testing, and then breakdown my thoughts. Hopefully the monetization guru’s will point out my error, and provide the correct steps.

Goal: Repeat the billing process flow of an IAP, to ensure that game logic and bugs have been resolved, so the game behaves accordingly, after a successful purchase.

My Purpose: For me, and my games, right now I only provide 1 IAP (Non-Consumable - Remove Ads)

Current Status: I have tested the IAP, and successfully completed the billing process, this assures me the IAP code and calls are working as expected.

Current Problem: I have not been able to retest the IAP, although I have refunded the test order on my developer account in Order Management.

Note to Current Problem: Some things to consider, I understand a Non-Consumable is treated as a 1 time purchase, (which technically means you cannot purchase it again), so this could be having an affect on why my IAP shows purchased when I build and run the app again on my device.

Question To “Current Problem”: Does the logged in, Google Play account and/or Google Play Games account have any affect on the account that did the test purchase?

Question To Above: If “yes”, What are the proper steps, in order to log in to a different test account. What I am seeing is, although I am logging in to Google Play and Google Play Games with a new test account, when I start my app and Game Services logs in, it is using the default account.

My Assumption to above: My assumption is that I can change the account in Google Play to a different licensed test account, and the app would sign in with the current account logged in to Google Play, again, currently this is not happening, it continues to log in to my default account. Also, again, I do not know if the account that is logging in to Google Play Game Services in my hap has anything to do with the IAP test purchase or not.

Question To “Current Problem”: I would also like to know, after you “refund” your test IAP, is there a given amount of time you have to wait prior to re-testing?

My Assumption to above: This could explain why I am seeing the IAP in my game, still initializing as purchased already, even though I have already waited 24+ hours from the last refund. (I also know we are in difficult times right now and even though this shows refunded on my dev account, it could actually be taking longer for this to completely process).

I hope that I have provided enough information, this entire IAP process for me, at least on the Google Play developers side, has been fuzzy, and only has led me to “over-think” and has caused delays in my game release, simply because I am not 100% satisfied my game will respond accordingly upon a successful purchase.

This process imo, should be documented in a detailed step by step process, providing you not only, in order instructions, but what to look for, or expect during this process.

Thank you to everyone’s comments and contributions to this post.

-Larry

Previously, users would no longer own the product after a non-consumable refund. But things seem to have changed recently, and we need to investigate whether Google Play has changed it. Currently, if you are testing non-consumable purchases, I suggest you use a different account for testing.

I always create multiple test accounts and use an Android device that allows me to switch user Profiles (not all do). I also create multiple subscription products and non-consumable products for retesting, differing in only their productID.

@ , I could see where, as long as your final game product only purchases 1 of the productID’s in the end, then there is no harm in setting up multiple non-consumables. I personally am kinda a neat freak on my google play developers account, but if this works, even if it means leaving test iap’s on the account in forever limbo, i’m ok with that so long as I can assure my game behavior works, after a successful purchase.

Thanks to both, Sam & Jeff for your comments.

-Larry

Then you could create multiple test accounts.

I wanted to follow up on this, as I have discovered some new results.

Here is a breakdown of my steps:

  • I am only using 1 test account to perform multiple IAP test purchases
  • Once I make the test purchase on my device, I go to my dev account (Order Management), and refund that purchase.
  • Once the status from Order Management on my dev account shows “Refunded”, I wait some time (15-30 minutes), I uninstall the game from my device, and build and run again form Unity after I have made my fixes
  • When I am in the game, I verify that the IAP status is still purchased (which it should be)
  • I close the game, go in to my devices settings, and application manager, and click on the game and delete the Data & Cache
  • I open the game again, and now I can retest the purchase (if your IAP shows still purchased, wait some more time and try again)

So far this has been working well, my last game, I made 8 test IAP purchase of my 1 IAP (Remove Ads). This was so valuable in terms of debugging and fixing any bugs related to how the game should respond when the IAP is made.

I hope this helps anyone who has struggled with this. Also, again thanks to all for your comments and suggestions.

-Larry

Seems easier to use multiple test accounts and/or products, no need for a refund or waiting. Granted some Android devices don’t let you easily switch accounts. My Samsung phone doesn’t, but my Samsung Tablet does. You can always delete your test IAP products afterwards too if you use multiple products.