-
Notifications
You must be signed in to change notification settings - Fork 677
Link signup toggle in FlowController #11199
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
Draft
carlosmuvi-stripe
wants to merge
18
commits into
master
Choose a base branch
from
carlosmuvi/signup-link-toggle
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
+1,266
−62
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Diffuse output:
APK
DEX
ARSC
|
d36f94b
to
2aa61ef
Compare
Comment on lines
+8
to
+13
internal interface SignupToLinkToggleStringProvider { | ||
val title: String | ||
val description: String | ||
val termsAndConditions: AnnotatedString | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
abstraction to avoid injecting the application in the interactor.
Comment on lines
+338
to
+339
@Composable | ||
private fun LinkSignupToggle(flowController: PaymentSheet.FlowController) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
mock view showcasing how the merchant would integrate this.
- Extract SignupToLinkToggleStringProvider interface and implementation - Move Android string resource access from interactor to string provider - Use AnnotatedString.fromHtml() with placeholder tag replacement - Update dependency injection in FlowControllerModule - Simplify tests by removing Android mocking requirements - Fix code style issues (ktlint, detekt)
- Remove handleToggleChange from SignupToLinkToggleInteractor interface - Remove implementation from DefaultSignupToLinkToggleInteractor - Remove implementation from FakeSignupToLinkToggleInteractor - Remove associated unit tests that used the deprecated method - Update PaymentSheetPlaygroundActivity to use direct flow value assignment instead of toggle/setToggle pattern - Fix ktlint formatting issues
- Updated LinkAuth.signUp() to accept nullable phone and country - Updated LinkAccountManager and LinkRepository layers for nullable support - Removed UserInput.SignUpOptionalPhone and updated SignupForLink to use UserInput.SignUp - Added test coverage for link_enable_new_user_signup_api flag on/off scenarios - Country can now be inferred from phone number when not explicitly provided
15b0a4d
to
0304fe2
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
SignupToLink
toggle state toFlowController
SignupForLink
usecase that creates account + adds payment details if toggle enabledrecord1.webm
Motivation
Testing
Screenshots
Changelog