google::play::billing::ProductPurchaseDetails

#include <billing/models.h>

Details for a purchased product.

Summary

Public attributes

is_acknowledged
bool
The acknowledgement state of this purchase.
obfuscated_account_id
std::string
The obfuscated account id for the purchase.
obfuscated_profile_id
std::string
The obfsucated profile id for the purchase.
order_id
std::string
A unique order identifier for the transaction.
package_name
std::string
The package name of the game associated with this purchase.
product_id
std::string
Unique identifier for the product.
purchase_state
PurchaseState
State of the purchase.
purchase_time_epoch_seconds
int64_t
The time the purchase was made in seconds since the epoch.
purchase_token
std::string
Token representing the purchase.
quantity
int64_t
The quantity of the purchase.

Public attributes

is_acknowledged

bool google::play::billing::ProductPurchaseDetails::is_acknowledged

The acknowledgement state of this purchase.

obfuscated_account_id

std::string google::play::billing::ProductPurchaseDetails::obfuscated_account_id

The obfuscated account id for the purchase.

An obfuscated version of the ID that is uniquely associated with the user's account in the game. Only present (non-empty) if specified when the purchase flow was launched.

See LaunchPurchaseFlowParams::obfuscated_account_id for more details.

obfuscated_profile_id

std::string google::play::billing::ProductPurchaseDetails::obfuscated_profile_id

The obfsucated profile id for the purchase.

An obfuscated version of the id that is uniquely associated with the user's profile in the game. Only present (non-empty) if specified when the purchase flow was launched.

See LaunchPurchaseFlowParams::obfuscated_profile_id for more details.

order_id

std::string google::play::billing::ProductPurchaseDetails::order_id

A unique order identifier for the transaction.

This identifier corresponds to the Google order ID.

The order ID will be an empty string if the purchase is in the PurchaseState::kPurchaseStatePending state and populated if the purchase has transitioned to the PurchaseState::kPurchaseStatePurchased state.

package_name

std::string google::play::billing::ProductPurchaseDetails::package_name

The package name of the game associated with this purchase.

product_id

std::string google::play::billing::ProductPurchaseDetails::product_id

Unique identifier for the product.

purchase_state

PurchaseState google::play::billing::ProductPurchaseDetails::purchase_state

State of the purchase.

purchase_time_epoch_seconds

int64_t google::play::billing::ProductPurchaseDetails::purchase_time_epoch_seconds

The time the purchase was made in seconds since the epoch.

purchase_token

std::string google::play::billing::ProductPurchaseDetails::purchase_token

Token representing the purchase.

quantity

int64_t google::play::billing::ProductPurchaseDetails::quantity

The quantity of the purchase.