in-app-billing

Change the price of in-app purchase item after publishing android

♀尐吖头ヾ 提交于 2019-12-04 11:23:15
问题 Is it possible to change in-app purchase item's price after it has been published in Google Play? (I'm assuming the app has been published, too). The whole documentations online at http://developer.android.com as well as http://support.google.com/googleplay/ have nothing about it, only mentioning the possibility of changing price of an app, not the in-app item. 回答1: Yes you can change prices at will. 回答2: You change the prices on the Developer console not in the application, of course if you

From second time “In app purchase” throwing exception in Android

♀尐吖头ヾ 提交于 2019-12-04 09:39:26
I Am trying to include in app purchase and i have successfully through in showing up SKUs available.Now I want to make a fake purchase.So I used appId = "android.test.purchased". For the first time it worked flawlessly, but from next it is throwing exception as below. Attempt to invoke virtual method 'android.content.IntentSender android.app.PendingIntent.getIntentSender()' on a null object reference Has anybody come across such situation? package com.inappbilling.poc; import java.util.ArrayList; import org.json.JSONObject; import android.app.Activity; import android.app.PendingIntent; import

Subscription sample missing JSON parsing of purchaseToken

不羁岁月 提交于 2019-12-04 09:04:06
I have been recently studying code for In-App-Billing v2. And have found some issues with it. I have earlier implemented In-App-Billing but wish to upgrade to subscription. On my research I found that Purchase token is recieved along with the JSON(Signed data) on successful purchase for subscription. The demo's Security.java on successful verification of signature parses Json however the parsing of element Purchase-token is missing here. JSONObject jElement = jTransactionsArray.getJSONObject(i); int response = jElement.getInt("purchaseState"); PurchaseState purchaseState = PurchaseState

Using external payments processor on Android for SaaS instead of Google Play In-app Billing

*爱你&永不变心* 提交于 2019-12-04 08:57:36
问题 I’ve built a SaaS website with subscriptions, enabled by an external payments processor (which could be Stripe, Braintree, Paddle, etc.). Now this website for my SaaS has been packaged in a small WebView wrapper and is about to be released as an Android app. But on the Stripe website, I found this: Google’s developer terms require that purchases related to the app, such as premium features or credits, are made via their native In-app Billing API. – https://stripe.com/docs/mobile/android

In App Billing - Rapid Device Orientation - causes crash (IllegalStateException)

て烟熏妆下的殇ゞ 提交于 2019-12-04 08:50:56
I implemented In-app Billing (v3) according to Android's Implementing In-app Billing guide. All works fine, until I rotate the device, then immediately rotate it back to it's original orientation. Actually, sometimes it works, and sometimes it crashes with: java.lang.IllegalStateException: IabHelper was disposed of, so it cannot be used. Seems this is related to the asynchronous nature of IAB, though I'm not positive. Any thoughts? Ben H You're probably getting the exception because somewhere in the activity lifecycle, you called mHelper.dispose() , then tried to use that same disposed

IAB Error You already owned this item

≡放荡痞女 提交于 2019-12-04 08:39:39
I'm now developing a small game with Google's in-app billing service. And I reference to Trivial Drive of Google's sample project. Let's me ask you about connection interruption during Purchase Items from Google Play. It's OK when launching purchase flow with normal internet connection. I tested like this. As soon as purchase flow is launched, disconnect the internet connection (by unplugging the routers' LAN). After about 2-3 minutes, It shows Connection time out. In merchant account, Money transfer is done. But when I query All owned items, there is no owned item of this ID (purchased

How do we verify Android in-app billing receipt on the server side?

☆樱花仙子☆ 提交于 2019-12-04 08:02:56
问题 I am implementing in-app billing into an Android game and we want to use a server to store the purchase information. According to what I understood so far, Android Market will return a callback to the app in the form of Broadcast receiver about the purchase status. But since we are persisting the transaction information on the server, my app has to make some http post request and update my server. There is a very high chance that this http post request could be imitated by some hacker

Offering additional media resources (graphics/sounds) as Google Play in-app billed items

允我心安 提交于 2019-12-04 07:56:58
Within my Android app that is available via Google Play, I want to offer additional items that can be bought via in-app billing. The kind of items I want to offer is media content such as graphics and sounds, which would normally go into the res folder of the app. The problem is that these resources must be protected, of course. In its documentation , Google suggests not to store the content inside of the application package but to obtain a key after the item was bought and then send the key to a remote server where the key is checked and, if successful, the graphics/sounds offered for

Android IAB. Error - Authentication is required. You need to sign into your Google Account

心不动则不痛 提交于 2019-12-04 07:45:10
问题 In the Android > Sample app > Trivial Drive when running the app I get the following when doing an IAP: Error - Authentication is required. You need to sign into your Google Account I've switched to a separate account on my phone with the testing account (i.e. the testing email address I've specified in the Developer Console) and followed all the steps here: https://android.stackexchange.com/questions/20369/getting-authentication-is-required-when-trying-to-access-the-play-store but no joy.

aidl.exe Error while creating directories: Invalid argument

一笑奈何 提交于 2019-12-04 05:16:30
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.com/p/android/issues/detail?id=202972 Today ,Use Eclipse import Project Error while creating directories: