google / play-unity-plugins

The Google Play Plugins for Unity provide C# APIs for accessing various Play services
Other
440 stars 113 forks source link

Google Play Billing Library - Invalid SKU details #97

Open GrandeKain opened 3 years ago

GrandeKain commented 3 years ago

I am using: com.google.play.billing (v3.1.2); Unity 2019.4.22f1; Unity IAP 2.2.7. On one of testing devices I can't buy anything. While trying storeController.InitiatePurchase(product), I get Google Play's modal: "Something went wrong on our end. Please try again." and in logs: "Google Play Store: Purchase failed with error code 'DeveloperError' and debug message: 'Invalid SKU details.'. Everything worked good with standart Unity IAP 2.2.7. Tried to clean caches of game, Google Play, services, tried to reinstall app, changed accounts, but nothing helps. After compiling app with standart Unity IAP 2.2.7 everything is ok. Google Play version on testing device: 17.3.16-all. Please help to solve this problem.

liiyau commented 3 years ago

Excuse me, is the problem fixed?

We also encountered the same problem. We tested some online games from other developers (recently updated) and encountered the same problem. We tried to update the version to 4.0.0 and the problem still exists. [Implementation'com.android.billingclient:billing:4.0.0']

The problem is not that the purchase is not available on all devices.