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

Fix link inline for custom flow. #6090

Merged
merged 4 commits into from
Jan 20, 2023

Conversation

jaynewstrom-stripe
Copy link
Collaborator

Summary

This was causing end to end tests to fail.

Motivation

Testing

  • Added tests
  • Modified tests
  • Manually verified

Screenshots

Before After
before screenshot after screenshot

Changelog

@jaynewstrom-stripe
Copy link
Collaborator Author

jaynewstrom-stripe commented Jan 20, 2023

Pretty subtle. But I missed this in my original PR. https://github.com/stripe/stripe-android/pull/6004/files#diff-f311031c234ce3fc5f9425a479114c55440d6aede03a085e857e0ff3da40320dL435

In the base view model, it does one thing, then payment sheet overrides it to do both things. When I copied the implementation, I combined payment sheet with the base, and missed this difference in behavior.

Copy link
Collaborator

@tillh-stripe tillh-stripe left a comment

Choose a reason for hiding this comment

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

Works as expected again! Small comment about the release notes.

CHANGELOG.md Outdated
@@ -4,6 +4,7 @@

### PaymentSheet
* [CHANGED][5927](https://github.com/stripe/stripe-android/pull/5927) Customers can now re-enter the autocomplete flow of the Address Element by tapping an icon in the line 1 text field.
* [FIXED][6090](https://github.com/stripe/stripe-android/pull/6090) Fixed an issue where link was not working for users adding a payment method via the custom flow.
Copy link
Collaborator

Choose a reason for hiding this comment

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

Should we give some more detail here?

Suggested change
* [FIXED][6090](https://github.com/stripe/stripe-android/pull/6090) Fixed an issue where link was not working for users adding a payment method via the custom flow.
* [FIXED][6090](https://github.com/stripe/stripe-android/pull/6090) Fixed an issue where adding a payment method to an existing Link account didn’t work when using `PaymentSheet.FlowController`.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Changed minorly, since it affects any user adding a payment method, not just an existing user.

@jaynewstrom-stripe jaynewstrom-stripe merged commit 33e7edd into master Jan 20, 2023
@jaynewstrom-stripe jaynewstrom-stripe deleted the jaynewstrom/fix-link-custom-flow branch January 20, 2023 15:47
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.

2 participants