CompletePurchaseValueSpec
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
定义发起与数字商品相关的应用内购买的规范。可能的数字商品类型:应用内购买、应用内订阅。
JSON 表示法 |
{
"skuId": {
object (SkuId )
},
"developerPayload": string
} |
字段 |
skuId |
object (SkuId )
正在购买的商品。
|
developerPayload |
string
开发者指定的不透明字符串,与购买交易相关联,并应作为购买数据的一部分返回。
|
SkuId
JSON 表示法 |
{
"skuType": enum (SkuType ),
"id": string,
"packageName": string
} |
字段 |
skuType |
enum (SkuType )
SKU 的类型。
|
id |
string
用于在开发者控制台中注册的产品 SKU 的标识符。
|
packageName |
string
注册 SKU 的 Android 软件包的名称。
|
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-28。
[null,null,["最后更新时间 (UTC):2025-07-28。"],[[["\u003cp\u003eThis document defines specifications for initiating in-app purchases, encompassing both one-time purchases and subscriptions for digital goods.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eCompletePurchaseValueSpec\u003c/code\u003e object contains \u003ccode\u003eskuId\u003c/code\u003e for the product and \u003ccode\u003edeveloperPayload\u003c/code\u003e for developer-specific data.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eSkuId\u003c/code\u003e object identifies a product with its type (\u003ccode\u003eskuType\u003c/code\u003e), a unique identifier (\u003ccode\u003eid\u003c/code\u003e), and the associated Android package name (\u003ccode\u003epackageName\u003c/code\u003e).\u003c/p\u003e\n"]]],["The content outlines specifications for in-app purchases of digital goods (purchases, subscriptions). Key components include a JSON structure with `skuId` (product identifier) and `developerPayload` (developer-defined string for purchase association). `SkuId` further specifies `skuType` (type of SKU), `id` (product SKU identifier), and `packageName` (Android package name). These details define how to structure data for initiating and tracking digital goods transactions.\n"],null,["# CompletePurchaseValueSpec\n\n- [JSON representation](#SCHEMA_REPRESENTATION)\n- [SkuId](#SkuId)\n - [JSON representation](#SkuId.SCHEMA_REPRESENTATION)\n\nDefines specification for initiating in-app purchase related to digital goods Types of possible digital goods: in-app purchases, in-app subscriptions.\n\n| JSON representation ||\n|------------------------------------------------------------------------------------------------------------------------------------------------------|---|\n| ``` { \"skuId\": { object (/assistant/df-asdk/reference/webhook/rest/Shared.Types/CompletePurchaseValueSpec#SkuId) }, \"developerPayload\": string } ``` |\n\n| Fields ||\n|--------------------|-----------------------------------------------------------------------------------------------------------------------------------------------|\n| `skuId` | `object (`[SkuId](/assistant/df-asdk/reference/webhook/rest/Shared.Types/CompletePurchaseValueSpec#SkuId)`)` The product being purchased. |\n| `developerPayload` | `string` An opaque string specified by developer, which would associate with the purchase and is expected to return as part of purchase data. |\n\nSkuId\n-----\n\nIdentifier of a SKU.\n\n| JSON representation ||\n|-----------------------------------------------------------------------------------------------------------------------------------|---|\n| ``` { \"skuType\": enum (/assistant/df-asdk/reference/webhook/rest/Shared.Types/SkuType), \"id\": string, \"packageName\": string } ``` |\n\n| Fields ||\n|---------------|-------------------------------------------------------------------------------------------------------|\n| `skuType` | `enum (`[SkuType](/assistant/df-asdk/reference/webhook/rest/Shared.Types/SkuType)`)` The type of SKU. |\n| `id` | `string` The identifier of the product SKU used for registration in the developer console. |\n| `packageName` | `string` The name of the android package under which the sku was registered. |"]]