Skip to content

feat: re-evaluate payment readiness when the app is resumed - #335

Open
stephenmcd wants to merge 1 commit into
mainfrom
feature/readiness-on-resume
Open

feat: re-evaluate payment readiness when the app is resumed#335
stephenmcd wants to merge 1 commit into
mainfrom
feature/readiness-on-resume

Conversation

@stephenmcd

Copy link
Copy Markdown
Contributor
  • Register WidgetsBindingObserver in _PayButtonState to observe app lifecycle transitions.
  • Re-issue the readiness Future and rebuild when the app is resumed.
  • Add widget tests to verify that returning to the foreground triggers a re-evaluation.

closes #9

⚠️
Hello, and thank you for your contributions!

Please review the following checklist before creating a new pull request:

  • Review and contribute to existing pull requests and open issues to avoid redundant efforts.
  • Read the contribution guidelines.
  • Assign reviewers.
  • If applicable, include a reference to related issues.
  • If this is a new feature, create an issue and coordinate with other contributors to make sure the feature can be made available in all platforms supported.

⚠️ Delete this block before creating the pull request.

Describe the changes proposed

A clear and concise description of the changes included in this pull request.

Screenshots / Videos

If useful, include any screeshots or screencasts to better explain the change.

Additional context

Add any other context about the change here.

- Register WidgetsBindingObserver in _PayButtonState to observe app lifecycle transitions.
- Re-issue the readiness Future and rebuild when the app is resumed.
- Add widget tests to verify that returning to the foreground triggers a re-evaluation.

closes #9
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Check for Google Pay availability after bringing the application back to the foreground

1 participant