in-app-billing

in-app billing doesn't work: “IAB Helper is not set up”

限于喜欢 提交于 2019-11-27 05:42:42
问题 I tried to include in-app billing in my app and for the purpose of testing, based the whole procedure on the "TrivialDrive" example for version 3 of in-app billing (and implementing the unmodified versions of the IAB files as supplied in the "util" subdirectory of the demo), but it doesn't work for me - on LogCat, just before the app terminates with an error, it gives the message "In-app billing error: Illegal state for operation (launchPurchaseFlow): IAB Helper is not set up. " (right after

service account (403) Forbidden Google Play In-app Billing Purchase Status API

早过忘川 提交于 2019-11-27 03:30:47
问题 <?php include_once('./src/Google_Client.php'); include_once('./src/contrib/Google_AndroidpublisherService.php'); //user token, in json format $ANDROIDUsertoken = '{"orderId":"12999763169054705758.1323390433376399","packageName":"org.luan.hellocpp","productId":"1","purchaseTime":1394183520430,"purchaseState":0,"purchaseToken":"rurmodmieoumgowoquecqhnv.AO-J1Ow43-aM8CXNWlUcUYmA06bIaYzZPcCJCua0lLxnihOULX27Jg6NvqNUlWMpoENxtdHCIVSm6AM2mVkiC0ABSch2JEKmu1zqsVM46L762H5ppF4AIcE"}'; $user_token= json

Working around API-purchase-logic-flaws for consumables in Google Play's Billing API v3 (Relevant to everyone using consumables with API v3)

梦想与她 提交于 2019-11-27 02:52:46
问题 With version 3 of the Billing API, Google has removed the distinction between consumable and non-consumable products. Both have been combined into a new type called "managed" and behave somewhat like a hybrid: Your app needs to actively call a method to "consume" the items. If that is never done for a set of skus, those items basically behave as if they were non-consumable. The documentation describes the intended purchase flow as follows: Launch a purchase flow with a getBuyIntent call. Get

Google Play Order ID updated to new format

假如想象 提交于 2019-11-27 02:46:46
问题 All my recent Android app purchases show a new order ID format. The OLD format: [merchant ID].[actual order ID] We could use this format to check if the prefix of the order ID matches with the merchant ID and prevent possible hacks by apps like Freedom. The NEW format: GPA. 1234-5678-9123-45678 All my recent orders start with " GPA. " (yes the additional dot is also there) There is a 17 digit number divided into 4 blocks The first 3 blocks contain 4 digits each and the last having 5 digits I

User is not eligible for this purchase - in app billing

纵饮孤独 提交于 2019-11-27 01:33:14
问题 I'm getting "User is not eligible for this purchase" message from google play while trying to purchase as a test. I've uploaded singed apk in google play, published the billing item(in app product), saved the apk as draft, still getting this error. Also I was trying to purchase from test user device. 回答1: Edit: The actual reason for this error: If an unauthorized user try to purchase an item then this message should appear. So if the App is not published, a non test user should get this error

IabHelper PurchaseFinishedListener

江枫思渺然 提交于 2019-11-27 01:06:13
问题 If I send a purchase intent via the standard String mySku = "android.test.purchased"; mHelper.launchPurchaseFlow(this, mySku, 10001, mPurchaseFinishedListener); I am able to purchase the item and it will store and I can query the item and that works fine too. The only thing that doesn't work is is the PurchaseFinishedListener. I've got it coded pretty much identical to the sample app however it doesn't seem to get called at all. 12-12 01:40:47.248: D/IabHelper(23502): Calling getPurchases

Google Play error “Error while retrieving information from server [DF-DFERH-01]”

戏子无情 提交于 2019-11-27 00:31:39
问题 I'm just finishing a game for android and I'm testing out the in app purchase functions. I'm sending testing using android.test.purchased It was working fine until a few hours ago. But now when I click the "accept and buy" in google play, the store gives the error. Google play error "Error while retrieving information from server [DF-DFERH-01]" Does anyone know what this error means? 回答1: Try this, as it solved in my case on a Samsung mobile phone: 1. Open the "Google Play" app and press the

Android: In app-billing VAT tax

北慕城南 提交于 2019-11-26 23:39:45
问题 I have implemented In-app billing in my application, but have limited the in-app purchase function to a few countries/currencies, since I'm note sure what my responsibilites are regarding VAT tax collection and reporting. I find it a bit unclear after reading about it on Google Play Store. I have read that I have to report VAT to Japan manually, so I have disabled In-app billing for this country. I can see that Google Play collect tax for many countries. What countries do I have to make

Android in app purchase: Signature verification failed

笑着哭i 提交于 2019-11-26 21:28:23
I have tried for several days to solve this problem, using the Dungeons demo code that comes with the SDK. I've tried to Google for an answer but can't find one. In the Dungeons demo, I passed my public key from the dev console. Signed the apk and uploaded to console without publish. Testing for both android.test.purchased & product list created on console with published for subscription (The main feature I want for my app). But still I get an error of Signature verification failed and then the signature does not match data. How can I solve this? public static ArrayList<VerifiedPurchase>

Implementing In App purchases in Android?

感情迁移 提交于 2019-11-26 18:56:20
问题 Edit : Android now supports in-app billing! Original question: It looks like Android won't natively support in-app purchases for a while, and when it does there might be a huge user base with devices that don't support them. What's the best way to implement iPhone-like (additional content or services) in-app purchases in Android using the Android Market if possible? The solution should consider in particular: For all kinds of in-app purchases: Android Market's 24-hour cancellation policy For