StoreKit 2 - Issue

Hello,

Im trying to use in-app purchases for first time. I have followed the tutorial for StoreKit 2 from the WWDC21 and in the simulator with the StoreKit Configuration File all was OK. But now I want test to the real server and I have this response:

Error enumerating unfinished transactions for first transaction listener: Error Domain=ASDErrorDomain Code=509 "No active account" UserInfo={client-environment-type=Sandbox, storefront-country-code=USA, NSLocalizedDescription=No active account}

  • In "Run" -> "StoreKit configuration" I have selected none
  • In AppleStoreConnect I have created the auto-renewal suscription like in my StoreKit configuration. Also I create a new StoreKit configuration from the AppleStoreConnect and with this file its OK too.
  • None of my testflight testers can see the options to purchase.
  • I dont create any sandbox user. It's the problem? I saw in the documentation thats not needed.

I am thankful for any kind of help. David

Answered by DavidManso in 732513022

After I communicated with Apple I know the "solution".

For test IAP in TestFlight o SandBox you have to fulfill all the tax and banking information.

So, for now I'm on it, but it's seems to be the problem.

First of all app should read receipt data, validate it by Apple certificate, decode data to get purchases and another info to configure/lock/unlock some functionality, by getting receipt data during debug your app will be promted to enter login and pwd of sandbox account. You should try to purchase with sandbox account.

Accepted Answer

After I communicated with Apple I know the "solution".

For test IAP in TestFlight o SandBox you have to fulfill all the tax and banking information.

So, for now I'm on it, but it's seems to be the problem.

StoreKit 2 - Issue
 
 
Q