IAP purchase fails - "invalidPayment Cannot connect to the iTunes Store"

When I call the [lua]store.purchase{com.company.app.iap}[/lua] my transaction callback goes straight to ‘failed’ and prints error invalidPayment, Cannot connect to the iTunes Store.

[lua] elseif transaction.state == “failed” then
native.showAlert(transaction.errorType, transaction.errorString, {“Ok”})[/lua]

I have tried both signed in and signed out of the itunes store with my test account.

It is an ad-hoc build and the IAP product has been in iTunes connect for more than 48 hours.

I am just backing up my device, ready for a full restore, as a few old posts by Naomi (I’m addicted to BeetleBounce btw!) suggests.

maybe I am calling it wrong but i have tried both [lua]store.purchase{com.company.app.iap}[/lua] & [lua]store.purchase(com.company.app.iap)[/lua]

Any ideas?
[import]uid: 62706 topic_id: 30231 reply_id: 330231[/import]

@CraftyDeano, try Google with the following:

’invalidPayment’ site:coronalabs.com

There are bunch of posts that you might want to look at, and hopefully, you’ll find the answer you need in one of them.

Good luck.

Naomi [import]uid: 67217 topic_id: 30231 reply_id: 121073[/import]

Thanks, Naomi, i’ll take a look :slight_smile:

Link for the lazy: http://lmgtfy.com/?q='invalidPayment'+site%3Acoronalabs.com
Edit: Sounds like it may be because my billing info is not yet submitted:
http://developer.coronalabs.com/forum/2012/03/18/iap-cannot-connect-itunes

Edit2: Payment info submitted - Tested working! [import]uid: 62706 topic_id: 30231 reply_id: 121079[/import]

@CraftyDeano, try Google with the following:

’invalidPayment’ site:coronalabs.com

There are bunch of posts that you might want to look at, and hopefully, you’ll find the answer you need in one of them.

Good luck.

Naomi [import]uid: 67217 topic_id: 30231 reply_id: 121073[/import]

Thanks, Naomi, i’ll take a look :slight_smile:

Link for the lazy: http://lmgtfy.com/?q='invalidPayment'+site%3Acoronalabs.com
Edit: Sounds like it may be because my billing info is not yet submitted:
http://developer.coronalabs.com/forum/2012/03/18/iap-cannot-connect-itunes

Edit2: Payment info submitted - Tested working! [import]uid: 62706 topic_id: 30231 reply_id: 121079[/import]