forked from Mirrors/go-iap
status field not present in initial_buy
This commit is contained in:
@@ -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"`
|
||||
|
||||
@@ -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"`
|
||||
|
||||
|
||||
Reference in New Issue
Block a user