in-app-billing

Trying to cancel an Android test subscription gives me a 500 response code

喜夏-厌秋 提交于 2019-12-10 10:39:51
问题 I have an Android app with in-app subscriptions. While testing, I used a google account to "buy" a test subscription - the ones that last for 24 hours and don't incur in actual billing. It worked fine a few times, but my last "purchase" is stuck and I can't cancel it. When I try cancelling it via Google Play store, either the app or the website, I get these extremely unhelpful error messages: "An unexpected error occurred. Please try again later". When I try cancelling it via Google Play

“You already own this item” but getPurchases is empty [duplicate]

为君一笑 提交于 2019-12-10 04:29:04
问题 This question already has answers here : Android consumable: “already own that item” but inventory.hasPurchase() is false (2 answers) Closed 5 years ago . I purchased a subscription (not a Managed Product or Unmanaged Product ) yesterday to test, I refunded myself and then cancelled the subscription. After the refunding and cancelling, when I call: m_billingService.getPurchases(3, m_context.getPackageName(), ITEM_TYPE_SUBS, null) It would return my purchase with a purchase state of 0 (valid

Android in-app billing Error: This item could no be purchased. (Error code: IAB-DPTL)

故事扮演 提交于 2019-12-10 04:23:04
问题 I'm just beginning to use the android in-app billing system. I tested the Dungeons application sample without any problems. So I'm trying to integrate in-app in my own application, but when I use declared productId or static test id, I'm getting the same error: This item could not be purchased. (Error code: IAB-DPTL) This application is already on the market. I uploaded a signed version that I also pushed on the phone (so it's the same version on both sides). I added the email wich is used on

Android: get Google Play account associated with in-app billing

核能气质少年 提交于 2019-12-10 02:56:16
问题 How can I get the email/ID of the Google Play account associated with an app? I need this to show the user which account is taken into consideration for in-app billing. As far as I understood, Google in-app billing uses the account which downloaded the app, but I need to find a way to display this to the user, in case he has more than one account configured. This would prevent users to complain not having their purchases recognized, when they have another account associated with the app. 回答1:

Android : inApp purchase receipt validation (Part 2)

◇◆丶佛笑我妖孽 提交于 2019-12-10 00:07:15
问题 I am implement inApp purchase in my application and add product as " Manage Product ". After purchase I want to do receipt validation .For that I configure in Developer console like The Steps are Developer Console -> Settings -> API access Create Server account Google Developer console -> Add a credential in Service account and put it as JSON After adding I got a file from developer console it contains { "type": "service_account", "project_id": "api-xxxxx-xxx", "private_key_id":

Difference between IABHelper and IInAppBillingService in InAPPBilling

£可爱£侵袭症+ 提交于 2019-12-09 12:14:29
问题 In the google document for InAppBilling V3 they used IInAppBillingService to make purchases . check the below URL. http://developer.android.com/google/play/billing/billing_integrate.html Bundle buyIntentBundle = mService.getBuyIntent(3, getPackageName(), sku, "inapp", "bGoa+V7g/yqDXvKRqq+JTFn4uQZbPiQJo4pf9RzJ"); But in the Trivial Example coming along with SDK, they used IABHelper to make purchases. I am having confusion like whether IABHelper is V2 and IInAppBillingService is V3. because u

Do test accounts require real credit card to purchase via In-app Billing?

老子叫甜甜 提交于 2019-12-09 06:00:57
问题 Inching slowly (but methodically) towards my first implementation of In-app Billing, I reached the point in which I can actually run the market billing sample application: The app is signed and uploaded to the AM, the "product list" has been created per the instructions and a test account has been set in both Google and the phone. But when I proceed (successfully) with a purchase, despite selecting the test account on the AM, I am prompted to confirm the purchase with my real gmail account,

How to validate Google receipt validation locally with old Order ID format?

亡梦爱人 提交于 2019-12-08 17:51:55
问题 I want to validate Google receipt validation but since I don't have client key, I cannot use Google API : https://developers.google.com/android-publisher/archive/v1_1/inapppurchases/get So I do local validation by using public key , signedData and signature . Everything works fine since I have new orderId with format: GPA.XXXX-XXXX-XXXX-XXXXX However this code doesn't work for old pattern orderId that looks like: 4582257046313445026.7467948335710411 I get Exception: Signature exception java

Android in-app billing error with android.test.purchased item

▼魔方 西西 提交于 2019-12-08 17:09:34
问题 I'm trying to test my in app purchase flow with the fake item android.test.purchased, from android documentation. I'm not able to test this flow, just when I launch it, I get this error: "The item you requested is not available for purchase". I have the permission in my manifest and I don't understand why I get this error with the fake item android.test.purchased. 回答1: Here is the list of requirements for the Google IAB testing. Prerequisites: AndroidManifest must include "com.android.vending

Android: In app billing, using library or not? [closed]

不打扰是莪最后的温柔 提交于 2019-12-08 16:39:20
问题 As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. Closed 7 years ago . I have just created the Android in-app billing example from the docs, and its all working well. When it comes to implementing the