Skip to content

[in_app_purchase_android] GooglePlayPurchaseParam add possibility set selected offerToken - #8452

Merged
auto-submit[bot] merged 15 commits into
flutter:mainfrom
rmasarovic:addSubscriptionOfferToken
Jun 3, 2025
Merged

auto-submit[bot] merged 15 commits into
flutter:mainfrom
rmasarovic:addSubscriptionOfferToken

Conversation

@rmasarovic

Copy link
Copy Markdown
Contributor

Option to add purchase parameters in GooglePlayPurchaseParam to set selected offer token. In subscribtion with multiple offer in base plan, the user can choose which offer to want buy and then this selected offer token is sent to the billing flow

flutter/flutter#150348

Pre-launch Checklist

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

@rmasarovic
rmasarovic requested a review from gmackall as a code owner January 17, 2025 10:16
@stuartmorgan-g stuartmorgan-g added the triage-android Should be looked at in Android triage label Feb 11, 2025

@gmackall gmackall left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This completely fell off my review queue, I'm sorry for the delay here.

This mostly LGTM, but before we can land can you

  1. resolve the conflicts
  2. Fix the format failure (you can see this either from the logs of the failing Linux repo_checks check (link1 -> link2) or by following the formatting readme (basically just dart format the dart code here).
  3. Update the CHANGELOG to follow the style guide https://github.com/flutter/flutter/blob/master/docs/ecosystem/contributing/README.md#changelog-style (maybe something like "Adds support for setting the offerToken on GooglePlayPurchaseParam.)

Comment thread packages/in_app_purchase/in_app_purchase_android/CHANGELOG.md Outdated
Comment thread packages/in_app_purchase/in_app_purchase/CHANGELOG.md Outdated
@gmackall

Copy link
Copy Markdown
Member

@rmasarovic Are you still working on this PR? I can take over making the changelog changes if not, let me know.

@gmackall

gmackall commented May 13, 2025 •

Copy link
Copy Markdown
Member

@rmasarovic I've updated the PR according to my comments as it appeared you were no longer working on it, hopefully that is ok!

Will get this reviewed by other team members, to avoid reviewing my own changes.

@gmackall
gmackall requested a review from a team May 13, 2025 20:09
@gmackall
gmackall marked this pull request as draft May 20, 2025 23:26
@gmackall
gmackall marked this pull request as ready for review May 20, 2025 23:50

@rmasarovic rmasarovic left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

ok

@bparrishMines bparrishMines 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.

LGTM

/// downgrading an existing subscription.
final ChangeSubscriptionParam? changeSubscriptionParam;

/// For One-time product, "offerToken" shouldn't be filled.

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.

nit: Add a space after first sentence.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

added a line break

@gmackall gmackall added the autosubmit Merge PR when tree becomes green via auto submit App label Jun 3, 2025
@auto-submit auto-submit Bot removed the autosubmit Merge PR when tree becomes green via auto submit App label Jun 3, 2025
@auto-submit

auto-submit Bot commented Jun 3, 2025

Copy link
Copy Markdown
Contributor

autosubmit label was removed for flutter/packages/8452, because This PR has not met approval requirements for merging. The PR author is not a member of flutter-hackers and needs 1 more review(s) in order to merge this PR.

  • Merge guidelines: A PR needs at least one approved review if the author is already part of flutter-hackers or two member reviews if the author is not a flutter-hacker before re-applying the autosubmit label. Reviewers: If you left a comment approving, please use the "approve" review action instead.

@gmackall gmackall added the autosubmit Merge PR when tree becomes green via auto submit App label Jun 3, 2025
@auto-submit
auto-submit Bot merged commit 2bac766 into flutter:main Jun 3, 2025
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Jun 4, 2025
github-merge-queue Bot pushed a commit to flutter/flutter that referenced this pull request Jun 4, 2025
flutter/packages@1765c95...2bac766

2025-06-03 [email protected] [in_app_purchase_android]
GooglePlayPurchaseParam add possibility set selected offerToken
(flutter/packages#8452)
2025-06-03 [email protected] [camera] 🐛 Fix toggles overflow in the
camera example (flutter/packages#9274)
2025-06-03 [email protected] [shared_preferences] Remove duplicate
integration test (flutter/packages#9368)
2025-06-03 [email protected] [pointer_interceptor_web]
Fix unresponsive input above PointerInterceptor on Safari and Firefox.
(flutter/packages#9362)

If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://autoroll.skia.org/r/flutter-packages-flutter-autoroll
Please CC [email protected] on the revert to ensure that a
human
is aware of the problem.

To file a bug in Flutter:
https://github.com/flutter/flutter/issues/new/choose

To report a problem with the AutoRoller itself, please file a bug:
https://issues.skia.org/issues/new?component=1389291&template=1850622

Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
Ortes pushed a commit to Ortes/packages that referenced this pull request Jun 25, 2025
… selected offerToken (flutter#8452)

Option to add purchase parameters in GooglePlayPurchaseParam to set selected offer token. In subscribtion with multiple offer in base plan, the user can choose which offer to want buy and then this selected offer token is sent to the billing flow

flutter/flutter#150348
creatorpiyush pushed a commit to creatorpiyush/packages that referenced this pull request Jun 10, 2026
… selected offerToken (flutter#8452)

Option to add purchase parameters in GooglePlayPurchaseParam to set selected offer token. In subscribtion with multiple offer in base plan, the user can choose which offer to want buy and then this selected offer token is sent to the billing flow

flutter/flutter#150348
bisor0627 pushed a commit to bisor0627/packages that referenced this pull request Jun 19, 2026
… selected offerToken (flutter#8452)

Option to add purchase parameters in GooglePlayPurchaseParam to set selected offer token. In subscribtion with multiple offer in base plan, the user can choose which offer to want buy and then this selected offer token is sent to the billing flow

flutter/flutter#150348
Nakiha pushed a commit to Nakiha/VoidPlayer-Flutter that referenced this pull request Sep 28, 2026
flutter/packages@1765c95...2bac766

2025-06-03 [email protected] [in_app_purchase_android]
GooglePlayPurchaseParam add possibility set selected offerToken
(flutter/packages#8452)
2025-06-03 [email protected] [camera] 🐛 Fix toggles overflow in the
camera example (flutter/packages#9274)
2025-06-03 [email protected] [shared_preferences] Remove duplicate
integration test (flutter/packages#9368)
2025-06-03 [email protected] [pointer_interceptor_web]
Fix unresponsive input above PointerInterceptor on Safari and Firefox.
(flutter/packages#9362)

If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://autoroll.skia.org/r/flutter-packages-flutter-autoroll
Please CC [email protected] on the revert to ensure that a
human
is aware of the problem.

To file a bug in Flutter:
https://github.com/flutter/flutter/issues/new/choose

To report a problem with the AutoRoller itself, please file a bug:
https://issues.skia.org/issues/new?component=1389291&template=1850622

Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

autosubmit Merge PR when tree becomes green via auto submit App p: in_app_purchase platform-android triage-android Should be looked at in Android triage

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants