Tofeeq Ahmad
Tofeeq Ahmad

Reputation: 11975

In-App-Billing Issues in android

I have some doubts regarding In-Application-Billing in android:

Upvotes: 12

Views: 1838

Answers (4)

Bill The Ape
Bill The Ape

Reputation: 3306

  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.

Upvotes: 3

kelheor
kelheor

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

mach
mach

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

pgsandstrom
pgsandstrom

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

Related Questions