CompletePurchaseValueSpec

  • This content describes specifications for initiating in-app purchases of digital goods like in-app purchases and subscriptions, part of the deprecated Orders version 2 API.

  • The CompletePurchaseValueSpec includes skuId, which specifies the product being purchased, and developerPayload, an opaque string for developers to associate with the purchase.

  • The SkuId object identifies a SKU and includes fields for skuType, a string id, and packageName.

Defines specification for initiating in-app purchase related to digital goods Types of possible digital goods: in-app purchases, in-app subscriptions.

JSON representation
{
  "skuId": {
    object(SkuId)
  },
  "developerPayload": string
}
Fields
skuId

object(SkuId)

The product being purchased.

developerPayload

string

An opaque string specified by developer, which would associate with the purchase and is expected to return as part of purchase data.

SkuId

Identifier of a SKU.

JSON representation
{
  "skuType": enum(SkuType),
  "id": string,
  "packageName": string
}
Fields
skuType

enum(SkuType)

The type of SKU.

id

string

The identifier of the product SKU used for registration in the developer console.

packageName

string

The name of the android package under which the sku was registered.