Hello!
I wounder if there any trusted instructions on how to get valid receipt_info from unified_receipt in notifications body. We strugle with it because it is a list and may contain information about different purchases.
Things get more interesting when changes to subscription happen on last day of subscription period, you may find receipt_info about old product_id and about new product_id.
We've developed following approach:
I wounder if there any trusted instructions on how to get valid receipt_info from unified_receipt in notifications body. We strugle with it because it is a list and may contain information about different purchases.
Things get more interesting when changes to subscription happen on last day of subscription period, you may find receipt_info about old product_id and about new product_id.
We've developed following approach:
Find pending_renewal_info with auto_renew_product_id that matches auto_renew_product_id on top level of notification object.
Look for first receipt_info that has the same product_id as pending_renewal_info object found on previous step.