I have a question regarding in-app billing. I have a published app that currently offers a single in-app product. If I plan to add another in-app product, do I have to push an update? Assume that I fetch the list of products to display to the user from a private server.
Thanks,
Akshay
P.S: This is a hypothetical scenario, which is why I can't try it myself using a publisher account.
Actually, your application only needs to know the product's name to send the billing request, so I think there is no need to update your app on the market, if you have an option to fetch the product names from the server. It's just an assumption, haven't tried it myself.
Related
I have working app that sells in-app products (InApp billing v3).
Recently I've made an update for this app and made a terrible mistake there: I consumed some of purchases I didn't want to consume.
I issued an update and users updated the app and then wrote me they have no purchased access. (As I found later, I consumed wrong items).
So I have some questions now:
Is there a way to restore consumed purchases or I should return payments to my users?
Is there a way to find out how many and which purchases were consumed?
If returning payments, is there a way to find out if user still has the product or is it consumed with out changing the app (through google services)?
Thanks.
According to what I have understood from your question, It seems like you want to purchase product only once.
What I wished to ask: is there a way to request information about consumed products like about owned products.
you can get response or it's information in any type(Managed Product, Unmanaged Product, Subscription) in the onActivityResult method() check my below link.
In-app billing-v3 error in activity result
but I would not prefer you to manage it customly as you told for one time purchase product(not consumable product). You should go with the Manage product.
Managed In-app Products:
Managed in-app products are items that have their ownership
information tracked and managed by Google Play. When a user purchases
a managed in-app item, Google Play stores the purchase information for
each item on a per-user basis. This enables you to later query Google
Play at any time to restore the state of the items a specific user has
purchased. This information is persistent on the Google Play servers
even if the user uninstalls the application or if they change devices.
for more information about product type
you can query any time you want and you will get the product information, and even you don't need to manage if user has already purchase this product or not.
Is there a way to restore cnsumed purchases or I should return payments to my users?
Better option is you should give the payments back to the user and for the next time check the whole app once using dummy product "android.test.purchased" and update your app.
Is there a wat to find out how many and which purchases were consumed?
You have to check in the Google wallet because all transaction should be handle by the it, check if it gives you product type or not. Using your google developer console credential you can signed into google wallet.
If returning payments is there a way to find out if user stil has the product or is it consumed with out changing the app (through google services)?
as per above answer you have to check in google wallet, according to my knowledge they are provide us all of information about product type with user detail.
Let me know if I have not properly understood your question.
Hope it will solve your problem.
I am building an app that I want to use Google in app billing for. Does Google track in-app purchase history for me, so that I can query history and get data, say, by date or by item, etc. Or must my app itself store user's purchase history on my own backend? Also, if you can please provide a link so I can verify this info.
For your question answer is both YES and NO Google will take care of all purchases based on product type. If you are using Non-consumable or Subscription based products Google will keep records, in other case if you are using Consumable products Google will keep it's record till your app consumes that product.
If your app sends a purchase request Google will associate it with primary gmail account registered on android device and will not allow to purchase same product twice.
NOTE:- If You are using IAB-2 then above product type and flow will slightly different
Non-consumable ** is known as **Managed Products
*Subscription* is same as Subscription
*Consumable* is known as Unmanaged products
In case of IAB-2 google will never keep record of Unmanaged products and it is your responsibility to keep records if you want.
For more details see below link to developer guide.
Developer guide
I need some information about in app purchase app.
I want to work on Inapp purchase app for android and iPhone both.
I just need to know few things about InApp system.
After reading documentation and stack-overflow, i come to know that it is possible to upload Inapp purchase data item (like videos,music) on our own server and we just need to manage purchase item list on google play for android or app store for iPhone. I just need to know that after purchase item what are the "strings or values or data or response" app server sends us like "purchase_item_id or username_id" so that i can send this value to my own server to download the particular purchase item from my server to particular user.
Thank you for your valuable time!
Any help appreciated.
Apple's In App Purchase documentation has all the answers you need. When you create an In App Purchase on iTunes Connect, Apple will assign that purchase a product id. You can use this product id to know what to download from the server if the In App Purchase is successful.
https://developer.apple.com/library/ios/#documentation/NetworkingInternet/Conceptual/StoreKitGuide/Introduction/Introduction.html
I'm having a little trouble with in app purchases. My app downloads a JSON file to get the skus of available products. That way I don't have to update my code when I add a new product. So when the user makes a purchase, it sends that sku to Google Play. That works. The question is, how can I retrieve the product information from Google Play to show the user the title and description of the products? I know you can export a CSV from Google play, but you have to be logged in to do that. surely there is a better way.
thanks!
Since end of 2012 Android supports the in app billing version 3.
Using this, you can simply run getSkuDetails with one or multiple SKU (your identifiers) and it will return you for example the price, title and description.
You’ll need to store the product information (such as name, description, etc.) on your own, either within your app or on an external server.
I am currently working a setup for in-app billing on one of my applications. Is there a way to set up purchases without a product list on the Android Market side? Essentially, I want to do what I am allowed to do in most other merchant APIs, send the product name/id/PRICE/etc to the merchant and get back a response from them if the payment went through or not.
I have too many products to manually add each item to the Android Market Publishing area and want to send the user to the in app market request with a custom title, description, and price (most important), and have Android handle that.
Any ideas?
No you can't.
The reason for this is security. Someone could hack your app and add a new product/ change your product prices, but defining them on the market; they would have to hack your app and have your login for the android market.