Stay organized with collections
Save and categorize content based on your preferences.
google::play::billing::LaunchPurchaseFlowParams
#include <billing/models.h>
Params for launching the purchase flow.
Summary
See BillingClient::LaunchPurchaseFlow for more details.
Public attributes
is_offer_personalized
bool google::play::billing::LaunchPurchaseFlowParams::is_offer_personalized = false
Specifies whether the offer is personalized to the buyer.
This is used to disclose to the buyer that the product's price was personalized using automated decision-making.
You must consult Art. 6 (1) (ea) CRD of the Consumer Rights Directive 2011/83/EU to determine if the price you are offering to users is personalized.
obfuscated_account_id
std::string google::play::billing::LaunchPurchaseFlowParams::obfuscated_account_id
The obfuscated account id for the purchase.
If non-empty, specifies an optional obfuscated string that is uniquely associated with the purchaser's user account in your game.
If you specify this value, Google Play can use it to detect irregular activity, such as many devices making purchases on the same account in a short period of time. Do not use this field to store any Personally Identifiable Information (PII) such as emails in cleartext. Attempting to store PII in this field will result in purchases being blocked. Google Play recommends that you use either encryption or a one-way hash to generate an obfuscated identifier to send to Google Play.
This identifier is limited to 64 characters.
Leave empty if you do not want to specify an obfuscated account id.
obfuscated_profile_id
std::string google::play::billing::LaunchPurchaseFlowParams::obfuscated_profile_id
The obfuscated profile id for the purchase.
If non-empty, specifies an optional obfuscated string that is uniquely associated with the purchaser's user profile in your game.
If you specify this value, Google Play can use it to detect irregular activity, such as many devices making purchases on the same account in a short period of time. Do not use this field to store any Personally Identifiable Information (PII) such as emails in cleartext. Attempting to store PII in this field will result in purchases being blocked. Google Play recommends that you use either encryption or a one-way hash to generate an obfuscated identifier to send to Google Play.
This identifier is limited to 64 characters.
Leave empty if you do not want to specify an obfuscated profile id.
offer_token
std::string google::play::billing::LaunchPurchaseFlowParams::offer_token
Unique token representing the product offer that is being purchased.
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 2025-04-10 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 2025-04-10 UTC."],[],[],null,["# google::play::billing::LaunchPurchaseFlowParams Struct Reference\n\ngoogle::play::billing::LaunchPurchaseFlowParams\n===============================================\n\n\n`#include \u003cbilling/models.h\u003e`\n\nParams for launching the purchase flow.\n\nSummary\n-------\n\nSee [BillingClient::LaunchPurchaseFlow](/games/playgames/native-pc/reference/class/google/play/billing/billing-client#classgoogle_1_1play_1_1billing_1_1_billing_client_1a5b7a22b5fe4fbfe92079c8fb2b4dc782) for more details.\n\n| ### Public attributes ||\n|----------------------------------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------|\n| [is_offer_personalized](#structgoogle_1_1play_1_1billing_1_1_launch_purchase_flow_params_1a951c79ca0e0821a17c40cf0ceb62b630)` = false` | `bool` Specifies whether the offer is personalized to the buyer. |\n| [obfuscated_account_id](#structgoogle_1_1play_1_1billing_1_1_launch_purchase_flow_params_1a5fad067af07ff63cd4b03b8ccc18065d) | `std::string` The obfuscated account id for the purchase. |\n| [obfuscated_profile_id](#structgoogle_1_1play_1_1billing_1_1_launch_purchase_flow_params_1aaee08fdfa1051380d9eea657adef05a7) | `std::string` The obfuscated profile id for the purchase. |\n| [offer_token](#structgoogle_1_1play_1_1billing_1_1_launch_purchase_flow_params_1a07c025a031fc18b00256d2e97462b218) | `std::string` Unique token representing the product offer that is being purchased. |\n\nPublic attributes\n-----------------\n\n### is_offer_personalized\n\n```scdoc\nbool google::play::billing::LaunchPurchaseFlowParams::is_offer_personalized = false\n``` \nSpecifies whether the offer is personalized to the buyer.\n\nThis is used to disclose to the buyer that the product's price was personalized using automated decision-making.\n\nYou must consult Art. 6 (1) (ea) CRD of the Consumer Rights Directive 2011/83/EU to determine if the price you are offering to users is personalized. \n\n### obfuscated_account_id\n\n```scdoc\nstd::string google::play::billing::LaunchPurchaseFlowParams::obfuscated_account_id\n``` \nThe obfuscated account id for the purchase.\n\nIf non-empty, specifies an optional obfuscated string that is uniquely associated with the purchaser's user account in your game.\n\nIf you specify this value, Google Play can use it to detect irregular activity, such as many devices making purchases on the same account in a short period of time. Do not use this field to store any Personally Identifiable Information (PII) such as emails in cleartext. Attempting to store PII in this field will result in purchases being blocked. Google Play recommends that you use either encryption or a one-way hash to generate an obfuscated identifier to send to Google Play.\n\nThis identifier is limited to 64 characters.\n\nLeave empty if you do not want to specify an obfuscated account id. \n\n### obfuscated_profile_id\n\n```scdoc\nstd::string google::play::billing::LaunchPurchaseFlowParams::obfuscated_profile_id\n``` \nThe obfuscated profile id for the purchase.\n\nIf non-empty, specifies an optional obfuscated string that is uniquely associated with the purchaser's user profile in your game.\n\nIf you specify this value, Google Play can use it to detect irregular activity, such as many devices making purchases on the same account in a short period of time. Do not use this field to store any Personally Identifiable Information (PII) such as emails in cleartext. Attempting to store PII in this field will result in purchases being blocked. Google Play recommends that you use either encryption or a one-way hash to generate an obfuscated identifier to send to Google Play.\n\nThis identifier is limited to 64 characters.\n\nLeave empty if you do not want to specify an obfuscated profile id. \n\n### offer_token\n\n```scdoc\nstd::string google::play::billing::LaunchPurchaseFlowParams::offer_token\n``` \nUnique token representing the product offer that is being purchased."]]