Purchase
Stay organized with collections
Save and categorize content based on your preferences.
Purchase message capturing the plan that was purchased including details of the transaction.
JSON representation |
{
"planId": string,
"transactionId": string,
"transactionMessage": string,
"confirmationCode": string,
"planActivationTime": string
} |
Fields |
planId |
string
ID of the plan purchased.
|
transactionId |
string
Transaction ID from the purchase request.
|
transactionMessage |
string
Message to be shown to the user after the transaction.
|
confirmationCode |
string
DPA generated confirmation code for successful transaction. Required for Google Assistant integration.
|
planActivationTime |
string (Timestamp format)
Plan activation time. If planActivationTime is missing then GTAF shall assume that the plan has already been activated. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z" .
|
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2023-10-03 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2023-10-03 UTC."],[[["The purchase message is a JSON object that captures details of a purchased plan, including the plan ID, transaction details, and a confirmation code."],["This message includes a plan activation time, allowing for delayed activation, or assumes immediate activation if the field is missing."],["A confirmation code is generated for successful transactions and is especially important for integration with Google Assistant."],["The message contains a user-facing message intended to be displayed after the transaction is completed."]]],["The JSON represents a purchase message with details of a purchased plan. Key information includes the `planId`, `transactionId`, and a `transactionMessage` for the user. A `confirmationCode` is provided for successful transactions. The `planActivationTime` indicates when the plan activates, defaulting to immediate if absent. All fields are strings except for the timestamp format of `planActivationTime` in RFC3339 UTC \"Zulu\" format.\n"]]