Reputation: 11975
I have some doubts regarding In-Application-Billing in android:
Can i test it with different product IDs without paying $25
In below link there is option to add product after it has been published to market then how it will added to program UI like ListView or Spinner to show to user?
http://developer.android.com/guide/market/billing/billing_admin.html#billing-testing-setup
From where we put the value in Purchase database initially.How should its change if more than one person using app.As its on Device so if same iTem will purchase by two person how they will synchronize?
How to generate ProductID?
Upvotes: 12
Views: 1838
Reputation: 3306
android.test.*
pre-designated product ids that emulate purchase activities but aren't the real thing. To test with your own product id, you must use a real credit card and the minimum price varies based on currency conversion rates. The current default $1.34 in the sample still works fine.Upvotes: 3
Reputation: 174
1.) Yes, you can, for example, set 0.01$ price per item
2.) You need to implement any items, what you sell, in your app, and get it by productID
4.) Set the name like "com.ads.free" - you can put any string what you want. It's an identificator, which helps your app find the right item in google billing server to purchase it.
Upvotes: 2
Reputation: 8395
Answer for 3)
The product id namespace is only for your application. Thus it must be unique within your application but you are free to name it to what you like. The product id makes it possible for you application to distinguish between different in-app-purchase items for the same application.
The product id is the string passed from the Google billing service to your application upon purchase.
The identifier is specified in the developer console as "In-app Product ID". It is up to you to match this identifier within your application and take appropriate actions.
Upvotes: 3
Reputation: 14389
1) You have to buy the items while testing. However you can charge much less then $25, and then you can refund yourself through google checkout. You even get the transaction fees back!
2) Your app cannot retrieve the available in app-purchases from the market. Either have them statically in the app, or retrieve them from your own server.
3) answered nicely by mach1980
4) You can just arbitrarily name them however I want. Or have I misunderstood this question?
Cheers.
Upvotes: 3