how to cancel an in-app test purchase on android?

前端 未结 9 523
眼角桃花
眼角桃花 2020-12-14 14:43

Until june 20th 2016 i was able to cancel test purchases done in my app. Doing multiple in-app purchases (not consumable) from the same test account made it easy to develop

9条回答
  •  刺人心
    刺人心 (楼主)
    2020-12-14 15:27

    For people using a way based on the new TrivialDriveKotlin, consumable products are consumed during the installation of the app in the method

    handleConsumablePurchasesAsync
    

    If your purchase is not consumable, you can make it consumable by adding the corresponding sku into CONSUMABLE_SKUS in the GameSku object. Exemple:

    val CONSUMABLE_SKUS = listOf(GAS, PREMIUM_CAR)
    

    Then uninstall your app from your device and install it again, and your non consumable purchase is available again. Fast and simply. Of course, don't forget to remove your

提交回复
热议问题