Versions in this module Expand all Collapse all v1 v1.0.0 May 23, 2019 Changes in this version + func VerifySignature(base64EncodedPublicKey string, receipt []byte, signature string) (isValid bool, err error) + type Client struct + func New(jsonKey []byte) (*Client, error) + func NewWithClient(jsonKey []byte, cli *http.Client) (*Client, error) + func (c *Client) CancelSubscription(ctx context.Context, packageName string, subscriptionID string, token string) error + func (c *Client) RefundSubscription(ctx context.Context, packageName string, subscriptionID string, token string) error + func (c *Client) RevokeSubscription(ctx context.Context, packageName string, subscriptionID string, token string) error + func (c *Client) VerifyProduct(ctx context.Context, packageName string, productID string, token string) (*androidpublisher.ProductPurchase, error) + func (c *Client) VerifySubscription(ctx context.Context, packageName string, subscriptionID string, token string) (*androidpublisher.SubscriptionPurchase, error) + type DeveloperNotification struct + EventTimeMillis string + PackageName string + SubscriptionNotification SubscriptionNotification + TestNotification SubscriptionNotification + Version string + type IABClient interface + CancelSubscription func(context.Context, string, string, string) error + RefundSubscription func(context.Context, string, string, string) error + RevokeSubscription func(context.Context, string, string, string) error + VerifyProduct func(context.Context, string, string, string) (*androidpublisher.ProductPurchase, error) + VerifySubscription func(context.Context, string, string, string) (*androidpublisher.SubscriptionPurchase, error) + type NotificationType int + const NotificationTypeAccountHold + const NotificationTypeCanceled + const NotificationTypeGracePeriod + const NotificationTypePurchased + const NotificationTypeReactivated + const NotificationTypeRecovered + const NotificationTypeRenewed + type SubscriptionNotification struct + NotificationType NotificationType + PurchaseToken string + SubscriptionID string + Version string