-
Notifications
You must be signed in to change notification settings - Fork 1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[BANKCON-14528] Update mobile FC SDKs to accept link_mode value from …
…the payment sheet
- Loading branch information
1 parent
75bdab9
commit 10f874d
Showing
10 changed files
with
70 additions
and
6 deletions.
There are no files selected for viewing
This file contains 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
16 changes: 16 additions & 0 deletions
16
StripeCore/StripeCore/Source/Connections Bindings/ElementsContext.swift
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
// | ||
// ElementsContext.swift | ||
// StripeCore | ||
// | ||
// Created by Mat Schmid on 2024-09-23. | ||
// | ||
|
||
import Foundation | ||
|
||
@_spi(STP) public struct ElementsContext { | ||
@_spi(STP) public let linkMode: LinkMode? | ||
|
||
@_spi(STP) public init(linkMode: LinkMode?) { | ||
self.linkMode = linkMode | ||
} | ||
} |
This file contains 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
18 changes: 18 additions & 0 deletions
18
StripeCore/StripeCore/Source/Connections Bindings/LinkMode.swift
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
// | ||
// LinkMode.swift | ||
// StripeCore | ||
// | ||
// Created by Mat Schmid on 2024-09-24. | ||
// | ||
|
||
import Foundation | ||
|
||
@_spi(STP) public enum LinkMode: String { | ||
case linkPaymentMethod = "LINK_PAYMENT_METHOD" | ||
case passthrough = "PASSTHROUGH" | ||
case linkCardBrand = "LINK_CARD_BRAND" | ||
|
||
@_spi(STP) public var isPantherPayment: Bool { | ||
self == .linkCardBrand | ||
} | ||
} |
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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