store.purchase({ your_product_id })
this is how I use it
store.purchase({ your_product_id })
this is how I use it
Is it necessary to mention that google product list if we have more than 1 product?
I have integrated one button for inapp once we click on it it has to purchase that product so what i have to do?
function appbuy()
store.purchase(abc)
end
is it enough or i have to add any transaction call back functions? and is it work only with paid version?
Thank you
you seriously have to read the docs.
It’s well described there.
hi krystian6,
Do you know why my app requires additional step to download the expansion file instead of downloading it together with the apk?
It’s rather annoying to see the additional download window especially since it’s just a black screen that looks almost like an error screen.
Hi Yanuar,
I believe this may be because you are using some old Android version.
I’ve never seen it on any 4.x device.
I am really not getting correct information about the followed one.
I have created one product and calling it like store.purchase({“packagename.product id”})
still i am gettiing item not found error,
please help to solve this.
Thankyou
No issues i have solved it.
Thankyou krystian6…
Tested on galaxy note with ICS and it still does the same, but I may do a different approach since if compressed my apk can be reduced to half.
After file expansion also i am getting main.obb is 68 kb.so i dont have any idea about integration of these obb file.If any one knows about this ,please post your reply here.
Hmm which version of corona are you using?
Try a different one maybe.
I’m sending updates everyday to my alpha testers and I never had such file generated.
Currently I’m using 1143.
Thanks for given the reply…
I am using 1076 version…is it suggested one or not?
Sorry, I never use public releases. They are to buggy and limited. And 1076 seems to be very old.
Don’t even try to publish your app with expansion files using build before 1137, as there’s a bug which does not allow loading of assets when the app is first run.
Ok and let me know one thing, after expansion if we get two file then which one we have to upload?
and suggest me the inegration steps for Inapp purchase for android.
Thankyou.
Well you get two files: apk and obb.
You upload apk as an apk, and then after apk is uploaded to google play you can add expansion file, you simply select the obb file.
Inapp purchase is described fine in corona documentation. Just follow it.
yes i have followed the same procedure, but i am getting confusion about license key in config file,with out integration of apk file how can we get that key.
Under services & Api i found one License key but it is in encoded format.
Please let me clear about this.
The license key from services & api is the correct value you should put in your config.lua file.
You uploaded an APK signed with a certificate that expires too soon. You
need to sign your APK with a certificate that expires farther into the
future.
Can you tell me the solution for this above error?(means required certification expire period)
Thankyou.
I would expect a new certificate to fix the issue for you
Thankyou…
I have integrated the apk & obb and i added one product in play store,while integrating it i have little bit confucion.
with out publishing the app how to test that product id is able to purchase or not,
and where we have to keep that product id,
is it android.test.purchased instead of test we have to integrate that product id or not?
please provide the solution for this.
Hi,
you don’t have to publish your application to test your in app purchases.
If you’ve got a test account on google play, you will be able to use it to test your in app purchases without publication.
The other way is to publish your app in alpha test. You will be able to invite users to test your app [in alpha test mode] and they will be able to but your addon. Please note, that during alpha test, when a non-test account buys the addon, they WILL be charged for it.