-
Notifications
You must be signed in to change notification settings - Fork 1k
Enable Link based on link_mode value
#5545
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
base: master
Are you sure you want to change the base?
Conversation
4229b0c to
1131dc7
Compare
StripePayments- public var allResponseFields: [Swift.AnyHashable : Any] {
- get
- }
- public var allResponseFields: [Swift.AnyHashable : Any] {
- get
- }
- public var allResponseFields: [Swift.AnyHashable : Any] {
- get
- }If you are adding a new public API consider the following:
If you are modifying or removing a public API:
If you confirm these APIs need to be added/updated and have undergone necessary review, add the label ℹ️ If this comment appears to be left in error, make sure your branch is up-to-date with |
3c9ac10 to
9008ed9
Compare
7af64a4 to
15acd4b
Compare
|
|
||
| private func updatePaymentMethodDetail(data: Data, variables: [String: String]) -> Data { | ||
| var template = String(decoding: data, as: UTF8.self) | ||
| var template = String(data: data, encoding: .utf8)! |
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.
Drive-by fix.
| ) | ||
| presentPaymentSheet(darkMode: false) | ||
| verify(paymentSheet.bottomSheetViewController.view!) | ||
| UserDefaults.standard.removeObject(forKey: "FINANCIAL_CONNECTIONS_INSTANT_DEBITS_INCENTIVES") |
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.
This test started failing, and I assume it's because we never reset the value after enabling it at the start of the test.
| } | ||
|
|
||
| func testPromoBadgeInFormTitle() { | ||
| UserDefaults.standard.setValue(true, forKey: "FINANCIAL_CONNECTIONS_INSTANT_DEBITS_INCENTIVES") |
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.
Same here.
| externalPaymentMethodTypes: [String] = [], | ||
| customerSessionData: [String: Any]? = nil, | ||
| cardBrandChoiceData: [String: Any]? = nil, | ||
| isLinkPassthroughModeEnabled: Bool? = 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.
Removing this parameter, as the link_mode determines the passthrough state. Added logic below so that link_settings.link_passthrough_mode_enabled is still set correctly.
a6e3672 to
56d82dd
Compare
56d82dd to
08c931d
Compare
Summary
This pull request updates
STPElementsSession.supportsLinkto only consider thelinkSettings.linkModevalue, as opposed to looking at theorderedPaymentMethodTypesandlinkPassthroughModeEnabled.Motivation
Be in line with Web and simplify future backend changes.
Testing
Updated tests and test structs.
Changelog