Google Play IAP problems

Trying to setup IAP at Google, followed all the steps, but after uploading the APK it keeps saying: “To add in-app products, you need to add the BILLING permission to your APK.”

I added the billing permission “com.android.vending.BILLING” to build.settings, the Plugin, and added the key to config.lua, but Google refuses me to add IAP.

Here’s my config.lua and build.settings. Maybe somebody can find the problem?

Config.lua:

application = { license = { google = { key = "MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEApBSSko1Cs6KBYkJe62aCSMmjwW4wTN/GsMFoxA5sQxstxx8BSzv3yP7Ew6jHY5rjUMQK9Hp+K45dCjytwoFGIlnZCpfTBUK+KIUgsJoybSA3Y/Sa+WaGx6ENKgUGeDE10AQhJFAcFuFUvHlOtWbnD3w5Z+Is2Jw+SzbtrUkaaeYIPYaji2DPXkaZPodjImAOgt9TCGdOQRQJPoVVtRk69kmrfM9ijpy+MJFAiPoebNj0EcSETf8PDzQccMfHIq4ZZZ7voCMH5IBAEYstdq3V3LCbgn+BovbQ76wjBNW9JIDIWFi5HM5XRfQeRB5hFi5A3FRbCcA7kdLLM7hGmlekfwIDAQAB", }, }, content = { width = 768, height = 1024, scale = "zoomStretch", } }

build.settings:

settings = { plugins = { ["plugin.google.iap.v3"] = { publisherId = "com.coronalabs", supportedPlatforms = { android=true } }, ["CoronaProvider.ads.vungle"] = { publisherId = "com.vungle", }, ["plugin.google.play.services"] = { publisherId = "com.coronalabs" }, ["CoronaProvider.gameNetwork.apple"] = { publisherId = "com.coronalabs", supportedPlatforms = { iphone=true, ["iphone-sim"]=true }, }, ["CoronaProvider.gameNetwork.google"] = { publisherId = "com.coronalabs", supportedPlatforms = { android=true }, }, ["plugin.playhaven"] = { publisherId = "com.playhaven", }, ["plugin.tapfortap"] = { publisherId = "com.tapfortap", }, ["facebook"] = { publisherId = "com.coronalabs" }, }, orientation = { default = "landscapeRight", supported = { "landscapeRight","landscapeLeft", }, }, iphone = { plist = { UIAppFonts = { "SaranaiGame-Bold.ttf" }, UIApplicationExitsOnSuspend = false, FacebookAppID = "1588028748098867", --replace XXXXXXXXXX with your Facebook App ID CFBundleURLTypes = { { CFBundleURLSchemes = { "fb1588028748098867", } } --replace XXXXXXXXXX with your Facebook App ID }, UIStatusBarHidden=true, }, }, android = { usesPermissions = { "com.android.vending.BILLING", "android.permission.INTERNET", "android.permission.ACCESS\_NETWORK\_STATE", googlePlayGamesAppId = "745457057331", }, }, }

you need:

usesPermissions =

        {

            “android.permission.INTERNET”,

            “android.permission.ACCESS_NETWORK_STATE”,

            “com.android.vending.BILLING”,

            “android.permission.ACCESS_FINE_LOCATION”,  

            “android.permission.ACCESS_COARSE_LOCATION”,

        },

   googlePlayGamesAppId = “YOU_ID_HERE”

but not :

usesPermissions =

        {

            “android.permission.INTERNET”,

            “android.permission.ACCESS_NETWORK_STATE”,

            “com.android.vending.BILLING”,

            “android.permission.ACCESS_FINE_LOCATION”,  

            “android.permission.ACCESS_COARSE_LOCATION”,

            googlePlayGamesAppId = “YOU_ID_HERE”

        },

 

You are wellCome =)

Thanks!

you need:

usesPermissions =

        {

            “android.permission.INTERNET”,

            “android.permission.ACCESS_NETWORK_STATE”,

            “com.android.vending.BILLING”,

            “android.permission.ACCESS_FINE_LOCATION”,  

            “android.permission.ACCESS_COARSE_LOCATION”,

        },

   googlePlayGamesAppId = “YOU_ID_HERE”

but not :

usesPermissions =

        {

            “android.permission.INTERNET”,

            “android.permission.ACCESS_NETWORK_STATE”,

            “com.android.vending.BILLING”,

            “android.permission.ACCESS_FINE_LOCATION”,  

            “android.permission.ACCESS_COARSE_LOCATION”,

            googlePlayGamesAppId = “YOU_ID_HERE”

        },

 

You are wellCome =)

Thanks!