Apple IAP loadProducts testing

Hello everybody,

I am trying to implement IAP in my application. I have created a test user, and a consumable.

I logged to iTunes Store and Game Center with the test user on my device.

But when I call store.loadProducts, all the products are displayed as invalid products.

<code>

    print( “Showing invalid products:”, # event. invalidProducts )
    for i = 1,# event. invalidProducts do
        print( event. invalidProducts [i] )
    end
</code>

Is there something I am missing.

Thank you for your help.

Hi @Lourenco,

Well, these few lines of code look OK, but with IAP, it could be any number of other issues including how you’ve set up the products in iTunes Connect, whether you were absolutely strict in using those same names in your Corona code, and (sometimes) it’s even a matter of waiting 24 hours until the products are registered properly with Apple.

Basically, we’d need a lot more information to help diagnose this, and you should carefully check (and double check) your iTunes Connect product setup, because that is almost always the root issue in cases like this.

Thanks,

Brent

Hi @Lourenco,

Well, these few lines of code look OK, but with IAP, it could be any number of other issues including how you’ve set up the products in iTunes Connect, whether you were absolutely strict in using those same names in your Corona code, and (sometimes) it’s even a matter of waiting 24 hours until the products are registered properly with Apple.

Basically, we’d need a lot more information to help diagnose this, and you should carefully check (and double check) your iTunes Connect product setup, because that is almost always the root issue in cases like this.

Thanks,

Brent