If Google Play doesn't use store.loadProducts() how do you get the item prices?

maxtrix2000: I agree. For us it’s important to show the price difference for each item so the users can compare them and easier decide which one to buy.

anyone ever found a way on how to achieve that?

Rob Miracle, back in May you said there was no plans to implement billing v3 in the near future. Has this changed at all?

I also totally agree with maxtrix2000 - I think many people would be skeptical of even pressing the “purchase” button if they can’t see the price before hand. Given that it’s in Corona’s interest for developers to maximise their app’s monetization as much as possible, I think it would be very helpful if we were able to access the latest billing functions to allow us to show localised prices right there in the app.

AlanPlantPot - we are looking at Google IAP v3 right now, but don’t have an ETA. We agree it is an important thing to do.

anyone ever found a way on how to achieve that?

Rob Miracle, back in May you said there was no plans to implement billing v3 in the near future. Has this changed at all?

I also totally agree with maxtrix2000 - I think many people would be skeptical of even pressing the “purchase” button if they can’t see the price before hand. Given that it’s in Corona’s interest for developers to maximise their app’s monetization as much as possible, I think it would be very helpful if we were able to access the latest billing functions to allow us to show localised prices right there in the app.

AlanPlantPot - we are looking at Google IAP v3 right now, but don’t have an ETA. We agree it is an important thing to do.

I’m trying to hard code prices, but I have to use system.getPreference( “locale”, “country” ) and that just gets the language

So Canada and UK both use British English so it’s impossible to derive the country from it.

For U.S and most other countries except Spanish speaking it’s possible. Wish there was a way to get the location (without using location services) or store currency, that’s all I’d need 

hello all, since Corona finished yesterday the implementation of the Google IAP V3 plugin you shouldn’t have problems to implement it. and it has the Load Products and all, also the small difference of calling consume to consume your not managed products afaik.

regards,

@matrix2000 can you do loadProducts on Android? Its not returning anything for me and as far as the doc goes they still only mention that its possible on iOS. 

@jonjonsson is a plugin, Google IAP V3. 

Ahh great, found it, thanks for the help. 

I added comment to docs about this, it is not mentioned in http://docs.coronalabs.com/daily/guide/monetization/IAP/index.html

I’m trying to hard code prices, but I have to use system.getPreference( “locale”, “country” ) and that just gets the language

So Canada and UK both use British English so it’s impossible to derive the country from it.

For U.S and most other countries except Spanish speaking it’s possible. Wish there was a way to get the location (without using location services) or store currency, that’s all I’d need 

hello all, since Corona finished yesterday the implementation of the Google IAP V3 plugin you shouldn’t have problems to implement it. and it has the Load Products and all, also the small difference of calling consume to consume your not managed products afaik.

regards,

Thanks for pointing me to the plugin.  I remembered a daily build note about Google IAP V3 but didn’t realize it was now a plugin and as jonjonsson pointed out the docs don’t mention it.

Has anyone here got the Google V3 IAP working correctly in their app yet?  I’m implementing now and having some issues.  Most likely it’s something I’m doing wrong, but it would help my sanity to know it’s me and not a broken plugin!

-Stephen

It kind of works but sometimes I can’t load the products. I get this error: “Error refreshing inventory (querying owned items). (response: -1003:Purchase signature verification failed)”,

Also you will have to comment out the plugin in build.settings when you build for iOS. I reported that bug, todays daily has something about a compiler bug there, dont know if related.

What kind of problems are you having?

Hi jonjonsson,

I’m not able to actually purchase items.  When I load my IAP items on entrance to my store scene the correct items are found as I see a “Got sku details:…” line via logcat that has all the correct info. for each item, including price, description, etc.  So I know the products are set up correctly on Google dashboard and I’m querying the correct itemIDs.  But when I try to purchase an item it fails and I see this in logcat:

D/IabHelper(21200): Starting async operation: launchPurchaseFlow

 

D/IabHelper(21200): Constructing buy intent for , item type: inapp

 

W/Finsky  (14334): [520] Stub.getBuyIntent: Input Error: Non empty/null argument expected for sku.

 

E/IabHelper(21200): In-app billing error: Unable to buy item, Error response: 5:Developer Error

 

D/IabHelper(21200): Ending async operation: launchPurchaseFlow

 

D/dchan   (21200): Unable to buy item (response: 5:Developer Error)

 

W/System.err(21200): com.naef.jnlua.LuaRuntimeException: ?:0: attempt to concatenate a nil value

 

W/System.err(21200):     at com.naef.jnlua.LuaState.lua_pcall(Native Method)

 

W/System.err(21200):     at com.naef.jnlua.LuaState.call(Unknown Source)

 

W/System.err(21200):     at com.ansca.corona.CoronaLua.dispatchEvent(CoronaLua.java:100)

 

W/System.err(21200):     at plugin.google.iap.v3.StoreTransactionRuntimeTask.executeUsing(StoreTransactionRuntimeTask.java:114)

 

 

Other than the super informative “Developer Error” message, the above seems to indicate my purchase attempt is using an empty string for the sku, even though I just successfully used the same itemID strings when opening the store.  The Corona code I’m using to call store purchase is simply

store.purchase({key})  

Where key is the itemID string (I’ve checked to make sure “key” is actually loaded with an item ID).  

Thanks for any insight!

Try not having the product ID in a table, have some recolection of that being a problem:

[lua]store.purchase(key)[/lua]

Holy frijoles, that was it.  Jonjonsson, you have saved me I don’t know how many hours of frustration.  I’m not even sure why I had the key in a table in the first place, but that’s the kind of thing I would never see even though it’s right there.  I owe you, man!

-Stephen

No problem! The table thing is in the documentation actually, I was having problems and decided to try it without the table. 

I havn’t implemented iOS yet, so it might be required there.