Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]
Photo

Google IAP V3
Started by naitver Jan 23 2016 05:44 AM

2 replies to this topic
[TOPIC CONTROLS]
[/TOPIC CONTROLS]
[modOptionsDropdown]
[/modOptionsDropdown]
[reputationFilter]
[TOPIC: post.html]
#1

naitver

[GLOBAL: userInfoPane.html]
naitver
  • Observer

  • 17 posts
  • Corona SDK

Hi.
When I try to include google IAP V3 in my APP I get an error. This error is telling google IAP v3 is not exists (I set it up in build.settings). Is there any way to download this plugin on my PC? ( not source code )

[TOPIC: post.html]
#2

Rob Miracle

[GLOBAL: userInfoPane.html]
Rob Miracle
  • Moderator

  • 25,786 posts
  • Enterprise

Can you post your build.settings?  Also copy/paste the exact messages your getting in your console log.

 

Rob



[TOPIC: post.html]
#3

naitver

[GLOBAL: userInfoPane.html]
naitver
  • Observer

  • 17 posts
  • Corona SDK

I already fixed it but I have another problem with store.

function storelistener(event)
if event.transaction.state == "purchased" then
if event.transaction.identifier == "android.test.purchased" then
store.consumePurchase("android.test.purchased",storelistener)
currentlevel = currentlevel + 1
composer.removeScene("campaign")
composer.gotoScene("campaign",{params = {selectedlevel = currentlevel}})
end
store.finishTransaction(event.transaction)
else
store.finishTransaction(event.transaction)
end
end
store.init(storelistener)
local function skiplevellistener(event)
if event.phase == "ended" then
store.purchase("android.test.purchased")
if settings.sounds then
audio.play(buttonsound)
end
end
end
Purchased was successful but listener wasn't even called and nothing happened.

 
function storelistener(event)
if event.transaction.state == "purchased" or event.transaction.state == "restored" then
if event.transaction.identifier == "android.test.purchased" then
settings.ads = false
utility.savetable(settings,"dryyourtears.json")
native.showAlert("Thank you!", "Your support is greatly appreciated!", {"Okay"})
end
store.finishTransaction(event.transaction)
elseif event.transaction.state == "refunded" then
if event.transaction.identifier == "android.test.purchased" then
settings.ads = true
utility.savetable(settings,"dryyourtears.json")
end
store.finishTransaction(event.transaction)
else
store.finishTransaction(event.transaction)
end
end
store.init(storelistener)
local function removeadslistener(event)
if event.phase == "ended" then
store.purchase("android.test.purchased")
if settings.sounds then
audio.play(buttonsound)
end
end
end
Same here, and I can't use it again because nothing even show when I press button (first time it was working but no more times).

 




[topic_controls]
[/topic_controls]