Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

In-App-Billing Issues in android

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?

like image 549
Tofeeq Ahmad Avatar asked Nov 22 '11 05:11

Tofeeq Ahmad


1 Answers

  1. You must have an Android Market publisher account to test In-app Billing in your application. Thus, you have to pay Google the $25 registration fee. As for product cost itself, there are 4 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.
  2. You can add a product to an application and expect this to work only if it is properly defined in both the application and your Android Market publisher account.
  3. Answer #2 basically answers your question #3. You must plan ahead and make sure that product ids are "upward compatible".
  4. You can create any productID that you like, as long as it is unique within your application, i.e. no other in-app billing item has that ID. It's a string, so you can just call it "ItemNumberOne", "iAmSoUnique", "myVerSpecialService", etc. Google chose sword_001 and potion_001 for their real items in the billing sample.
like image 53
Bill The Ape Avatar answered Nov 06 '22 05:11

Bill The Ape