No changes, I’ve got 16 “invalidClient” on July 22nd (and no successful purchases).
This probably has nothing to do with the build number since I’ve worked with many, most of them official.
Also, I have created a completely new set of in-app items, with new ID’s and published another build - Tested and works on my own device.
Would you like to try maybe? (I can cancel the transaction after that, if it works…)
Here is my complete config.lua :
application =
{
content =
{
width = 320,
height = 570,
scale = “zoomEven”
},
}
build.settings :
settings = {
plugins =
{
– key is the name passed to Lua’s ‘require()’
[“plugin.tapfortap”] =
{
– required
publisherId = “com.tapfortap”,
},
},
orientation = {
default = “landscapeRight”,
content = “landscapeRight”,
supported = {
“landscapeRight”
},
},
android =
{
usesPermissions =
{
“com.android.vending.BILLING”,
“android.permission.INTERNET”,
},
},
iphone = {
plist = {
CFBundleIconFile = “Icon.png”,
CFBundleIconFiles = {
“Icon.png”,
“Icon@2x.png”,
“Icon-72.png”,
“Icon-72@2x.png”,
“Icon-Small.png”,
“Icon-Small@2x.png”,
“Icon-Small-50.png”,
“Icon-Small-50@2x.png”,
},
UIApplicationExitsOnSuspend = false,
CFBundleURLTypes =
{
{
CFBundleURLSchemes =
{
“my_FB_app_id”,
}
}
}
}
}
}
and code :
1.
function coinItem1:touch(event)
if event.phase == “ended” then
coinItemClicked = 1
flurry.logEvent(“try to buy 10,000 coins”)
store.purchase( { “ten_k” } )
end
end
-
function transactionCallback( event )
if event.transaction.state == “purchased” then
if (coinItemClicked == 1) then
totalCoins = totalCoins + 10000
flurry.logEvent(“10000 coins bought”)
end
elseif event.transaction.state == “failed” then
flurry.logEvent("Transaction failed, type: " … event.transaction.errorType … " desc: " … event.transaction.errorString)
native.showAlert("Transaction failed, type: " … event.transaction.errorType, event.transaction.errorString,{“ok”})
elseif event.transaction.state == “cancelled” then
flurry.logEvent(“Transaction cancelled”)
end
store.finishTransaction( event.transaction )
end
-
store.init( “google”, transactionCallback )