receiving SKErrorDomain for In App Purchase in production

I have an app published in app store, with subscription feature. I am sure it works fine, as i see the payments being successfully processed in production environment. Off late i see the following error in my logs, I am not able to identify what error this is. Can anyone kindly help me in identifying this error, what is causing this and how to fix this.

Error Domain=SKErrorDomain Code=2 "(null)" UserInfo={NSUnderlyingError=0x282b7cfc0 {Error Domain=ASDErrorDomain Code=907 "Unhandled exception" UserInfo={NSUnderlyingError=0x282b7cb40 {Error Domain=AMSErrorDomain Code=6 "Payment Sheet Failed" UserInfo={NSLocalizedDescription=Payment Sheet Failed, NSLocalizedFailureReason=Payment sheet cancelled}}, NSLocalizedFailureReason=An unknown error occurred, NSLocalizedDescription=Unhandled exception}}}

Thanks, SP

1 Answer

Here is the SKError with Code 2The obvious case is, your users are just initiating a purchase and later canceling it on payment prompt or don't have a payment method setup.

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

You Might Also Like