Skip to content

[in_app_purchase_android] Add obfuscated profile ID purchase param#12080

Open
lianshumin wants to merge 1 commit into
flutter:mainfrom
lianshumin:add-obfuscated-profile-id
Open

[in_app_purchase_android] Add obfuscated profile ID purchase param#12080
lianshumin wants to merge 1 commit into
flutter:mainfrom
lianshumin:add-obfuscated-profile-id

Conversation

@lianshumin

Copy link
Copy Markdown

Adds an optional obfuscatedProfileId parameter to GooglePlayPurchaseParam
and passes it through to Google Play Billing's
BillingFlowParams.Builder.setObfuscatedProfileId().

This keeps the API Android-specific, since setObfuscatedProfileId() is a
Google Play Billing API and has no StoreKit equivalent. Existing behavior is
unchanged because the new parameter is optional.

Fixes flutter/flutter#130128

Pre-Review Checklist

If you need help, consider asking for advice on the #hackers-new channel on Discord.

Note: The Flutter team is currently trialing the use of Gemini Code Assist for GitHub. Comments from the gemini-code-assist bot should not be taken as authoritative feedback from the Flutter team. If you find its comments useful you can update your code accordingly, but if you are unsure or disagree with the feedback, please feel free to wait for a Flutter team member's review for guidance on which automated comments should be addressed.

Footnotes

  1. Regular contributors who have demonstrated familiarity with the repository guidelines only need to comment if the PR is not auto-exempted by repo tooling. 2

@google-cla

google-cla Bot commented Jul 1, 2026

Copy link
Copy Markdown

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request adds support for passing an obfuscated profile ID (obfuscatedProfileId) in GooglePlayPurchaseParam for the Android in-app purchase implementation, propagating it to the billing flow parameters, and adding a corresponding unit test. The review feedback suggests documenting that obfuscatedProfileId requires applicationUserName to be specified, and updating the unit test to include both parameters for a more realistic scenario.

@lianshumin lianshumin force-pushed the add-obfuscated-profile-id branch from fb6cfd2 to ed03359 Compare July 1, 2026 09:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[in_app_purchase] does not support passing ObfuscatedProfileId to BillingFlowParams

1 participant