in-app-billing

“You already own this item” but getPurchases is empty [duplicate]

时光怂恿深爱的人放手 提交于 2019-12-05 05:44:09
This question already has answers here : Android consumable: “already own that item” but inventory.hasPurchase() is false (2 answers) Closed 5 years ago . I purchased a subscription (not a Managed Product or Unmanaged Product ) yesterday to test, I refunded myself and then cancelled the subscription. After the refunding and cancelling, when I call: m_billingService.getPurchases(3, m_context.getPackageName(), ITEM_TYPE_SUBS, null) It would return my purchase with a purchase state of 0 (valid/ok). Today when I call the same method, it returns nothing. Yet when I try to purchase the item, google

Check the status of In-App Subscription in Android

喜夏-厌秋 提交于 2019-12-05 04:12:26
I have created an application in which there is in-app purchases which has monthly auto renewal.. on first time successful payment i have called a web-service in which i have made the user to premium class. Now if the user has cancelled the payment manually from the google server, how could i know that user has cancelled his/her subscription. Is there is some PHP code query or from android i have to called something in background to check the status?? Thank you in advace You can check the purchased subscriptions inside the app via Edit: For subscriptions use "subs", for inapp-purchases use

Android In-App Billing list of available products

百般思念 提交于 2019-12-05 03:23:00
Is it somehow possible to get a list of all available products from the Play Store? What I want to do is to get all available items and then show them in a ListView. Whenever someone taps the ListView the right item is opened in Google Play Store. Is that possible? And if yes, how? Third-paty apis and services are not reliable. There is no reliable and convenient way for production yet. You have to store it on your server in encrypted json data file for example, without any php/java/something, just static file. OR you can guess item skus in your code and check even non-existing items: myitem

Android: get Google Play account associated with in-app billing

我怕爱的太早我们不能终老 提交于 2019-12-05 01:59:22
How can I get the email/ID of the Google Play account associated with an app? I need this to show the user which account is taken into consideration for in-app billing. As far as I understood, Google in-app billing uses the account which downloaded the app, but I need to find a way to display this to the user, in case he has more than one account configured. This would prevent users to complain not having their purchases recognized, when they have another account associated with the app. I don't think there is a way to detect the account that the user will use during an in app purchase. The

Can't re-buy in-app billing item on Google Play after it was refunded

时光总嘲笑我的痴心妄想 提交于 2019-12-05 01:39:29
问题 I implemented in-app billing into my app and am now testing its handling of refunds. I bought my app's managed in-app billing item with a test account and refunded it. My app got the refund broadcast as expected and it sees that the item was refunded when restoring transactions, so everything is good up to that point. My problem is that I can't re-buy the item to test other scenarios. When I try to purchase the item, the Google Play interface comes up and displays an error message saying "You

In-app Billing Error

只愿长相守 提交于 2019-12-05 00:55:41
问题 My [UNMANAGED] in-app purchase won't work, Before it works perfectly which I can purchase successfully using Test Accounts. But it suddenly won't work, as I remember what I did to Merchant Account is only add more 2-4 Test Accounts. Then after adding, my in-app purchase won't work. So I updated the public key and upload an Apk as draft. But still won't work. When the app is in google play page I received a LogCat error: 11-20 17:00:18.840: E/Finsky(2182): [187] FileBasedKeyValueStore.delete:

Test Subscription Feature of In-app Billing

天大地大妈咪最大 提交于 2019-12-04 23:06:09
Is it possible to test subscription feature of In-app Billing? I tried using reserved product IDs for testing(android.test.purchased), But it gave error like 'item not found'.I am using In-app Billing Version 3.I could not find a conclusive answer from the web. Any help is appreciated. As of February/March 2015, in-app subscriptions can also be tested on Android. Now, Google accounts with testing access (configured in the Settings Menu of the Developer Console) will receive the message This is a test subscription. It will recur daily. You will not be charged when trying to buy in-app

Android : inApp purchase receipt validation (Part 2)

让人想犯罪 __ 提交于 2019-12-04 22:58:27
I am implement inApp purchase in my application and add product as " Manage Product ". After purchase I want to do receipt validation .For that I configure in Developer console like The Steps are Developer Console -> Settings -> API access Create Server account Google Developer console -> Add a credential in Service account and put it as JSON After adding I got a file from developer console it contains { "type": "service_account", "project_id": "api-xxxxx-xxx", "private_key_id": "xxxxxxxxxxxxxxxxxxxxxx", "private_key": "-----BEGIN PRIVATE KEY-----\ixxxxxxxxxxxxxxxx=\n-----END PRIVATE KEY-----

Android In-app purchase: While purchasing got network failed popup but purchase has been completed got an email

末鹿安然 提交于 2019-12-04 21:42:49
I am getting a weird issue from the in-app purchase IInAppBillingService version 3 since 1 week ago. Below are the steps what I had followed: Note: I followed these steps because few of my users got same network issue but purchase has been completed. But app still showing Buy button for that product. So to replicate the issue I had to follow these steps. Installed the debuggable signed APK over the play store version. Clicked on item to buy Opened the play store popup with Buy button. Clicked on Buy in the purchased popup I lost the network while purchasing a product. Got a popup with No

Extending In-App Purhcase content (Magazine) to monthly Auto-renewable Subscription type in iPhone

≯℡__Kan透↙ 提交于 2019-12-04 21:41:05
Sorry for the millionth question about iTunes subscriptions & IAP, where we do have solutions to them, but this seems to be different than what I have gone through including UrbanAirShip. I have successfully implemented the IAP functionality very well in my application & it works nicely using Urban-Airship. These links really helped me to learn & implement the Pay feature in the app,even this could help the new learner in future: http://www.alexcurylo.com/blog/2010/02/26/in-app-purchasing/ https://docs.urbanairship.com/display/DOCS/Home http://urbanairship.com/resources/ Basically I'm looking