trigger.io iOS in-app purchase issue: "In-app payment failed: Cannot connect to itunes store"

StackOverflow https://stackoverflow.com/questions/22401885

Вопрос

I've developed an app in trigger.io and submitted to app store successfully. the app is reviewed and added to the store. Now I'm trying to add in-app purchase feature for my app, but I'm not sure at which point i could test in-app purchase. current steps I did:

  1. upload app for review
  2. create a product in itunes connect
  3. app is approved

at this point I'm trying to test purchase with the payments module in trigger.io with this code:

forge.payments.purchaseProduct("Product1", paymentSuccess, paymentError);

and this is the error I'm getting:

"In-app payment failed: Cannot connect to itunes store"

What am I doing wrong? should I create a new version, add my product to this version and upload for reviewal again to be able to test it, which seems absurd to submit an app without working functions.

For the record, I'm using developer certificate and provisioning profile to test my app, naturally, and I've created a test user in itunes connect which I'm using to test the purchase.

Это было полезно?

Решение 2

Finally figured it out. the problem was, I was using a distribution certificate & provisioning profile. I should've been using development certificate & provisioning profile to test in-app payments.

Другие советы

Had similar issue, the problem was expired contracts in itunesconnect. enter image description here

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top