CompletePurchaseValueSpec

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

  • The specification includes a skuId object to identify the product being purchased and an optional developerPayload string for developer-specified data.

  • The SkuId itself contains the type of SKU, its identifier from the developer console, and the Android package name under which it was registered.

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.