in-app-billing

How to do restore purchase and get whether the Product is Purchase or not?

萝らか妹 提交于 2020-01-16 18:40:09
问题 I have implemented the in-App Billing in my android App. The code i use it as below : oncreate method: startService(new Intent(this, BillingService.class)); System.out.println(" - - - - CHECK FOR THE PURCHASE PRODUCT - - - - "); BillingHelper.setCompletedHandler(mTransactionHandler); Handler is: public Handler mTransactionHandler = new Handler(){ public void handleMessage(android.os.Message msg) { System.out.println("SEE FOR THE PRODUCTS PURCHASE OR NOT"); Log.i(TAG, "Transaction complete");

Are Google Play in-app purchases still valid if the app or the product is removed?

|▌冷眼眸甩不掉的悲伤 提交于 2020-01-15 02:54:25
问题 Some Android apps published on Google Play ask users to pay for something. In the developer console of those apps there is some digital products that the user can buy. What happens to the real products the users buy if the app is removed or the product is removed? I mean: are the user buying something that depends on the product that's in the developer console or Google clones it for each purchase so purchases are still valid even if the app or the product is removed? 来源: https:/

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 {

Android In App Billing - Error Retrieving Information From Server

偶尔善良 提交于 2020-01-14 07:12:26
问题 I am using Android in app billing for in app purchases. In rare cases a number of my users are reporting Error: "Error retrieving information from server. [RPC:S-7:AEC-0]" This is happening in prod not in testing. And I'm unable to reproduce this locally to debug. What does this error mean and how to resolve it? 回答1: You might want to take a look at This Previous Question Check if you are using latest version of Google Play. OR Following the steps below. RPC:AEC:0 error is known as CPU/RAM

aidl.exe Error while creating directories: Invalid argument

前提是你 提交于 2020-01-12 19:31:23
问题 I updated my sdk yesterday and I encountered a problem. Google Play Library seems to be broken. I couldn't understand the error and I couldn't find how to solve this problem. Any idea how to solve this problem without waiting Google? aidl.exe E 3628 7164 io_delegate.cpp:102] Error while creating directories: Invalid argument Screenshot of bug Edit: As I see, this is a bug on 24.0.0 but still I can't understand how to solve this? Edit2: My codes worked before the update. https://code.google

Error refreshing inventory. In-app Billing

夙愿已清 提交于 2020-01-12 05:51:19
问题 I am setting up and testing in-app billing. I managed to purchase the android.test.purchased, and it did what it should. But now I need to consume it to continue my testing. The problem is that I can't reach the inventory. When this is called I get the result.isFaliure() is called and I can't get the inventory. IabHelper.QueryInventoryFinishedListener _gotInventoryListener = new IabHelper.QueryInventoryFinishedListener() { @Override public void onQueryInventoryFinished(IabResult result,

Error refreshing inventory. In-app Billing

微笑、不失礼 提交于 2020-01-12 05:51:11
问题 I am setting up and testing in-app billing. I managed to purchase the android.test.purchased, and it did what it should. But now I need to consume it to continue my testing. The problem is that I can't reach the inventory. When this is called I get the result.isFaliure() is called and I can't get the inventory. IabHelper.QueryInventoryFinishedListener _gotInventoryListener = new IabHelper.QueryInventoryFinishedListener() { @Override public void onQueryInventoryFinished(IabResult result,

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

Google IAB return purchase error type=3 subtype=4

喜欢而已 提交于 2020-01-10 10:23:48
问题 When I tried to buy all of items, then it returns the message like bellow "The item you requested is not available for purchase." And logcat logs. 09-04 10:06:25.374: D/Finsky(7185): 1 PurchaseFragment.handleError: Error: PurchaseError{type=3 subtype=4} 09-04 10:06:25.374: D/Finsky(7185): 1 PurchaseFragment.fail: Purchase failed: PurchaseError{type=3 subtype=4} I guess, purchase error code type 3 is billing api problem BILLING_RESPONSE_RESULT_BILLING_UNAVAILABLE 3 Billing API version is not