Skip to content
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

Use GooglePayPaymentMethodLauncher in Payment Sheet custom flow #4113

Merged
merged 3 commits into from
Aug 17, 2021

Conversation

brnunes-stripe
Copy link
Contributor

@brnunes-stripe brnunes-stripe commented Aug 17, 2021

Summary

Migrate from old StripeGooglePayContract to new GooglePayPaymentMethodLauncherContract which is public.

Motivation

Remove dependency on internal classes.
Support Google Pay for Setup Intents on Payment Sheet custom flow.

Testing

  • Added tests
  • Modified tests
  • Manually verified

Comment on lines 32 to +36
private val readyCallback: ReadyCallback,
private val activityResultLauncher: ActivityResultLauncher<GooglePayLauncherContract.Args>,
private val googlePayRepositoryFactory: (GooglePayEnvironment) -> GooglePayRepository,
analyticsRequestFactory: AnalyticsRequestFactory,
analyticsRequestExecutor: AnalyticsRequestExecutor = DefaultAnalyticsRequestExecutor()
analyticsRequestExecutor: AnalyticsRequestExecutor
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Just reordering to match the order of GooglePayPaymentMethodLauncher, no changes to public API.

@brnunes-stripe brnunes-stripe merged commit 8ac14e7 into master Aug 17, 2021
@brnunes-stripe brnunes-stripe deleted the brnunes/gpay branch August 17, 2021 15:29
@brnunes-stripe brnunes-stripe mentioned this pull request Aug 24, 2021
3 tasks
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.

None yet

3 participants