Здесь показаны различия между двумя версиями данной страницы.
| Предыдущая версия справа и слева Предыдущая версия Следующая версия | Предыдущая версия | ||
|
v6.buy.inapp [2022/06/10 14:05] serg |
v6.buy.inapp [2022/06/10 14:06] (текущий) serg |
||
|---|---|---|---|
| Строка 14: | Строка 14: | ||
| BundleVer string | BundleVer string | ||
| GAID string | GAID string | ||
| - | GaidType models.TGAIDType | + | GaidType int8 |
| ProductType TProductType | ProductType TProductType | ||
| ProductId string | ProductId string | ||
| Строка 31: | Строка 31: | ||
| === Response === | === Response === | ||
| <code> | <code> | ||
| - | { | + | returns TPurchase |
| - | TPurchase | + | |
| - | } | + | |
| - | //TPurchase purchase bind | ||
| type TPurchase struct { | type TPurchase struct { | ||
| ProductId string `json:"pid"` | ProductId string `json:"pid"` | ||
| Quantity int64 `json:"q"` | Quantity int64 `json:"q"` | ||
| - | PurchaseState models.TYovoPurchaseState `json:"ps"` //-> 1 subscription valid | + | PurchaseState models.TYovoPurchaseState `json:"ps"` |
| Acknowledged int64 `json:"a"` | Acknowledged int64 `json:"a"` | ||
| OrderId string `json:"o"` | OrderId string `json:"o"` | ||
| Строка 80: | Строка 77: | ||
| **Data** | **Data** | ||
| <code> | <code> | ||
| - | {"Error":"some error"} | + | {"E":"some error"} |
| </code> | </code> | ||