Why does SDK provide this two similar error codes?
ErrorCode.receiptAlreadyInUseError = 7
ErrorCode.receiptInUseByOtherSubscriberError = 13Is there any special considerations when handling those errors during `restorePurchases()`?
Why does SDK provide this two similar error codes?
ErrorCode.receiptAlreadyInUseError = 7
ErrorCode.receiptInUseByOtherSubscriberError = 13Is there any special considerations when handling those errors during `restorePurchases()`?
Best answer by alejandra-wetsch
Hey
Thank you for reaching out. I’ll be happy to help!
That’s a good question! Both errors refer to the same. ErrorCode.receiptInUseByOtherSubscriberError was actually removed a few years ago in favor of ErrorCode.receiptAlreadyInUseError and then re-added so that applications using it wouldn’t break. If you’re planning to check for this error, then I would recommend using ErrorCode.receiptAlreadyInUseError only.
I hope this helps!
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.