From 7ef252fde0e2f8e22b693356a0d4445c97aa0a7f Mon Sep 17 00:00:00 2001 From: Minhaz Ahmed Syrus Date: Tue, 6 Nov 2018 14:25:38 +0600 Subject: [PATCH] Add missing notification verification fields --- appstore/notification.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/appstore/notification.go b/appstore/notification.go index 4c3df6f..19af79e 100644 --- a/appstore/notification.go +++ b/appstore/notification.go @@ -71,9 +71,13 @@ type SubscriptionNotification struct { ExpirationIntent string `json:"expiration_intent"` // Auto renew info - AutoRenewStatus string `json:"auto_renew_status"` // false or true + AutoRenewStatus int `json:"auto_renew_status"` // false or true AutoRenewProductID string `json:"auto_renew_product_id"` + // HACK (msyrus): Separate Subscriptiton Notification from Notification verification response + Status int `json:"status"` + Receipt NotificationReceipt `json:"recipt"` + // Posted if the notification_type is RENEWAL or INTERACTIVE_RENEWAL, and only if the renewal is successful. // Posted also if the notification_type is INITIAL_BUY. // Not posted for notification_type CANCEL.