Does anyone know how to make a simple app in android dev eclipse with a simple in app purchase item like 50 coins for 0.50p in android because there are absolutely no tutorials out there and the android in app billing example isn't exactly helpful.
The current version of Android In App Purchase is V3
http://blog.blundellapps.com/simple-inapp-billing-payment-v3/
My blog post is titled Simple In App Purchase v2, so that might help:
http://blog.blundellapps.com/simple-inapp-billing-payment/
I've also recently written an overview with a flowchart to try and explain InApp Purchase (not so simple):
http://blog.blundellapps.com/overview-of-android-in-app-billing-flowchart/ (v2)
Does this library (AndroidBillingLibrary) solve your problem?
Attention!
Here is answer for IAB v2
And you, most likely, looking for v3 (which is much simpler)
Don't get in this trap, as I did...
Google I/O 2013 - In-App Billing Version 3 - http://www.youtube.com/watch?v=DgcJPIRpfSk
You can check example with library for inn app billing.
Example
Related
As you may know Google Play in-app review dialog is an upcoming feature
Here is a working proof of concept app : IAR Test App
I wanted to use this unofficial feature, I did a search and I found this:
Exploring in-app reviews: part 1
But there is no decompiled source code, Can someone share with us a working code?
Google Play's In-App Reviews is now available here.
I am about to implement inApp Purchases in my app, but Iam totally confused about which way to go. On Android developer site there are different aproaches, but it is not clear why there are 2?:
http://developer.android.com/training/in-app-billing/index.html
and
https://developer.android.com/google/play/billing/api.html
I feel for you. I found the the tuts on this guy's blog very useful for cutting through the confusion. If you follow his process, you can, I attest, successfully implement in-app billing. I've linked to the older tutorial, I followed, but he's got a newer one as well (see the link on that page), which includes Github-hosted source code and updates to support the latest Android library changes.
Here you can find TrivialDrive example app utilizing In-app Billing V3. It's sample app directly from Google.
The most important class is IABHelper, source code here.
The link posted by JASON G PETERSON is pointing to a deprecated version of In-app Billing V2. Here's link to the version 3: http://blog.blundell-apps.com/simple-inapp-billing-payment-v3/
I'm pretty sure that i'm using Inapp-billing v3 in my app ("IInAppBillingService.aidl" is v3 as far as i know - "IMarketBillingService.aidl" would be v2 according to the google-documentation).
however, i received an email from google asking me to update my app from v2 to v3 as at least one purchase was made using the old API in the past 3 months.
Also - i never had V2 implemented in my app so an old version should not be the case.
Is this a mistake by google, or was one of my uses purchasing something using a old play-store, so some kind of support/compatibility-mode was activated?
Or am i mistaking and i'm really using v2 of the api??
how can i find out (for sure)which version i have implemented?
this may be a stupid question, however, the email from google confused me...
I got the same email as well and am confused by it.
I also use IInAppBillingService.aidl and within IABHelper there's a method launchPurchaseFlow which calls getBuyIntent with the first parameter being version, which is set to 3 so I'm pretty certain I'm using v3.
The IABHelper I'm using is littered with v3 checks and comments.
Suggest you check the same piece of code to make sure and put it down to a Google error otherwise.
I am using AndroidBillingLibrary for purchasing. But I don't know how to get the price of purchase (in-app item) in code. If it possible using the library, because this library based on In-app Billing API version 2? I saw that it is possible in API version 3 link
This is impossible. But I implemented in-app Billing version 3. This is not so hard, there is a great and very simple documentation link. Also Google provide a sample which anyone can download and use how to install sample
if you use API3 of the in-app billing library, this feature is already there.
it seems it's called "getSkuDetails" .
for more information, watch the google IO 2013 lecture "In-App Billing Version 3" : https://developers.google.com/events/io/sessions/324958374 , slides 104-107 .
you can also read the documentation...
sadly, even though they've added many nice features and made it easier, they've removed the feature of unmanaged purchases, but that's a different story.
I am currently developing an app which will be on Android Market. How can I implement in my Cocos2x-project the Google code for inapp billing on Android Market ?
Detailed explanations (or a detailed step by step tutorial :)) would be appreciated !
Thanks !!!
JNI has to be used. The inapp is implemented in the Java part of the project.
The SOOMLA Project has implemented it for you. It's designed specifically for game developers and it's great - but i'm one of the creators so i'm a bit biased :)
http://project.soom.la