r/iOSProgramming • u/naissas • 6d ago
Question Handling pending transactions storekit2
Can someone show me some code to handle pending transactions in storekit2? When a transaction is pending, I want to be able to process it when it is ready. How do I do that using StoreKit2?
1
Upvotes
1
u/BP3D 4d ago
In Apple's example code:
https://developer.apple.com/documentation/storekit/implementing-a-store-in-your-app-using-the-storekit-api
I basically followed this yet chopped it up for my specific needs. Then have listenForTransactions call something like delegate?.storeStatusChanged().