Skip to main content
Answer

iOS SDK, very similar ErrorCode cases

  • November 25, 2025
  • 1 reply
  • 12 views

Forum|alt.badge.img

Why does SDK provide this two similar error codes?

ErrorCode.receiptAlreadyInUseError = 7
ErrorCode.receiptInUseByOtherSubscriberError = 13

Is there any special considerations when handling those errors during `restorePurchases()`?

Best answer by alejandra-wetsch

Hey ​@kel-in

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!

1 reply

alejandra-wetsch
RevenueCat Staff
Forum|alt.badge.img+6

Hey ​@kel-in

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!