18

when i tested IAP for my app, it throws following error

Error Domain=SKErrorDomain Code=0 "Cannot connect to iTunes Store" 
UserInfo={NSLocalizedDescription=Cannot connect to iTunes Store}

i have tried many links related to this problem but nothing helped. Moreover the "Product Identifier" are also correct and i also created new sandbox user, but no output. Any help would be great.

Zღk
  • 854
  • 7
  • 25

2 Answers2

10

Looks like Apple's servers are down for Sandbox environment. Live purchases are working just fine!

Daniel Ramos
  • 251
  • 1
  • 6
-3

SKPaymentTransactionStatePurchased is not called in Live purchases, Only SKPaymentTransactionStateFailed is called but amount has been deducted from user account. Now user should click the restore button to restore the purchased products. We don't know the solution for this. Now It is the big headache for all the IOS developers. Apple's servers are down for Sandbox environment.

Ramkumar Paulraj
  • 1,841
  • 2
  • 20
  • 40
  • `SKPaymentTransactionStatePurchased is not called in Live purchases` is a very dangerous claim I would say. I am now testing the purchases in Sandbox and I am getting the `.purchased` state. Are you saying that this is not the case in Live purchases? – Stanislav Pankevich Jun 01 '17 at 14:51