iosin-app-purchasesubscriptionstorekitauto-renewing

How do you determine the customer/user when receiving an Apple statusUpdateNotification for auto renewing subscriptions?


So, Apple has implemented their server to server notification for various events in the subscription lifecycle.

I was very excited to get going on this but then it seems there is some sort of glaring thing I'm missing. I'm not sure how to match the notification data to a user on my side. I'm surprised there isn't a uid/apple id passed with the notification to match on. Maybe I'm supposed to be using the original_transaction_id but its unclear whether that is unique.

Does anyone know what to use in the status response?


Solution

  • I use the original_transaction_id to match the event to a user.