setObfuscatedAccountId

open fun setObfuscatedAccountId(@Nullable obfuscatedAccountId: String)

Sets an obfuscated identifier for the user's in-app account, attached to every subsequent billing flow.

Google uses this to detect fraudulent transactions and to let you tie a purchase back to an account without exposing personal data. Google recommends a one-way hash of the account id — never the raw email, user id, or anything else that identifies the person. The value must be at most 64 characters; longer values are rejected by the billing library.

Set it once after sign-in and clear it (pass null) on sign-out.

Since

4.4.0

Parameters

obfuscatedAccountId

Hashed account identifier, or null to clear.