I have a question in regard with error on In-App Purchase.
I get an error code when SKPaymentTransactionStateFailed occurred, but sometimes I get an error code which is not documented in the following link.
The returnd value is not always same.
Those undocumented error codes are: 2037, 5020, -1005, -1001, 3004, -1003, 2008, 2010, 2004, 1003
Can anyone tell me the details of these error code?
I put a sample code of the error handling here for your reference.
switch (transaction.error.code) {
case SKErrorUnknown:
break;
case SKErrorClientInvalid:
break;
case SKErrorPaymentCancelled:
break;
case SKErrorPaymentInvalid:
break;
case SKErrorPaymentNotAllowed:
break;
case SKErrorStoreProductNotAvailable:
break;
default:
// the application returns an error code (2037, 5020, -1005, -1001, 3004, -1003, 2008, 2010, 2004, 1003) here.
break;
}
Best regards,