SwiftyStoreKit icon indicating copy to clipboard operation
SwiftyStoreKit copied to clipboard

SwiftyStoreKit.purchaseProduct method always return 'unknown error'

Open Chikobai opened this issue 3 years ago • 12 comments

Question

Please, who can help me? What is the problem? <SKPaymentQueue: 0x280c18740>: Payment completed with error: Error Domain=ASDErrorDomain Code=500 "Unhandled exception" UserInfo={NSUnderlyingError=0x280070270 {Error Domain=AMSErrorDomain Code=100 "Authentication Failed" UserInfo={NSLocalizedFailureReason=The verify credentials call failed., NSLocalizedDescription=Authentication Failed, NSUnderlyingError=0x2800703c0 {Error Domain=AMSErrorDomain Code=0 "Authentication Failed" UserInfo={NSLocalizedDescription=Authentication Failed, NSLocalizedFailureReason=Encountered an unrecognized authentication failure.}}}}, NSLocalizedFailureReason=An unknown error occurred, NSLocalizedDescription=Unhandled exception}

Chikobai avatar Oct 23 '20 04:10 Chikobai

I'm having this issue too

Bubba8291 avatar Nov 02 '20 20:11 Bubba8291

I'm having this issue too

vermaamit38 avatar Nov 03 '20 06:11 vermaamit38

Looks related to https://developer.apple.com/forums/thread/661351

artursare avatar Nov 03 '20 12:11 artursare

I'm having this issue too. Does anyone know a workaround or What the reason could be ?

jithinjames571 avatar Nov 03 '20 13:11 jithinjames571

You have an authentication error. Are you sure you're using the right environment (Sandbox or Production mode)?

SergeiMeza avatar Nov 04 '20 04:11 SergeiMeza

I figured it out. I was logged into my main apple id in the sandbox environment. To fix that, generate a sandbox apple id in app store connect, then login to the sandbox apple id you just created by going to Settings->App Store->Sandbox Account.

Bubba8291 avatar Nov 04 '20 04:11 Bubba8291

I figured it out. I was logged into my main apple id in the sandbox environment. To fix that, generate a sandbox apple id in app store connect, then login to the sandbox apple id you just created by going to Settings->App Store->Sandbox Account.

correct

SergeiMeza avatar Nov 09 '20 03:11 SergeiMeza

The issue got resolved on its own after waiting for one day. That was some kind of weird error from apple servers. Thanks for the support.

jithinjames571 avatar Nov 17 '20 15:11 jithinjames571

One thing that can cause this error is having a subscription without a duration set in App Store Connect.

Its possible to go through the flow and set the price without a duration for some reason.

nft2 avatar Feb 20 '21 22:02 nft2

One thing that can cause this error is having a subscription without a duration set in App Store Connect.

Its possible to go through the flow and set the price without a duration for some reason.

Thank you!!!

samilao101 avatar Nov 03 '21 10:11 samilao101

One thing that can cause this error is having a subscription without a duration set in App Store Connect.

Its possible to go through the flow and set the price without a duration for some reason.

Thank you!

imekinox avatar Jul 21 '22 22:07 imekinox

One thing that can cause this error is having a subscription without a duration set in App Store Connect.

Its possible to go through the flow and set the price without a duration for some reason.

oh haha

thank you

the mistake is stupid by myself

Nododo avatar Apr 13 '23 00:04 Nododo