Skip to content

Extract Link signup controller from PayWithLinkViewController #5139

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

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

mats-stripe
Copy link
Collaborator

@mats-stripe mats-stripe commented Jul 9, 2025

Summary

In order to support a standalone Link authentication flow, we need to extract the SignUpViewController / ViewModel out of PayWithLinkViewController. The PayWithLinkViewController.SignUpViewController still exists, it just uses the extracted LinkSignUpViewController now.

In the next PR, I'll be adding support for a standalone Link authentication flow, which makes use of this LinkSignUpViewController.

Motivation

Standalone Link Auth

Testing

Sign up flow still works:

Screen.Recording.2025-07-10.at.9.18.08.AM.mov

Changelog

N/a

@mats-stripe mats-stripe force-pushed the mats/extract_link_signup_controller branch from 6f3fe20 to b57dc33 Compare July 10, 2025 13:20
@mats-stripe mats-stripe marked this pull request as ready for review July 10, 2025 13:27
@mats-stripe mats-stripe requested review from a team as code owners July 10, 2025 13:27
Copy link

github-actions bot commented Jul 10, 2025

🚨 New dead code detected in this PR:

PayWithLinkViewController-SignUpViewController.swift:86 warning: Parameter 'controller' is unused
PayWithLinkViewController-SignUpViewController.swift:77 warning: Parameter 'error' is unused
PayWithLinkViewController-SignUpViewController.swift:82 warning: Function 'signUpControllerDidCancel(_:)' is unused
LinkSignUpViewController.swift:25 warning: Parameter 'controller' is unused
LinkSignUpViewController.swift:22 warning: Parameter 'error' is unused
LinkSignUpViewController.swift:24 warning: Function 'signUpControllerDidCancel(_:)' is unused
LinkSignUpViewController.swift:252 warning: Parameter 'sender' is unused
LinkSignUpViewController.swift:289 warning: Parameter 'viewModel' is unused
LinkSignUpViewController.swift:360 warning: Parameter 'legalTermsView' is unused
LinkSignUpViewModel.swift:20 warning: Parameter 'viewModel' is unused

Please remove the dead code before merging.

If this is intentional, you can bypass this check by adding the label skip dead code check to this PR.

ℹ️ If this comment appears to be left in error, double check that the flagged code is actually used and/or make sure your branch is up-to-date with master.

@mats-stripe mats-stripe force-pushed the mats/extract_link_signup_controller branch from 2ae9cfa to d97e7ee Compare July 10, 2025 14:17
@mats-stripe mats-stripe force-pushed the mats/extract_link_signup_controller branch from d3ce680 to 5f7bc08 Compare July 14, 2025 14:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant