How to verify receipt with AppStoreServerAPI

Hello everyone. I'm try to get out of verifyReceipt endpoint by following this link https://developer.apple.com/videos/play/wwdc2023/10143/ at the end of video so after using ReceiptUtility extract receipt data to get transationId then using getTransactionHistory to do what? it doesn't clear in the video. Where I can get document on how to verify receipt with AppStoreServerAPI.

Replies

You can use the returned transactions to provision content to the customer.

should we use getTransactionInfo instead then check on game server if we grant reward to user or not if not then grant reward to user then save transactionId to the database to track that transation status is finished?