Android In-App Billing Dynamic Product List - android

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.

Related

How to convert a paid app to a free app with in-app purchasing?

First I had created one app, which I uploaded into the Play store with some price, and I got some downloads. Now I want to add in-app purchases to my app and I want make my app free.
If I update my .apk (with in-app purchase) into the Play store then it will send notification to the users who have purchased my app.
If they are updated then it will show in-app purchases also so they have to purchase some modules.
So I want to set in-app purchases as active for users who have purchased my app.
Is there a specific process for accomplishing this?
You can make a paid app be free
Is there a specific process for accomplishing this?
No, their is no official way to do this, Because In-App you have to add items on google play and its show to every user util he/she pay for that In-App Item.
but you can handle by your own way.
Like if user already pay then you have to hide in-app(or whatever your app flow) for that perticular user and enable that future for them.
So no need to pay again for same
in sort you can handle by JAVA code(because you have list of paid user)
If app have same package and current version is new then installed then its update app(make sure both version are signed with same certificate/keystore)
Important:
If you change an app from Paid to Free and save the change, the change is permanent. Once changed to free, the app can't be changed back to a paid app. If you want to charge again for a paid app that you’ve changed to a free app, you would need to create a new app with a new package name and set a price for the new app.
Android Developer Help
first of all you have to add vending inapp billing files in your package, then in manifest you have to give permission. thats from application side, now you have to configure product id and licence key. Below is very useful link which i also had applied, Hope it works for you too :)....
Sample Project && configuration
My little contribution is that setting the app to use in-app purchases is in the Content Rating (of all places) There is one checkbox!!! Lost an hour at least on this.

Android In-App purchases. Can I retrieve the Title And Description?

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.

query android market place

I am building an application that at some point involves In-App Billing.
To add a level of security, after an item is successfully purchased, a server will ask Android Market if the item was purchased by a specific user.
Is there any API (Java, C, any language) that would allow the server to query Android Market if a purchase was successful?
Regards
Pretty sure that would be in In-App billing itself i.e "after the item is successfully purchased" means that the user has bought it, no further checks would be needed.
http://developer.android.com/guide/market/billing/billing_overview.html

how to list out items from android market for in app purchase

I am making an Android app based on in app purchase. In my app I have a sample video and if a user wants to buy it, I want to make an in app purchase through Android Market site.
I went through the steps in Downloading the Sample Application.
I downloaded the sample app and I tried to use it for checking purpose. I added my public key of my market account and added the video name I have to show to the user. In my market account, in the in app product list I added the details of my video title, description, product id.
In the developer site I found the following line:
Do not publish the sample application; leave it as an unpublished draft application.
The sample application is for demonstration purposes only and should not be made publicly available on Android Market.
When I run the app and click the buy button an alert box gets appeared saying that
"The Item that you requested is not available for purchase".
The Android documentation is quite confusing on this point.
Yes, leave the APK as draft--do not publish it.
Make sure the email address attached to your device is entered in the "Test Accounts" field (separate multiple email addresses with commas): https://market.android.com/publish/editProfile
However, when you add an in-app purchase product to the app, you need to click the publish button ON THAT PRODUCT. The app is not published, but the product is.
If you do this, then you should be able to run the app on your device, view the IAP products and purchase one, but other people would not be able to, if their email address was not listed in the Test Accounts for your developer profile.
at last i found my mistake with the help of a sample app. The in app product id which is given in the market account must be given in two places of the app. In the
CatalogEntry[] CATALOG and in the strings.xml file the ids entered must be the same. i have given the same id in Catalog entry but not in the strings.xml file
now the in app products gets listed out correctly.

Android: In-app billing question

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.

Categories

Resources