google play iap 常见问题
1.测试阶段query时获取的sku对象为空
解:测试阶段只能使用如下sku
// private static final String SKU_TEST = "android.test.canceled"; // private static final String SKU_TEST = "android.test.purchased"; // private static final String SKU_TEST = "android.test.item_unavailable"; // private static final String SKU_TEST = "android.test.refunded";
2.Error - Authentication is required. You need to sign into your Google Account
解:未配置sku或者sku非上面一条中所配置的sku
3.Error refreshing inventory (querying owned items). (response: -1003:Purchase signature verification failed)
测试Query Inventory时,如果使用的sku是android.test.xxx,那么会出现这个问题,测试阶段有个解决办法
http://stackoverflow.com/questions/14600664/android-in-app-purchase-signature-verification-failed