Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,10 @@
extension STPElementsSession {
var supportsLink: Bool {
// Either Link is an allowed Payment Method in the elements/sessions response, or passthrough mode (Link as a Card PM) is allowed
orderedPaymentMethodTypes.contains(.link) || linkPassthroughModeEnabled
guard let linkSettings, !linkSettings.fundingSources.isEmpty else {
return false
}
return orderedPaymentMethodTypes.contains(.link) || linkPassthroughModeEnabled
}

var linkPassthroughModeEnabled: Bool {
Expand Down
Loading