Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Implementing In App purchases in Android?

Edit: Android now supports in-app billing!

Original question:

It looks like Android won't natively support in-app purchases for a while, and when it does there might be a huge user base with devices that don't support them.

What's the best way to implement iPhone-like (additional content or services) in-app purchases in Android using the Android Market if possible?

The solution should consider in particular:

  • For all kinds of in-app purchases: Android Market's 24-hour cancellation policy
  • For consumables/non-consumables: storage of additional content (ie: use precious application memory to avoid piracy, or use SD card to avoid bloating application memory)

Thanks!

like image 402
hpique Avatar asked Jan 07 '10 19:01

hpique


People also ask

How do you implement In-app purchases?

Test In-app purchases To do that, go on the Google Play Console -> All apps -> Settings -> License testing. Write down the accounts you want to use and select LICENSED on the drop-down menu. Setting your account as a tester account, you will not be charged when you purchase a product.

Why can't I make in-app purchases on my Android?

If you experience trouble making a purchase, follow the steps below: Make sure in-app purchase options are set correctly on your device. Play Store > Payment Methods. Close the game from the background and restart it.

How does in-app purchasing work?

In-app purchases allow developers to offer the app for free in the App Store (for iOS) and Google Play (for Android). Then, within the application, they can upsell and advertise paid upgrades, locked features, special items, and other premium offers.


3 Answers

This has changed as of today! There is now an example on the Android Developer site here: https://developer.android.com/google/play/billing/billing_overview

like image 90
fernferret Avatar answered Nov 04 '22 10:11

fernferret


You can create a premium key application, that will have a key. How you expose that it's your deal ( or you can just check if PremiumKey activity exist ). From the main app you just check for your key and if it's exist enable premium option ) If you're talking about buying OTHER apps from yours - build your list with market url pointed to the other apps ( market:// )

like image 23
Alex Volovoy Avatar answered Nov 04 '22 09:11

Alex Volovoy


It is against the Android Market Developer Distribution Agreement to take in-app payment:

3.3 ... All fees received by Developers for Products distributed via the Market must be processed by the Market’s Payment Processor.

like image 21
Draemon Avatar answered Nov 04 '22 08:11

Draemon