Post not yet marked as solved
Post marked as unsolved with 2 replies, 719 views
Hello, who can axplain how to manage with ranking subscription logic https://developer.apple.com/app-store/subscriptions/#ranking. In our application we decided implement it, but have some troubles. First problem is we don't know how to count "refund of the prorated amount of their original subscription" after upgrade. We got notification with "is_upgraded":"true" for one of subscriptions, after verification - https://developer.apple.com/documentation/appstorereceipts/responsebody/latest_receipt_info, but there is no field cancellation_date_ms - https://developer.apple.com/documentation/appstorereceipts/cancellation_date_ms which should indicate upgrade time. Without that filed we can not count refunded price... Does anyone know some about this logic?
Second is new notification field unified_receipt - https://developer.apple.com/documentation/appstoreservernotifications/responsebody#discussion wich should replace old fields latest_receipt_info - https://developer.apple.com/forums/thread/664539 and latest _expired_receipt_info. - https://developer.apple.com/forums/thread/664539 But problem is old fileds is objects for current notification while latest_receipt_info - https://developer.apple.com/documentation/appstorereceipts/responsebody/latest_receipt_info in unified receipt is "an array that contains the latest 100 in-app purchase transactions of the decoded value in latest_receipt". As how i am understand - we should find in this array latest transaction with highest transactionId and that should be our sought transaction. Or not?