-
Notifications
You must be signed in to change notification settings - Fork 982
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
Add internal "Native Link" switch #4205
Conversation
🚨 New dead code detected in this PR: PayWithLinkViewController.swift:28 warning: Parameter 'payWithLinkViewController' is unused
LinkVerificationController.swift:18 warning: Property 'selfRetainer' is assigned, but never used
LinkVerificationController.swift:26 warning: Function 'present(from:completion:)' is unused
PaymentSheet+Link.swift:32 warning: Parameter 'payWithLinkWebController' is unused
PaymentSheet+Link.swift:41 warning: Parameter 'completion' is unused
PaymentSheet+Link.swift:88 warning: Function 'verifyLinkSessionIfNeeded(with:intent:completion:)' is unused
PaymentSheet+Link.swift:151 warning: Parameter 'payWithLinkViewController' is unused
PaymentSheet.swift:356 warning: Function 'pay(with:)' is unused
PaymentSheet.swift:357 warning: Function 'clearTextFields()' is unused
PaymentMethodFormViewController.swift:159 warning: Function 'clearTextFields()' is unused
PaymentSheetVerticalViewController.swift:439 warning: Function 'clearTextFields()' is unused Please remove the dead code before merging. If this is intentional, you can bypass this check by adding the label ℹ️ 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 |
StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/PaymentSheet+Link.swift
Show resolved
Hide resolved
StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/PaymentSheetConfiguration.swift
Outdated
Show resolved
Hide resolved
StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/PaymentSheet.swift
Show resolved
Hide resolved
} | ||
} | ||
|
||
func payWithLinkViewControllerDidCancel(_ payWithLinkViewController: PayWithLinkViewController) { | ||
payWithLinkViewController.dismiss(animated: true) | ||
} | ||
|
||
func payWithLinkViewControllerDidFinish( | ||
_ payWithLinkViewController: PayWithLinkViewController, | ||
result: PaymentSheetResult | ||
) { | ||
completion?(result) | ||
} | ||
|
||
private func findPaymentSheetViewController() -> PaymentSheetViewController? { | ||
for vc in bottomSheetViewController.contentStack { | ||
if let paymentSheetVC = vc as? PaymentSheetViewController { | ||
return paymentSheetVC | ||
} | ||
} | ||
|
||
return nil | ||
} | ||
} |
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.
Spacing looks off here.
Summary
Motivation
Enabling testing of native Link
Testing
Tested in PS Example
Changelog
No user-facing changes