Use interface argument for IAP response instead of the library defined struct

This commit is contained in:
Jumpei Tsuji
2016-08-05 11:43:55 +09:00
parent e94030ddae
commit e9d5da1f8f
4 changed files with 17 additions and 11 deletions

View File

@@ -73,6 +73,10 @@ type (
}
// The IAPResponse type has the response properties
// We defined each field by the current IAP response, but some fields are not mentioned
// in the following Apple's document;
// https://developer.apple.com/library/ios/releasenotes/General/ValidateAppStoreReceipt/Chapters/ReceiptFields.html
// If you get other types or fileds from the IAP response, you should use the struct you defined.
IAPResponse struct {
Status int `json:"status"`
Environment string `json:"environment"`