Versions in this module Expand all Collapse all v0 v0.1.0 Nov 22, 2023 Changes in this version + const ACKNOWLEDGE + const BASEURL + const CONSUME + type MiGlobalIAP struct + AppID string + AppKey string + AppSecret string + BaseUrl string + PackageName string + func New(id, key, secret, pkg string, url ...string) *MiGlobalIAP + func (mi *MiGlobalIAP) Acknowledge(pid, token string, payload ...string) (bool, error) + func (mi *MiGlobalIAP) Consume(pid, token string, payload ...string) (bool, error) + func (mi *MiGlobalIAP) PurchaseStatus(pid, token string) (*PurchaseResult, error) + type PurchaseResult struct + AcknowledgementState int + ConsumptionState int + DeveloperPayload string + Kind string + ObfuscatedExternalAccountId string + ObfuscatedExternalProfileId string + OrderId string + ProductId string + PurchaseState int + PurchaseTimeMillis string + PurchaseToken string + PurchaseType int + Quantity int + RegionCode string + func (s *PurchaseResult) Acknowledgement() bool + func (s *PurchaseResult) Consumption() bool + type ResponseError struct + Code int + Message string + func (e *ResponseError) Error() string