[StoreKit2] Retrieving transaction by transction ID

Is there a way to get a transaction by the transaction ID? I understand that there is a way to get the latest transaction for a specific product ID, but that isn't helpful when attempting to look up a specific transaction.

The reason for this is that once a purchase is made and verified on the client device, a request is made to a backend server to do some extra validation and to provide the user with the required entitlement for that purchase. Once the server completes this, it responds to the client, and the client app needs to look up the transaction in order to call finish() on it.

Would it make sense to get the unfinished transactions and loop through them to match the required transaction ID? What I'm referring to is this: https://developer.apple.com/documentation/storekit/transaction/3856631-unfinished

Another question, is it possible for there to be more than one unfinished transaction for the same product?

[StoreKit2] Retrieving transaction by transction ID
 
 
Q