Unknown In-App Purchase errors

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.

(https://developer.apple.com/library/ios/documentation/StoreKit/Reference/StoreKitTypes/index.html#//apple_ref/doc/constant_group/Store_Kit_Errors)



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,

Replies

I have the same problem,Can anyone knows how to solve this problem?

lao tie, mei yong de ,apple bu niao ni de !

have reported this issue many times, much more than I can remember, but Apple won't give any response about this, saying that it's confidential.

😉xiongdi henqiang

Tian wang gai di hu!