in-app-billing

Android - How to check if subscription is renewed?

你说的曾经没有我的故事 提交于 2019-11-30 17:42:30
I have an android app with renewable monthly subscriptions. In this app I want to notify user some info when his subcription continues in next month. As I can see renewals in merchant center(orderId ends with eg. ..0, ..1), but when querying the inventory my purchase orderId is same as befor eq. { "orderId": "GPA.XXXX-YYYY-XXXX-ZZZZZ", "packageName": "my.packageName", "productId": "my.sku", "purchaseTime": 1456398623654, "purchaseState": 0, "developerPayload": "mypayload", "purchaseToken": "token", "autoRenewing": true } What bothers me more is that purchaseTime also doesn't change. So my

What is the purpose of the “developer payload”? What can it be used for?

别说谁变了你拦得住时间么 提交于 2019-11-30 17:13:43
The Android docs say that its meant for "supplemental information about an order" but at the same time it also says not to use this to send "actual data or content". So what is the purpose of this "developer payload"? Why does this feature exist? Can you describe a real-world practical example of how I can use it in my own In-app Billing implementation? Bill The Ape As aromero mentioned the developer payload field is limited in size. This is why the docs recommend not to use this key to send data or content. What you do instead is save the content to a database somewhere (e.g. on the user's

Android In-app purchase: how to consume?

[亡魂溺海] 提交于 2019-11-30 17:11:29
问题 I've implemented Google In-App Billing V3 in my app and i did my first test purchase. Now, as seen that i want it consumable, but if i click the "Purchase" button again i receive an error, i'm wondering how and where to insert "consumePurchase". I've been all day long on my computer searching on every thread, but i'm making confusion with old versions of the same. From what i saw, i need to call consumePurchase after the successfully purchased item AND when the activity is created, but i can

Android in-app billing: custom sku purchase gives “Error - item not found”

生来就可爱ヽ(ⅴ<●) 提交于 2019-11-30 16:33:17
I'm trying to test in-app billing using my own sku/product ID "upgrade_to_premium". As I have seen recommended here, I am using the Dungeons sample app. I've added a "new CatalogEntry("upgrade_to_premium", R.string.upgrade_to_premium, Managed.MANAGED)" to the CatalogEntry[] array in Dungeons.java. In Const.java, DEBUG is set to TRUE. I have uploaded my release-signed .apk to my Developer Console and activated it, and installed this same .apk to my device with adb. I have entered an in-app product of the same name in the Dev Console, and published it. I am logged into my phone not with my

Android in-app billing: custom sku purchase gives “Error - item not found”

為{幸葍}努か 提交于 2019-11-30 16:14:09
问题 I'm trying to test in-app billing using my own sku/product ID "upgrade_to_premium". As I have seen recommended here, I am using the Dungeons sample app. I've added a "new CatalogEntry("upgrade_to_premium", R.string.upgrade_to_premium, Managed.MANAGED)" to the CatalogEntry[] array in Dungeons.java. In Const.java, DEBUG is set to TRUE. I have uploaded my release-signed .apk to my Developer Console and activated it, and installed this same .apk to my device with adb. I have entered an in-app

Maximum Limit for Items in In App Billing / In-App Purchase

本秂侑毒 提交于 2019-11-30 15:37:34
I would like to know what the maximum number of items that can be placed in In App billing for both Android and iphone. I seem to remember reading around 3000 but I cannot find the reference. Also if 3000 is the maximum what are the legitimate way to get around this. My app will sell content and I thought a possible way around the problem would be to have a central app that shows the content, then a number of different libraries where you can purchase the content. Would that be a viable work around? I can only answer the Apple part of your question. I just spoke with them 2 weeks ago, because

In app billing security

我是研究僧i 提交于 2019-11-30 13:56:24
问题 I've finished developing my app that uses in app billing v3. My app is an exam help app which has a list of questions which are inserted into a database. The thing that worries me is security as beyond proguard there is pretty much little else. My app queries the inventory for purchased items so storing purchases isn't a problem. So the first issue is someone could decompile the app (which I've done) and even with proguard you can without too much difficulty retrieve all the questions. The

How to get separate price and currency information for an in-app purchase?

a 夏天 提交于 2019-11-30 11:01:15
问题 I am implementing in-app purchases for an app with support for several countries. The In-App Billing Version 3 API claims that: No currency conversion or formatting is necessary: prices are reported in the user's currency and formatted according to their locale. This is actually true, since skuGetDetails() takes care of all necessary formatting. The response includes a field called price , which contains the Formatted price of the item, including its currency sign. The price does not include

In App BIlling trouble with Pending Intents and switching activities

百般思念 提交于 2019-11-30 10:06:39
Ok so I have been trying to fix this for days, and I'm not coming here looking for someone to do my work for me as I have been troubleshooting and fixed every single error message in the LogCat. I am developing an Android game using Andengine (this might be part of the problem so being familiar with it could help). I'm not doing anything too fancy, my game activities are all single scene and don't have any Physics or anything like that, just a bunch of sprites and textures. I also used Andengine for all of the other activities in my game because I find it to be a very easy way to set up

Android In-App Billing Subscription purchase gives error [DF-AA-20]

梦想的初衷 提交于 2019-11-30 09:35:02
问题 I have in-app billing subscriptions available to users which I would like to test and ensure the logic works as expected. However, I am unable to do so. Note: There are a number of SO questions relating to In-App Billing not working, specifically for this error: Error while retrieving information from server [DF-AA-20] Such as can be found: - here, and - [here][2] , and - here, and - here Summarised, all solutions relate to some missing part of the requirements. A prominent issue is the issue