Handling refund notifications for consumable in-app-purchases
Asked Answered
B

0

6

According to Apple documentation, to identify the transaction, productId and relevant dates, we should "Find the most-recent transaction for the product_id in the unified_receipt.latest_receipt_info".

My question is how do I find out the product_id? My app has multiple consumable in-app-purchases.

One option I was exploring was to [locally receipt validate]2 the receipt blob in the responseBody.unified_receipt.latest_receipt field. But I need the identifierForVendorId for that, and the identifierForVendorId isn't sent in the request.

I am not mentioning remote receipt validation because Apple has clearly stated in the documentation that "Refunded transactions are not present in the JSON response when you call the verifyReceipt endpoint with a receipt that contains refunded transactions, except for auto-renewable subscriptions.".

Thank you! Looking forward to hear how others have implemented refunds for their non-subscription products.

Bursa answered 19/8, 2020 at 8:8 Comment(3)
Why do you need the identifierForVendor? The product ids are your product ids. You should know what they are.Fencesitter
I have lots of product_ids. Want to treat it as an opaque string. Additionally, we wouldn't know which consumable product_id got refunded if the request has multiple receipts.Bursa
Have you found a solution for this? Do you have your own server where you check against this?Renatarenate

© 2022 - 2024 — McMap. All rights reserved.