in-app-billing

In-App Billing in Android. The exact way?

走远了吗. 提交于 2019-12-02 18:47:29
I've been working on implementing an in-app billing in Android for the app I'm building. The base app would be free and the in-app apps would come at a price. I have followed the implementation method that has been documented in the Android Developers website. But still, it says that I can access the app I have created in the Android Market when in unpublished mode on the device, that has the test app. But this doesn't seem to work. My Current Progress I am able to call the Billing Service from my app for in-app billing successfully. But the reply says that "Error: Item not found" The app I'm

Item you requested is not available for purchase - android in app billing

戏子无情 提交于 2019-12-02 18:38:28
As I am developing an application which uses in app billing, I am not able to test it using my own product ID. I have followed every step as documented on developer site. I have, Uploaded the signed apk with release certificated to developer console. I have published my apk to alpha channel. I have listed my product Ids to developer console. I have activated my product Ids and on developer console it is marked as Active. I have listed the test account in developer console. I have installed the same apk that I uploaded to developer console to my deveice. The device is logged in with the test

Error in Adding the In-app Billing Library

穿精又带淫゛_ 提交于 2019-12-02 17:27:12
I was doing this following these steps as mentioned in the link . Copy the IInAppBillingService.aidl file to your Android project. (1) If you are using Eclipse: Import the IInAppBillingService.aidl file into your /src directory. (2) If you are developing in a non-Eclipse environment: Create the following directory /src/com/android/vending/billing and copy the IInAppBillingService.aidl file into this directory. Build your application. You should see a generated file named IInAppBillingService.java in the /gen directory of your project. Add the helper classes from the /util directory of the

android: Inapp billing: Error response: 7:Item Already Owned

早过忘川 提交于 2019-12-02 17:07:45
I am learning to implement an in-app billing for my app such that people can for example, donate $ when press the donate button. The user is allowed to donate more than one time, i.e. the purchase is consumable. The codes below are sourced from the TrivalDrive sample and some tutorials from the web: Code: IabHelper mHelper; static final String ITEM_SKU = "android.test.purchased"; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_in_app_billing); buy10Button = (Button) findViewById(R.id.buy10Button); buy15Button =

Purchased subscription not returned in inventory

蓝咒 提交于 2019-12-02 16:49:45
问题 I've adapted the play_billing sample in the Google extras of the Android SDK to use my own app package name and public key. I was able to purchase a managed item as well as a subscription thru the app. However, when I call methods such as Inventory.getAllPurchases() the subscription is not returned in the user's inventory, even after restarting and reinstalling the app. @Override public void onQueryInventoryFinished(IabResult result, Inventory inventory) { if(result.isFailure()) { log.error(

Testing in-app billing: “The publisher cannot purchase this item”

吃可爱长大的小学妹 提交于 2019-12-02 16:28:47
My app seems ready to get a 'real life' test for an in-app purchase procedure on my device. However, I receive an "The publisher cannot purchase this item" error message in Play Store. Now, how am I supposed to test this? I don't want to lose my phone's configuration by reinstalling it with a dummy account just for testing. In the Developer Console under "Settings"-"License testing", I have added my email address under "GMail accounts with testing access", but this doesn't change anything... maybe I missed some simple way, but right now it feels very confusing! A developer cannot purchase

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

混江龙づ霸主 提交于 2019-12-02 16:13:47
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. Any further suggestions? ==== UPDATE I've since blasted away all Google Accounts on my phone and now have

Are there alternatives to using Google's in-app-billing , as a way to avoid publishing private info? [closed]

a 夏天 提交于 2019-12-02 16:09:47
Background Starting from September 30th this year (end of this month), Google won't allow developers that sell apps and developers that use in-app-billing to show their apps without also showing their address . Here's what they write: Add a physical contact address Beginning September 30, 2014, you need to add a physical address to your Settings page. After you've added an address, it will be available on your app's detail page to all users on Google Play. If your physical address changes, make sure to update your information on your Settings page. If you have paid apps or apps with in-app

In-app purchases made via promo codes return empty developer payload string

喜欢而已 提交于 2019-12-02 14:49:24
I have an app published to the alpha channel, with an in-app (un)managed item that costs $1. When I purchase normally, i.e, use a credit/debit card Google returns the correct developer payload string, but if I choose to "redeem" a promo code and enter said code, Google returns an empty developer payload string, and thus authentication fails in 'onIabPurchaseFinished()'. I should mention that this only occurs if I choose to redeem a code from the app's purchase flow, and everything works flawlessly if I open Play Store first, redeem the code, and then come back and open the app. Is this a bug

PreferenceFragment doesn't get onActivityResult call from in app billing request

半腔热情 提交于 2019-12-02 12:54:39
问题 I have a preference screen that presents the user with a checkbox to disable ads. When the user clicks this for the first time, they are presented with an In App Billing purchase option to disable the ads. The issue I'm facing here is that I can't see any way to get the onActivityResult callback into the fragment. So I have a PreferenceActivity loading a PreferenceFragment (of which I can't seem to get a reference). In App Billing requires a call to startIntentSenderForResult , which