Skip to content

[in_app_purchase_android] GooglePlayPurchaseParam add possibility set selected offerToken #8452

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 15 commits into from
Jun 3, 2025

Conversation

rmasarovic
Copy link
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
Copy link
Member

@gmackall gmackall left a comment

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.)

@gmackall
Copy link
Member

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

@gmackall
Copy link
Member

gmackall commented May 13, 2025

@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
Copy link
Contributor Author

@rmasarovic rmasarovic left a comment

Choose a reason for hiding this comment

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

ok

Copy link
Contributor

@bparrishMines bparrishMines left a comment

Choose a reason for hiding this comment

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

LGTM

});

/// The 'changeSubscriptionParam' containing information for upgrading or
/// downgrading an existing subscription.
final ChangeSubscriptionParam? changeSubscriptionParam;

/// For One-time product, "offerToken" shouldn't be filled.
Copy link
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
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
Copy link
Contributor

auto-submit bot commented Jun 3, 2025

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
80 checks passed
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
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