CompletePurchaseValueSpec

  • The CompletePurchaseValueSpec defines the specification for initiating in-app purchases for digital goods, including in-app purchases and subscriptions.

  • The JSON representation for CompletePurchaseValueSpec includes a skuId object and an optional developerPayload string.

  • The skuId object identifies the product being purchased and contains the skuType, a unique id, and the 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.