android-billing

get purchased item detail at start of app with IabHelper android

青春壹個敷衍的年華 提交于 2020-01-23 01:41:06
问题 I have implemented In-App in my application in that there is list of images with grid when user select image if user has already purchased that item it should never called again otherwise it should called method of mHelper.launchPurchaseFlow(this, SKU_PREMIUM, RC_REQUEST, mPurchaseFinishedListener, ""); i have successfully integrate in-app with my app and also item is being purchased but i want to know at start up if that item is purchased or not if not purchased than above code should be

Android in-app billing getting dialog like “item not found”

旧城冷巷雨未停 提交于 2020-01-15 03:14:06
问题 I am working on in-app billing. I have done all the steps. When I run my signed apk, and after clicking on buy button I am getting this dialog "item not found". Also after clicking on ok another dialog will be open like "the item you requested is not available for purchase " Whats the problem with my app ? I am also using another account for test. 回答1: Did add the following line to your Proguard configuration file: -keep class com.android.vending.billing.** 回答2: Add inapp products in your

Verifying in-app-purchases

霸气de小男生 提交于 2020-01-14 07:45:24
问题 The sample app that the Google Developers guide refers to has a method called verifyValidSignature() that looks like this in the BillingManager class: /** * Verifies that the purchase was signed correctly for this developer's public key. * * Note: It's strongly recommended to perform such check on your backend since hackers can * replace this method with "constant true" if they decompile/rebuild your app. */ private boolean verifyValidSignature(String signedData, String signature) { try {

In-app billing, can't make RESULT_DEVELOPER_ERROR go away

泪湿孤枕 提交于 2020-01-11 10:06:04
问题 I'm trying to get in-app billing working on android, but keep getting the following logcat output upon trying to initialize transactions: // from logcat, BillingService: Billing service connected CheckBillingSupported CheckBillingSupported response code: RESULT_OK RestoreTransactions restoreTransactions received RESULT_OK request id: 12345 request id: -1 handleCommand() action: [com.android.vending.billing.RESPONSE_CODE]. RestoreTransactions: RESULT_DEVELOPER_ERROR My setup: I have the

In-app billing, can't make RESULT_DEVELOPER_ERROR go away

杀马特。学长 韩版系。学妹 提交于 2020-01-11 10:05:32
问题 I'm trying to get in-app billing working on android, but keep getting the following logcat output upon trying to initialize transactions: // from logcat, BillingService: Billing service connected CheckBillingSupported CheckBillingSupported response code: RESULT_OK RestoreTransactions restoreTransactions received RESULT_OK request id: 12345 request id: -1 handleCommand() action: [com.android.vending.billing.RESPONSE_CODE]. RestoreTransactions: RESULT_DEVELOPER_ERROR My setup: I have the

Is it possible to replace an existing Android free app with its paid version

旧时模样 提交于 2020-01-03 06:31:28
问题 Hi guys i have made an app free version and paid version. I was wondering that, Is there any way i can replace the free version with the paid version during istallation. * Consider this Scenario * The user has already installed the free version. Now he wants some added functionality which is only available in paid version. So he is redirected from app to google play where he buys and installs the paid version. Now he has the free and paid version but we know that he will now use the paid

Android IABv3 getSkuDetails not returning Sku Details

旧巷老猫 提交于 2020-01-01 08:59:49
问题 I am currently battling with Android Iab v3. I have previously been using the IabHelper class from Google to display available products with success. However, today it is no longer returning me anything. The content of the querySku field passed to the getSkuDetails function of the IInAppBillingService in the IabHelper class is: Bundle[{ITEM_ID_LIST=[com.app.android.credits.10, com.app.android.credits.25, com.app.android.credits.50]}] What I get back in the bundle it return is: Bundle[{DETAILS

In App billing not working after update - Google Store

佐手、 提交于 2019-12-28 05:33:12
问题 I have implemented In-App billing in my app - and very recently google has updated it,previously i was testing the in-app billing with "android.test.purchased" and it was working fine (Buy full Version and Restore full version). Now i took the changed classes from here https://code.google.com/p/marketbilling/source/detail?r=7bc191a004483a1034b758e1df0bda062088d840 After that i am not able to test the app it gives the following error in the Logcat "IabHelper: In-app billing error: Purchase

android billing inApp/subscription Unable to find explicit activity ProxyBillingActivity

别等时光非礼了梦想. 提交于 2019-12-24 02:12:06
问题 I want to implement subscription billing feature, but when i call launchBillingFlow method, i am getting error like this android.content.ActivityNotFoundException: Unable to find explicit activity class {com.calendargb/com.android.billingclient.api.ProxyBillingActivity}; have you declared this activity in your AndroidManifest.xml Here it is my sample BillingFlowParams purchaseParams = BillingFlowParams.newBuilder() .setSku(skuId).setType(billingType).setOldSku(oldSku).build(); mBillingClient

Refund customer in-app purchase but BillingClient still indicate user has purchased?

…衆ロ難τιáo~ 提交于 2019-12-23 12:37:29
问题 I'm using the following BillingClient . implementation 'com.android.billingclient:billing:1.2.2' Although I have issued refund as bellow But I'm still getting the following respond from BillingClient.queryPurchases { "orderId": "GPA.3352-2555-5719-25534", "packageName": "com.yocto.wenote", "productId": "note_list_promo", "purchaseTime": 1560501011137, "purchaseState": 0, "purchaseToken": "djjneabakdaenkjafajbbclo.AO-J1OzbDNn5WkobYbSqLNzoBokm1F552-CqzfLQuNXK69bhxC