'InApp Purchases. No auth plugin to verify credentials for accounts of type com.apple.account.iTunesStore.sandbox

I'm using .storekit configuration. When trying to make a purchase for such a product there is an error

<SKPaymentQueue: 0x600001240ce0>: Payment completed with error: Error Domain=ASDErrorDomain Code=500 "Unhandled exception" UserInfo={NSUnderlyingError=0x600001c62160 {Error Domain=AMSErrorDomain Code=100 "Authentication Failed" UserInfo={NSLocalizedFailureReason=The verify credentials call failed., NSLocalizedDescription=Authentication Failed, NSUnderlyingError=0x600001c60960 {Error Domain=com.apple.accounts Code=4 "No auth plugin to verify credentials for accounts of type com.apple.account.iTunesStore.sandbox" UserInfo={NSLocalizedDescription=No auth plugin to verify credentials for accounts of type com.apple.account.iTunesStore.sandbox}}}}, NSLocalizedFailureReason=An unknown error occurred, NSLocalizedDescription=Unhandled exception}

How to fix that?



Solution 1:[1]

I guess you test IAP in the simulator. Test it in real devices is worked for me.

Solution 2:[2]

For me by resetting all settings of my iPhone devices it worked.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 user10475870
Solution 2 kathiria hemendu