===== Check one purchase (Buy product) ===== $server/api/bp?id=1&token=12345678901234567890123456789012 ==== Post params ==== type tBuyInput struct { OSint models.TOs Bundle string BundleVer string GAID string GaidType int8 ProductType TProductType ProductId string OrderId string PurchaseToken string } TProductType enum const ( Consumable TProductType = iota Non_consumable Subscription ) === Response === returns TPurchase type TPurchase struct { ProductId string `json:"pid"` Quantity int64 `json:"q"` PurchaseState models.TYovoPurchaseState `json:"ps"` Acknowledged int64 `json:"a"` OrderId string `json:"o"` PurchaseToken string `json:"pt"` PurchaseTime string `json:"t"` ConsumptionState int64 `json:"cs"` PurchaseType TPurchaseType `json:"pty"` DeveloperPayload string `json:"dp"` ProductType TProductType `json:"prt"` ExpiryTimeMillis int64 `json:"et"` Err string `json:"E"` kind string } TYovoPurchaseState enum const ( PS_UNKNOWN = -1 PS_PURCHASED = 0 PS_CANCELED = 1 PS_PENDING = 2 PS_REFUNDED = 3 ) type TPurchaseType enum const ( PTTest TPurchaseType = iota PTPromo PTRewarded ) type TProductType enum const ( Consumable TProductType = iota Non_consumable Subscription ) === Not ok Response === **Data** {"E":"some error"}