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: 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.
Is it a proper way to find correct information about subscription from notification? We have this problem in a first place because notifications seems to inform us about one subscription only, i.e. notification_type caries some semantic and it should be applied to one subscription only.
Selecting any option will automatically load the page