Check these threads.
https://stackoverflow.com/questions/77355821/storekit-unable-to-resubscribe-re-buy-expired-subscription
and https://developer.apple.com/forums/thread/723126
In short you might not be finishing every transaction in your app resulting in stale transaction in unfinished queue.
Topic:
Developer Tools & Services
SubTopic:
Xcode
Tags: