status field not present in initial_buy

This commit is contained in:
sanjid133
2019-08-18 13:33:20 +06:00
parent e0f6e608e7
commit 8414aff344
2 changed files with 2 additions and 2 deletions

View File

@@ -141,7 +141,7 @@ type (
// The IAPLatestResponse type has the response properties
// If you use latest_receipt as token to verify, response should be like following struct
IAPLatestResponse struct {
Status int `json:"status"`
Status int `json:"status,omitempty"`
Receipt InApp `json:"receipt"`
LatestReceiptInfo InApp `json:"latest_receipt_info,omitempty"`
LatestExpiredReceiptInfo InApp `json:"latest_expired_receipt_info,omitempty"`

View File

@@ -75,7 +75,7 @@ type SubscriptionNotification struct {
AutoRenewProductID string `json:"auto_renew_product_id"`
// HACK (msyrus): Separate Subscriptiton Notification from Notification verification response
Status int `json:"status"`
Status int `json:"status,omitempty"`
Receipt NotificationReceipt `json:"recipt"`
SubscriptionRetryFlag string `json:"is_in_billing_retry_period"`