in-app-billing

In-app billing v3 test purchase not working across devices

坚强是说给别人听的谎言 提交于 2019-12-07 08:00:28
问题 I have setup three Managed items in my developer account for in-app purchases, and my app is currently in the Beta channel on the Play Store. I want to test the in-app purchase across two devices that use the same Google account -- but am finding that only the device that makes the purchase is correctly finding the purchase. The second device, using the same Google account, does not find the purchase. Should test account billing work across any device that uses the same Google account? I'm

Check android purchase status but return the purchase token was not found

别说谁变了你拦得住时间么 提交于 2019-12-07 07:56:31
问题 I refered google play android api to check the purchase and consumption status of an in-app item. For some orders, I can get right result,but some return the error as below: error: { errors: [ { domain: "global", reason: "purchaseTokenNotFound", message: "The purchase token was not found.", locationType: "parameter", location: "token" } ], code: 404, message: "The purchase token was not found." } Purchase token is provided by google, does it can be faked? I found if I cancel the google order,

“the item you were attempting to purchase could not be found” after following instructions

感情迁移 提交于 2019-12-07 07:10:19
问题 So I am following the instructions at http://developer.android.com/google/play/billing/billing_admin.html for testing my app for in-app billing. I have also already read In app Purchase issue in android How to resolve “The item you were attempting to purchase could not be found” How to resolve "The item you were attempting to purchase could not be found" My products are activated, I am using a testing account that is not registered under my name; my apk is in draft mode; my sku match the

AppLicensing fails - signature is empty string

Deadly 提交于 2019-12-07 06:15:48
问题 I've implemented App-Licensing for InApp-Billing and now I'm getting Error.NOT_LICENSED and I have no idea what's wrong. The version I'm working on has not been published to the play store yet. This is the code I use to start the licensing-process: private void checkLicense(int retries) { if (retries != 5) { String publicKey = "YOUR KEY"; final CdcLicenseCheckerCallback callback = new CdcLicenseCheckerCallback(); String deviceId = mPrefsHandler.getDeviceId(); deviceId = deviceId != null ?

Coupons for In-app Billing

坚强是说给别人听的谎言 提交于 2019-12-07 02:18:37
问题 We are about to release an application on the Android Market, with In-app Billing for subscription that unlocks certain features for a the subscription period. My boss now wants me to implement varying number of " free subscriptions" in the sense that: The "lucky user" downloads & installs the application from the Android Market like any other customer (always free to install, but premium features require payment via In-app Billing). The "lucky user" receives some key via email that allows

mservice NPE on Android 5.0 devices

早过忘川 提交于 2019-12-07 00:25:28
I'm having an issue similar to the question found here: Google In-App billing, IllegalArgumentException: Service Intent must be explicit, after upgrading to Android L Dev Preview . I have tried the solution in the suggested answer: https://stackoverflow.com/a/26318757/1489990 but I am getting an issue specifically on my nexus 9 with android 5.0.1 (and I'm assuming this also applies to all devices with android 5.0). The issue is that with this code: connection = new ServiceConnection() { @Override public void onServiceDisconnected(ComponentName name) { mservice = null; Log.d("PRICE","mservice

Android In-App Billing list of available products

北战南征 提交于 2019-12-07 00:18:36
问题 Is it somehow possible to get a list of all available products from the Play Store? What I want to do is to get all available items and then show them in a ListView. Whenever someone taps the ListView the right item is opened in Google Play Store. Is that possible? And if yes, how? 回答1: Third-paty apis and services are not reliable. There is no reliable and convenient way for production yet. You have to store it on your server in encrypted json data file for example, without any php/java

Test Subscription Feature of In-app Billing

时间秒杀一切 提交于 2019-12-06 17:26:21
问题 Is it possible to test subscription feature of In-app Billing? I tried using reserved product IDs for testing(android.test.purchased), But it gave error like 'item not found'.I am using In-app Billing Version 3.I could not find a conclusive answer from the web. Any help is appreciated. 回答1: As of February/March 2015, in-app subscriptions can also be tested on Android. Now, Google accounts with testing access (configured in the Settings Menu of the Developer Console) will receive the message

Extending In-App Purhcase content (Magazine) to monthly Auto-renewable Subscription type in iPhone

﹥>﹥吖頭↗ 提交于 2019-12-06 16:03:09
问题 Sorry for the millionth question about iTunes subscriptions & IAP, where we do have solutions to them, but this seems to be different than what I have gone through including UrbanAirShip. I have successfully implemented the IAP functionality very well in my application & it works nicely using Urban-Airship. These links really helped me to learn & implement the Pay feature in the app,even this could help the new learner in future: http://www.alexcurylo.com/blog/2010/02/26/in-app-purchasing/

IllegalStateException in IAB V3

[亡魂溺海] 提交于 2019-12-06 16:00:42
问题 I am trying to impliment android in app billing v3 and my application crashes with the following error Can't start async operation (consume) because another async operation(consume) is in progress Stack trace is given below 02-25 16:56:54.811: E/AndroidRuntime(6913): FATAL EXCEPTION: main 02-25 16:56:54.811: E/AndroidRuntime(6913): java.lang.IllegalStateException: Can't start async operation (consume) because another async operation(consume) is in progress. 02-25 16:56:54.811: E