in-app-billing

How to detect refund with google billingclient library

戏子无情 提交于 2019-12-21 04:12:14
问题 I was wondering how to detect a refund, or any type of cancelation of an in-app purchase(not a subscription and not a consumable). I'm currently making my test and when I refund a test in google like that : The purchase is still present in billingClient.queryPurchaseHistoryAsync() (even in queryPurchase() ). How can I detect such changes and how can I disable my app for refunded users? Thanks in advance. 回答1: Have to tried this function PurchasesUpdatedListener Listener interface for purchase

ios in-app subscriptions - when does original_transaction_id change?

泄露秘密 提交于 2019-12-21 03:47:14
问题 When there is an auto-renewing subscription, consider the following model situation: user buys 1 month subscription, lets say in January cancels renewal then waits until March (>1 month) and buys same subscription again Does the AppStore return (on receipt verification) a new original_transaction_id for the new purchase? Or rephrased, can original_transaction_id be used for grouping receipts to determine intervals when user had active subscription? Because in sandbox, when there is a

In App Billing getPrice() Android

喜欢而已 提交于 2019-12-21 03:47:08
问题 I have successfully implemented in app billing into my app which all works fine. I am now trying to retrieve the price of items (set in developer console) so that I can reflect these prices within my app without hard-coding values. This code quite obviously only gathers prices of the items already purchased through the Inventory which is not what I'm looking for: SkuDetails gasDetails = inventory.getSkuDetails(SKU_FULL); if (gasDetails != null){ alert("Gas is " + gasDetails.getPrice());} I

IAB consumePurchase() no longer works for static response android.test.purchased

為{幸葍}努か 提交于 2019-12-21 02:58:04
问题 Our beta app uses android.test.purchased so customers can test for free. But recently something broke with consuming these test products. The purchase process still works fine but when we try to consume: int response = ms.consumePurchase(3, mContext.getPackageName(), token); This now always returns RESULT_DEVELOPER_ERROR == 5 . The data passed appears valid, token is inapp:com.lootworks.swords:android.test.purchased which I think is correct for the static test products. Simultaneously all our

android inapp-billing - find out API version

ぐ巨炮叔叔 提交于 2019-12-21 02:36:31
问题 I'm pretty sure that i'm using Inapp-billing v3 in my app ("IInAppBillingService.aidl" is v3 as far as i know - "IMarketBillingService.aidl" would be v2 according to the google-documentation). however, i received an email from google asking me to update my app from v2 to v3 as at least one purchase was made using the old API in the past 3 months. Also - i never had V2 implemented in my app so an old version should not be the case. Is this a mistake by google, or was one of my uses purchasing

Best approach for Free and Paid versions of Android application?

可紊 提交于 2019-12-21 02:26:08
问题 I have developed an Android app which I want to be available both as free and paid version. What is the best approach? I can think of three solutions: Split the project into two branches and maintain both of them. Create a library project and have two additional projects, one 'Free' and one 'Paid' version. Use in-app billing. Q: Which solution is the best? And why? Some things to consider: My app is around 1.5 MB (AdMob excluded). I'm currently targeting Android 2.2 (Froyo). I do have some

How to create in-app purchase to upgrade from free version to paid version android

纵然是瞬间 提交于 2019-12-21 01:28:07
问题 I have two version of my app Paid Version Free Version Now in free version I disabled some features that are available only in the paid version. So what i want is when user taps on any of those disabled features, the in-app purchase window should pop up and when the transaction completes the free version of the app should get replaced by the paid version. Can you please tell me what would be the right way to do that. 回答1: Free version to paid version scenario: To understand why you should

In-App Payments for Android Amazon AppStore

独自空忆成欢 提交于 2019-12-20 12:43:56
问题 I'm familiar with the in-app payments from google proper http://developer.android.com/guide/market/billing/index.html But are there other solutions which can be implemented for apps distributed through the amazon marketplace? Alternatively, does the google IAP system work if the app wasn't distributed through the google marketplace? 回答1: Google's IAB uses the Android Market app, and requires a Google checkout account (possibly works with carrier billing too). If the Market app is not

In-App Payments for Android Amazon AppStore

人盡茶涼 提交于 2019-12-20 12:43:08
问题 I'm familiar with the in-app payments from google proper http://developer.android.com/guide/market/billing/index.html But are there other solutions which can be implemented for apps distributed through the amazon marketplace? Alternatively, does the google IAP system work if the app wasn't distributed through the google marketplace? 回答1: Google's IAB uses the Android Market app, and requires a Google checkout account (possibly works with carrier billing too). If the Market app is not

In-App Billing: “Query items available for purchase” returns 0 items

折月煮酒 提交于 2019-12-20 10:44:52
问题 I am trying to implement in-app-billing for my app. I am following the implementation used in google's TriviaDrive sample app, and the relevant documentation on the Developer website. My code is working as expected but when I try to "Query Items Available for Purchase", the resulting Inventory object contains 0 objects, even though I have created a product. I have created a Managed Product with the id paid_version using the Google Play Developer Console, as shown in the image below: The