in-app-billing

Not being able to establish connection for In app billing in android

核能气质少年 提交于 2019-12-18 07:15:04
问题 I am trying to integrate In app billing v3 in my app. I call the following function to initialize. public static void SetupInappBilling() { mHelper = new IabHelper(context, base64EncodedPublicKey); mHelper.enableDebugLogging(true); mHelper.startSetup(new IabHelper.OnIabSetupFinishedListener() { public void onIabSetupFinished(IabResult result) { if (result.isSuccess()) { Log.e("tag", "connected"); ConnectionEstablished = true; } else { Log.e("tag", "not connected"); ConnectionEstablished =

Android In-App billing cancel payment

大城市里の小女人 提交于 2019-12-18 03:47:26
问题 When someone buys an in-app product in an Android app and the owner cancels the payment in Google Checkout, so he gets refunded - does the user still keep the item? (managed type of in-app product). I know that a refund is not possible but I would like to cancel orders from users that already donated money, so they can have the in-app product for free. 回答1: It's up to you to manage refunded items. You have more infos here : In-app billing does not allow users to send a refund request to

IabResult: Billing service unavailable on device. (response: 3:Billing Unavailable)

最后都变了- 提交于 2019-12-18 01:55:30
问题 I'm trying to use In-App billing: mIabHelper = new IabHelper(this, BILLING_KEY); mIabHelper.startSetup(new IabHelper.OnIabSetupFinishedListener() { @Override public void onIabSetupFinished(IabResult result) { if (!result.isSuccess()) { Log.d(TAG, "Problem setting up In-app Billing: " + result); } } }); And getting the error: Problem setting up In-app Billing: IabResult: Billing service unavailable on device. (response: 3:Billing Unavailable) Why? Tried to clear cache of the Play Store, didn't

Android In App Billing: Can't start launchPurchaseFlow because launchPurchaseFlow is in progress

大城市里の小女人 提交于 2019-12-17 22:57:10
问题 I'm implementing In App Billing for the first time and I'm testing my first purchases using the static SKU ids. It worked very well the first time. I called mHelper.launchPurchaseFlow(...) and completed the test purchase. My activity received the onActivityResult callback and I made sure to process it with mHelper.handleActivityResult(...) . Everything was great. @Override protected void onActivityResult(int requestCode, int resultCode, Intent data) { // Pass on the activity result to the

In-App Billing v3 - Don't detect refund

时光毁灭记忆、已成空白 提交于 2019-12-17 17:58:08
问题 I've followed the training about "In-App Billing v3" of Google. I get to do a buy of a item but I've a problem. https://developer.android.com/training/in-app-billing/index.html I've canceled and refunded the buy but the app detect the buy as true. I can't continue testing my app because always I detect as purchased the item. The only error that I've found in logCat is the next: [3687] InAppBillingService.logResponseBundle: Bundle does not contain a response code Appears after launching

Testing Android In App Billing real purchases

谁都会走 提交于 2019-12-17 17:28:49
问题 What are the conditions to properly test real purchases, when i already have tested my app using test product like android.test.purchased ? 回答1: There are few steps that you need to pass, remembering, that some of them need some time to update on Google Play servers. For this example, let's use com.example.product as our real product Id. Any time it shows up in this example change it to your own. UPLOAD APK FILE You CAN'T test REAL PURCHASES in DEBUG mode. You need to download an app from

“The item you were attempting to purchase could not be found” Android in-app billing

痴心易碎 提交于 2019-12-17 15:43:17
问题 I am receiving this error while testing my app. The app is signed and uploaded to the alpha testing portion of the developer console. The in-app item has the status "Active". I have entered an account other than my developer account in "testing access". I am using a device with the primary account in the "testing access" and not the developer account. I have double checked the spelling of my SKU. The exact same .apk was uploaded to Developer Console and installed on the test device. I have

Android In App Billing: securing application public key

杀马特。学长 韩版系。学妹 提交于 2019-12-17 15:19:44
问题 From Android In App Billing version 3 (TrivialDrive)sample application coming with sdk MainActivity.java /* base64EncodedPublicKey should be YOUR APPLICATION'S PUBLIC KEY * (that you got from the Google Play developer console). This is not your * developer public key, it's the *app-specific* public key. * * Instead of just storing the entire literal string here embedded in the * program, construct the key at runtime from pieces or * use bit manipulation (for example, XOR with some other

How to implement In-App Billing in an Android application?

十年热恋 提交于 2019-12-17 15:02:14
问题 It seems that it is quite complicated to implement In-App Billing in an Android app. How could I do this? The sample app from the SDK only has one Activity, which kind of over-simplifies it for an application like mine that has multiple Activities. 回答1: Well, I'll try to explain what I experienced. I don't consider myself an expert on this but I broke my head several days. For starters, I had a very bad time trying to understand the workflow of the example and the application. I thought it

How to implement In-App Billing in an Android application?

浪尽此生 提交于 2019-12-17 15:00:38
问题 It seems that it is quite complicated to implement In-App Billing in an Android app. How could I do this? The sample app from the SDK only has one Activity, which kind of over-simplifies it for an application like mine that has multiple Activities. 回答1: Well, I'll try to explain what I experienced. I don't consider myself an expert on this but I broke my head several days. For starters, I had a very bad time trying to understand the workflow of the example and the application. I thought it