Hello!)
After implementing iap v3 in our game some purchases return “failed” instantly after attempt to call purchase dialog, no dialog appears, just click and “failed” in the log at same moment. Printing error message not works, line with print ignored by engine. Any advices? Thank you!)
What items?
How do you have them setup in the Google Play portal?
Are there any other messages in the value returned from Google?
Did you look at your device’s console log to see if Google Play’s activity spewed any errors?
Rob
Items are non-consumable.
They are fully configured in Google Play and worked before update to v3 IAP.
I forgot about system log) Thank you!
System logs:
E/IabHelper(27565): In-app billing error: Unable to buy item, Error response: 7:Item Already Owned
It’s really strange, purchase is non-consumable.
Might be due to this new feature of Google IAP V3:
- store.consumePurchase() — This will consume purchases and make the items available for purchase again. In Google IAP v3, once a product is purchased, it is considered “owned” and it cannot be purchased again. Thus, you must send a consumption request to revert “owned” products to “unowned” products so they become available for purchase again. Consuming products also discards their previous purchase data.
Alex is spot on. Google changed the rules with V3. You have to consume a consumable before you can buy it again.
Rob
Alex@PaNc, Rob Miracle, Thanks a lot!)
What items?
How do you have them setup in the Google Play portal?
Are there any other messages in the value returned from Google?
Did you look at your device’s console log to see if Google Play’s activity spewed any errors?
Rob
Items are non-consumable.
They are fully configured in Google Play and worked before update to v3 IAP.
I forgot about system log) Thank you!
System logs:
E/IabHelper(27565): In-app billing error: Unable to buy item, Error response: 7:Item Already Owned
It’s really strange, purchase is non-consumable.
Might be due to this new feature of Google IAP V3:
- store.consumePurchase() — This will consume purchases and make the items available for purchase again. In Google IAP v3, once a product is purchased, it is considered “owned” and it cannot be purchased again. Thus, you must send a consumption request to revert “owned” products to “unowned” products so they become available for purchase again. Consuming products also discards their previous purchase data.
Alex is spot on. Google changed the rules with V3. You have to consume a consumable before you can buy it again.
Rob
Alex@PaNc, Rob Miracle, Thanks a lot!)