Android In-app purchase: how to consume?

前端 未结 2 1357
一生所求
一生所求 2021-01-05 16:41

I\'ve implemented Google In-App Billing V3 in my app and i did my first test purchase. Now, as seen that i want it consumable, but if i click the \"Purchase\" button again i

2条回答
  •  醉酒成梦
    2021-01-05 17:09

    Ok, i solved. Instead of using:

    int response = mService.consumePurchase(3, getPackageName(), token); 
    

    follow this thread:

    mService.consumePurchase(3, packageName, purchaseToken) always returns RESULT_DEVELOPER_ERROR = 5 - invalid arguments provided to the API

提交回复
热议问题