Hello all, I had an issue with using v3 of Google Play services with Corona in a particular app.
I’ve actually implemented v3 successfully in other apps, however, those apps have had only one product (one SKU).
However, in this one particular app, there are multiple (18) SKUs that need to be loaded successfully for the store. When I try loading the table of products, I have a pop up showing me that 0 valid products were loaded and 18 invalid products, and we are unable to test purchasing seeing as how these products are, for some reason, not being loaded successfully.
Why would it be unable to load the SKUs? I followed the documentation for Corona, I feel, pretty thoroughly, and we’re very sure everything is set up correctly in our Dev Console on Google Play,so has anyone else run into this and have a solution, or any ideas? The license table is in my config file, and the build.settings has the plugin for v3 included as well as the permission for billing under Android. Also using Corona build 2189.
\_G.store = require("plugin.google.iap.v3"); local STORE\_LOADING\_LIST = { "ID1", "ID2", "etc", }; local function loadProductsCallback( event ) local validProducts = (event.products or {}); local invalidProducts = (event.invalidProducts or {}); native.showAlert("TEST", "number of valid products loaded: ".. #validProducts.. " and number of invalid products : " .. #invalidProducts, {"Okay"}); end function setupMyStore(event) if (\_G.store.canLoadProducts == true) then \_G.store.loadProducts(STORE\_LOADING\_LIST, loadProductsCallback); else native.showAlert("TEST", "could not set up store", {"Okay"}); end end \_G.store.init("google", transactionCallback) timer.performWithDelay (1000, setupMyStore);