iOS StoreKit2 - Is there anyway to find which payments are still pending

569 Views Asked by At

I have started using the new StoreKit2 APIs. I wanted to know if there is a way to see if a product is still pending after the app is relaunched.

In the new APIs, a purchase is executed by calling purchase() on a Product"

let result = try await product.purchase()

In the result one gets a set of values through which one can see if the item was paid for, or payment is still pending.

When restarting, one can call Transaction.currentEntitlements which checks if the product was purchased. However, I want to be able to show the user if the transaction has not as yet been completed for them to see that it is still pending.

Is there anyway to get that information for a product?

Thanks
Reza

0

There are 0 best solutions below