You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
## Summary
<!-- Simple summary of what was changed. -->
Added a flag defaultSPMNavigation in PaymentSheet and CustomerSheet. Off
by default.
When on, edit icon shows for all cards regardless of cbc eligibility.
## Motivation
<!-- Why are you making this change? If it's for fixing a bug, if
possible, please include a code snippet or example project that
demonstrates the issue. -->
[MOBILESDK-2663](https://jira.corp.stripe.com/browse/MOBILESDK-2663)
[MOBILESDK-2664](https://jira.corp.stripe.com/browse/MOBILESDK-2664)
## Testing
<!-- How was the code tested? Be as specific as possible. -->
Simple UI tests that check to make sure that both the cbc card and
non-cbc card have edit buttons
## Changelog
<!-- Is this a notable change that affects users? If so, add a line to
`CHANGELOG.md` and prefix the line with one of the following:
- [Added] for new features.
- [Changed] for changes in existing functionality.
- [Deprecated] for soon-to-be removed features.
- [Removed] for now removed features.
- [Fixed] for any bug fixes.
- [Security] in case of vulnerabilities.
-->
Copy file name to clipboardexpand all lines: StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/CustomerSheet/CustomerSavedPaymentMethodsCollectionViewController.swift
+7-1
Original file line number
Diff line number
Diff line change
@@ -82,6 +82,7 @@ class CustomerSavedPaymentMethodsCollectionViewController: UIViewController {
82
82
letallowsRemovalOfLastSavedPaymentMethod:Bool
83
83
letpaymentMethodRemove:Bool
84
84
letisTestMode:Bool
85
+
letalternateUpdatePaymentMethodNavigation:Bool
85
86
}
86
87
87
88
/// Whether or not you can edit save payment methods by removing or updating them.
Copy file name to clipboardexpand all lines: StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/CustomerSheet/CustomerSavedPaymentMethodsViewController.swift
+4-2
Original file line number
Diff line number
Diff line change
@@ -103,7 +103,8 @@ class CustomerSavedPaymentMethodsViewController: UIViewController {
// Special case, only 1 card remaining but is co-branded, skip showing the list and show update view controller
138
+
// Special case, only 1 card remaining but is co-branded (or alternateUpdatePaymentMethodNavigation), skip showing the list and show update view controller
0 commit comments