In-app purchase product id

In the documentation (https://docs.coronalabs.com/daily/api/library/store/loadProducts.html#example) there is an example saying that you need to specify your product ids in reverse domain name notation like this

local listOfProducts = { "com.coronalabs.NewExampleInAppPurchase.ConsumableTier1", "com.coronalabs.NewExampleInAppPurchase.NonConsumableTier1", "com.coronalabs.NewExampleInAppPurchase.SubscriptionTier1", -- "bad.product.id", }

Yet in all my tests this results in an error and the same goes for store.purchase() calls. 

The only way to NOT get the error is to only use the product id instead of the full domain name. In this case I can list products and purchase them just fine. 

Is this something related to the iTunes Connect sandbox or will this also work fine in the real App Store and this is just a documentation boo boo?

Hi @chillfok,

The product IDs don’t need to be stated in reverse-domain format. They just need to match what you configured in iTunes Connect.

Brent

Ah-ha! Good point!

Hi @chillfok,

The product IDs don’t need to be stated in reverse-domain format. They just need to match what you configured in iTunes Connect.

Brent

Ah-ha! Good point!