Add missing notification verification fields

This commit is contained in:
Minhaz Ahmed Syrus
2018-11-06 14:25:38 +06:00
committed by sanjid133
parent 062102b0f3
commit 7ef252fde0

View File

@@ -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.