Versions in this module Expand all Collapse all v1 v1.0.0 May 23, 2019 Changes in this version + const ContentType + const ProductionURL + const SandboxURL + func HandleError(status int) error + type CancellationDate struct + CancellationDate string + CancellationDateMS string + CancellationDatePST string + type Client struct + ProductionURL string + SandboxURL string + func New() *Client + func NewWithClient(client *http.Client) *Client + func (c *Client) Verify(ctx context.Context, reqBody IAPRequest, result interface{}) error + type Environment string + const Production + const Sandbox + type ExpiresDate struct + ExpiresDate string + ExpiresDateFormatted string + ExpiresDateFormattedPST string + ExpiresDateMS string + ExpiresDatePST string + type IAPClient interface + Verify func(ctx context.Context, reqBody IAPRequest, resp interface{}) error + type IAPRequest struct + ExcludeOldTransactions bool + Password string + ReceiptData string + type IAPResponse struct + Environment Environment + IsRetryable bool + LatestReceipt string + LatestReceiptInfo []InApp + PendingRenewalInfo []PendingRenewalInfo + Receipt Receipt + Status int + type IAPResponseForIOS6 struct + AutoRenewProductID string + AutoRenewStatus int + CancellationReason string + ExpirationIntent string + IsInBillingRetryPeriod string + LatestReceiptInfo ReceiptForIOS6 + Receipt ReceiptForIOS6 + Status int + type InApp struct + CancellationReason string + IsInIntroOfferPeriod string + IsTrialPeriod string + OriginalTransactionID string + ProductID string + Quantity string + TransactionID string + WebOrderLineItemID string + type NotificationEnvironment string + const NotificationProduction + const NotificationSandbox + type NotificationExpiresDate struct + ExpiresDateMS string + ExpiresDatePST string + ExpiresDateUTC string + type NotificationReceipt struct + AppItemID string + BID string + BVRS string + IsInIntroOfferPeriod string + IsTrialPeriod string + ItemID string + OriginalTransactionID string + ProductID string + Quantity string + TransactionID string + UniqueIdentifier string + UniqueVendorIdentifier string + VersionExternalIdentifier string + WebOrderLineItemID string + type NotificationType string + const NotificationTypeCancel + const NotificationTypeDidChangeRenewalPreference + const NotificationTypeDidChangeRenewalStatus + const NotificationTypeInitialBuy + const NotificationTypeInteractiveRenewal + const NotificationTypeRenewal + type OriginalPurchaseDate struct + OriginalPurchaseDate string + OriginalPurchaseDateMS string + OriginalPurchaseDatePST string + type PendingRenewalInfo struct + OriginalTransactionID string + ProductID string + SubscriptionAutoRenewProductID string + SubscriptionAutoRenewStatus string + SubscriptionExpirationIntent string + SubscriptionPriceConsentStatus string + SubscriptionRetryFlag string + type PurchaseDate struct + PurchaseDate string + PurchaseDateMS string + PurchaseDatePST string + type Receipt struct + AdamID int64 + AppItemID numericString + ApplicationVersion string + BundleID string + DownloadID int64 + InApp []InApp + OriginalApplicationVersion string + ReceiptType string + VersionExternalIdentifier numericString + type ReceiptCreationDate struct + CreationDate string + CreationDateMS string + CreationDatePST string + type ReceiptForIOS6 struct + AppItemID numericString + BID string + BVRS string + IsInIntroOfferPeriod string + IsTrialPeriod string + ItemID string + OriginalTransactionID string + ProductID string + Quantity string + TransactionID string + UniqueIdentifier string + UniqueVendorIdentifier string + VersionExternalIdentifier numericString + WebOrderLineItemID string + type RequestDate struct + RequestDate string + RequestDateMS string + RequestDatePST string + type StatusResponse struct + Status int + type SubscriptionNotification struct + AutoRenewAdamID string + AutoRenewProductID string + AutoRenewStatus string + Environment NotificationEnvironment + ExpirationIntent string + LatestExpiredReceipt string + LatestExpiredReceiptInfo NotificationReceipt + LatestReceipt string + LatestReceiptInfo NotificationReceipt + NotificationType NotificationType + OriginalTransactionID string + Password string + WebOrderLineItemID string