Skip to content
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

Extend UpdateCardViewController to bank accounts and sepa debit #4280

Merged
merged 78 commits into from
Nov 22, 2024
Merged
Show file tree
Hide file tree
Changes from 63 commits
Commits
Show all changes
78 commits
Select commit Hold shift + click to select a range
f5752ae
added cvc and expiry to updatecardviewcontroller
joyceqin-stripe Nov 13, 2024
dc09a75
make it look like the figma and update tests
joyceqin-stripe Nov 13, 2024
9791ce3
removed unused
joyceqin-stripe Nov 13, 2024
9aa250a
localizable
joyceqin-stripe Nov 13, 2024
203c866
Merge branch 'master' into joyceqin-updatecard-cvc-expiry
joyceqin-stripe Nov 13, 2024
f6740cf
revert a space
joyceqin-stripe Nov 13, 2024
3bd0c85
Merge branch 'joyceqin-updatecard-cvc-expiry' of github.com:stripe/st…
joyceqin-stripe Nov 13, 2024
acf866e
Merge branch 'master' into joyceqin-updatecard-cvc-expiry
joyceqin-stripe Nov 13, 2024
c9c6441
Merge branch 'master' into joyceqin-updatecard-cvc-expiry
joyceqin-stripe Nov 14, 2024
d92004f
applied changes
joyceqin-stripe Nov 14, 2024
7ca5bfd
localizable
joyceqin-stripe Nov 14, 2024
864f405
Merge branch 'master' into joyceqin-updatecard-cvc-expiry
joyceqin-stripe Nov 14, 2024
9ea21cf
fix a test
joyceqin-stripe Nov 14, 2024
f793251
changes
joyceqin-stripe Nov 14, 2024
3c55c81
changes
joyceqin-stripe Nov 14, 2024
a59a64f
Merge branch 'master' into joyceqin-updatecard-cvc-expiry
joyceqin-stripe Nov 14, 2024
07dcd21
Merge branch 'master' into joyceqin-updatecard-cvc-expiry
joyceqin-stripe Nov 15, 2024
21a311c
Added a flag for default spm navigation for PaymentSheet and Customer…
joyceqin-stripe Nov 15, 2024
13e4f86
revert snapshot test
joyceqin-stripe Nov 15, 2024
136da06
updated snapshots
joyceqin-stripe Nov 15, 2024
c251929
removed unused string in this pr
joyceqin-stripe Nov 15, 2024
3e12769
Added US Bank Account and SEPA Debit UI to UpdateCardViewController, …
joyceqin-stripe Nov 16, 2024
56315a3
merged with joyceqin-updatecard-cvc-expiry and resolved conflicts
joyceqin-stripe Nov 16, 2024
011f7c9
Merge branch 'master' into joyceqin-default-spm-navigation
joyceqin-stripe Nov 18, 2024
2421272
refactored deleteButton to removeButton
joyceqin-stripe Nov 18, 2024
9b74677
refactored defaultSPMNavigation to alternateUpdatePaymentMethodNaviga…
joyceqin-stripe Nov 18, 2024
debee92
resolve merge conflict
joyceqin-stripe Nov 18, 2024
3d72712
Merge branch 'master' into joyceqin-default-spm-navigation
joyceqin-stripe Nov 18, 2024
95bb746
Card brand choice dropdown updates updateButton state
joyceqin-stripe Nov 18, 2024
656e44a
merge conflict
joyceqin-stripe Nov 18, 2024
c71f8e1
changed edit circularbutton accessibility label
joyceqin-stripe Nov 18, 2024
a06d068
Refactored UpdateCardViewController to UpdatePaymentMethodViewControl…
joyceqin-stripe Nov 18, 2024
16ebc0a
add snapshot test reference images
joyceqin-stripe Nov 18, 2024
3e18c82
Fixed breaking UI tests caused by different button text
joyceqin-stripe Nov 18, 2024
a665779
Merge branch 'master' into joyceqin-default-spm-navigation
joyceqin-stripe Nov 19, 2024
12bdc35
Merge branch 'master' into joyceqin-update-bank-account
joyceqin-stripe Nov 19, 2024
86a010c
chevrons instead of circular edit icons for vertical mode
joyceqin-stripe Nov 19, 2024
b0d3c37
Merge branch 'joyceqin-default-spm-navigation' into joyceqin-update-b…
joyceqin-stripe Nov 19, 2024
f58423f
update a test that used the update localized string
joyceqin-stripe Nov 19, 2024
f0a0c4f
Merge branch 'master' into joyceqin-default-spm-navigation
joyceqin-stripe Nov 19, 2024
4ae7bb2
fix tests using removed localized strings
joyceqin-stripe Nov 19, 2024
8412ac1
Fix build
joyceqin-stripe Nov 19, 2024
d920da5
Fix merge conflicts with master
joyceqin-stripe Nov 19, 2024
157048b
fix build
joyceqin-stripe Nov 19, 2024
5eeb3be
skipped test in 3 of 4 shards
joyceqin-stripe Nov 19, 2024
b330e6e
fix build
joyceqin-stripe Nov 19, 2024
ac82471
revert SavedPaymentMethodRowButton updateButton
joyceqin-stripe Nov 19, 2024
f4282ce
change location of a condition (does not impact behavior)
joyceqin-stripe Nov 19, 2024
6fdfad6
make rows tappable and changed chevron label
joyceqin-stripe Nov 19, 2024
daaae52
merge
joyceqin-stripe Nov 19, 2024
c07a7f3
moved a condition
joyceqin-stripe Nov 19, 2024
8dccc5b
merge with spm-navigation
joyceqin-stripe Nov 19, 2024
a1c9a90
fixed merge conflict
joyceqin-stripe Nov 19, 2024
9658707
merge with master conflicts
joyceqin-stripe Nov 19, 2024
8ceaad4
created static variable to reference if editing should be allowed bas…
joyceqin-stripe Nov 19, 2024
321bf91
simplified logic
joyceqin-stripe Nov 19, 2024
125f972
removed unused params
joyceqin-stripe Nov 19, 2024
ddb1e04
update comment
joyceqin-stripe Nov 19, 2024
d25fc27
remove unused param
joyceqin-stripe Nov 19, 2024
1dd9636
fix ui test
joyceqin-stripe Nov 20, 2024
4a38362
Merge branch 'master' into joyceqin-update-bank-account
joyceqin-stripe Nov 20, 2024
4f96bcc
change error message
joyceqin-stripe Nov 20, 2024
6bbb2e9
Merge branch 'joyceqin-update-bank-account' of github.com:stripe/stri…
joyceqin-stripe Nov 20, 2024
b0404ce
extracted form creation and applied suggested changes
joyceqin-stripe Nov 21, 2024
d5a5a28
conditional spacing depending on existence of footnote;
joyceqin-stripe Nov 21, 2024
5318956
made EmailConfiguration init public again due to internal protection …
joyceqin-stripe Nov 21, 2024
a10899f
update snapshots
joyceqin-stripe Nov 21, 2024
4b0b0db
Merge branch 'master' into joyceqin-update-bank-account
joyceqin-stripe Nov 21, 2024
68b6000
unused parameter
joyceqin-stripe Nov 21, 2024
3fd9277
Merge branch 'joyceqin-update-bank-account' of github.com:stripe/stri…
joyceqin-stripe Nov 21, 2024
bfac23c
removed .xcshareddata from git, renamed PaymentMethodForm
joyceqin-stripe Nov 21, 2024
aee04e5
renamed PaymentMethodForm.swift to SavedPaymentMethodFormFactory, re-…
joyceqin-stripe Nov 21, 2024
22706e9
Merge branch 'master' into joyceqin-update-bank-account
joyceqin-stripe Nov 21, 2024
852fdf4
insertArrangedSubview
joyceqin-stripe Nov 21, 2024
d76c8c2
Merge branch 'joyceqin-update-bank-account' of github.com:stripe/stri…
joyceqin-stripe Nov 21, 2024
26e4351
Merge branch 'master' into joyceqin-update-bank-account
joyceqin-stripe Nov 21, 2024
f02dad0
Merge branch 'master' into joyceqin-update-bank-account
joyceqin-stripe Nov 22, 2024
2aab66c
Merge branch 'master' into joyceqin-update-bank-account
joyceqin-stripe Nov 22, 2024
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 @@ -487,7 +487,7 @@ class CustomerSheetUITest: XCTestCase {
// circularEditButton shows up in the view hierarchy, but it's not actually on the screen or tappable so we scroll a little
let startCoordinate = app.collectionViews.firstMatch.coordinate(withNormalizedOffset: CGVector(dx: 0.9, dy: 0.99))
startCoordinate.press(forDuration: 0.1, thenDragTo: app.collectionViews.firstMatch.coordinate(withNormalizedOffset: CGVector(dx: 0.1, dy: 0.99)))
XCTAssertTrue(app.buttons.matching(identifier: "CircularButton.Edit").firstMatch.waitForExistenceAndTap())
XCTAssertTrue(app.buttons.matching(identifier: "CircularButton.Edit").element(boundBy: 1).waitForExistenceAndTap())
XCTAssertTrue(app.otherElements.matching(identifier: "Card Brand Dropdown").firstMatch.waitForExistenceAndTap())
app.pickerWheels.firstMatch.selectNextOption()
app.toolbars.buttons["Done"].tap()
Expand All @@ -496,7 +496,7 @@ class CustomerSheetUITest: XCTestCase {
XCTAssertTrue(app.buttons["Done"].waitForExistence(timeout: 3))
XCTAssertEqual(app.images.matching(identifier: "carousel_card_visa").count, 2)

app.buttons.matching(identifier: "CircularButton.Edit").element(boundBy: 1).waitForExistenceAndTap()
app.buttons.matching(identifier: "CircularButton.Edit").element(boundBy: 2).waitForExistenceAndTap()
app.buttons["Remove"].waitForExistenceAndTap()
app.alerts.buttons["Remove"].waitForExistenceAndTap()
XCTAssertTrue(app.buttons["Done"].waitForExistence(timeout: 3))
Expand Down
20 changes: 12 additions & 8 deletions StripePaymentSheet/StripePaymentSheet.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@
614068E22CB0BF10003D2F12 /* EmbeddedPaymentMethodsViewTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 614068E12CB0BF10003D2F12 /* EmbeddedPaymentMethodsViewTests.swift */; };
6141C5072C0A47A700E81735 /* RightAccessoryButtonTest.swift in Sources */ = {isa = PBXBuildFile; fileRef = 6141C5062C0A47A700E81735 /* RightAccessoryButtonTest.swift */; };
614A8AE72BE53C6900E8688B /* SavedPaymentMethodManagerTest.swift in Sources */ = {isa = PBXBuildFile; fileRef = 6103F2BD2BE53737002D67F8 /* SavedPaymentMethodManagerTest.swift */; };
6151DDC02B14FDCF00ED4F7E /* UpdateCardViewControllerSnapshotTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 6151DDBF2B14FDCF00ED4F7E /* UpdateCardViewControllerSnapshotTests.swift */; };
6151DDC02B14FDCF00ED4F7E /* UpdatePaymentMethodViewControllerSnapshotTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 6151DDBF2B14FDCF00ED4F7E /* UpdatePaymentMethodViewControllerSnapshotTests.swift */; };
615AADAF2CB97A2000D0AED9 /* STPCardValidator+BrandFiltering.swift in Sources */ = {isa = PBXBuildFile; fileRef = 615AADAE2CB97A2000D0AED9 /* STPCardValidator+BrandFiltering.swift */; };
615AADB12CB97A9400D0AED9 /* STPCardValidator+BrandFilteringTest.swift in Sources */ = {isa = PBXBuildFile; fileRef = 615AADB02CB97A9400D0AED9 /* STPCardValidator+BrandFilteringTest.swift */; };
615C2C502CBDBA61003F0173 /* EmbeddedFormViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 615C2C4F2CBDBA61003F0173 /* EmbeddedFormViewController.swift */; };
Expand Down Expand Up @@ -252,6 +252,7 @@
9E77F1E9F801AE970F1A5BE1 /* CustomerSheetConfiguration.swift in Sources */ = {isa = PBXBuildFile; fileRef = D7768E4377A7D7495A02655D /* CustomerSheetConfiguration.swift */; };
9F750611C4E8EAABE9F0B460 /* CustomerSheetTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = ED7ABCE56539213DCE501C54 /* CustomerSheetTests.swift */; };
A1AC7034E778F81B8758A653 /* OHHTTPStubsSwift in Frameworks */ = {isa = PBXBuildFile; productRef = 20076FBD56C42E259EF62F2B /* OHHTTPStubsSwift */; };
A36949C52CE7D72300739E5D /* UpdatePaymentMethodViewModel.swift in Sources */ = {isa = PBXBuildFile; fileRef = A36949C42CE7D72300739E5D /* UpdatePaymentMethodViewModel.swift */; };
A4CD99B2032CBFA7F957B1B8 /* String+AutoComplete.swift in Sources */ = {isa = PBXBuildFile; fileRef = 982014B36F49D902CD04AF5C /* String+AutoComplete.swift */; };
A4FF52567582E9774AE13348 /* PaymentDetails.swift in Sources */ = {isa = PBXBuildFile; fileRef = 981F958E99945A0318D47BBF /* PaymentDetails.swift */; };
A59432E765A72CEE2C36E0EF /* PaymentSheetFormFactory+Card.swift in Sources */ = {isa = PBXBuildFile; fileRef = 1CF41D601B198DC37337940C /* PaymentSheetFormFactory+Card.swift */; };
Expand All @@ -264,7 +265,7 @@
ABC3A7CF6D5B21D0C9684A09 /* LinkPopupURLParserTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 22E4212F4A865B5AB5D72F99 /* LinkPopupURLParserTests.swift */; };
ABE13E65678673EC4DE14EF4 /* PaymentSheetLinkAccountTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0901281208BEB220D0B491A8 /* PaymentSheetLinkAccountTests.swift */; };
AE8EF3966E7BABDFC3B426ED /* PaymentSheet+DashboardConfirmParamsTest.swift in Sources */ = {isa = PBXBuildFile; fileRef = 82C21D5722BDEB8BAA71F69F /* PaymentSheet+DashboardConfirmParamsTest.swift */; };
AF0D609C28A8B0ECD11FD539 /* UpdateCardViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = BF0E71D9DEA93036E4C87CEC /* UpdateCardViewController.swift */; };
AF0D609C28A8B0ECD11FD539 /* UpdatePaymentMethodViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = BF0E71D9DEA93036E4C87CEC /* UpdatePaymentMethodViewController.swift */; };
B2979A0740F8730FC14DFEC1 /* BottomSheetViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 73853A55045C53AF2BBB8489 /* BottomSheetViewController.swift */; };
B306EA3F66D07CCABF17CB9C /* LinkInlineSignupViewModel.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7910B57E6FD99F2AFCA4DAC2 /* LinkInlineSignupViewModel.swift */; };
B4679C9095BCD53CCC2C7D25 /* StripeCore.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = E41AA4E90E5BB28D588FDE51 /* StripeCore.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; };
Expand Down Expand Up @@ -576,7 +577,7 @@
6139AA50F07A1E2AC7E9827F /* AUBECSMandate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AUBECSMandate.swift; sourceTree = "<group>"; };
614068E12CB0BF10003D2F12 /* EmbeddedPaymentMethodsViewTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = EmbeddedPaymentMethodsViewTests.swift; sourceTree = "<group>"; };
6141C5062C0A47A700E81735 /* RightAccessoryButtonTest.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = RightAccessoryButtonTest.swift; sourceTree = "<group>"; };
6151DDBF2B14FDCF00ED4F7E /* UpdateCardViewControllerSnapshotTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = UpdateCardViewControllerSnapshotTests.swift; sourceTree = "<group>"; };
6151DDBF2B14FDCF00ED4F7E /* UpdatePaymentMethodViewControllerSnapshotTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = UpdatePaymentMethodViewControllerSnapshotTests.swift; sourceTree = "<group>"; };
615AADAE2CB97A2000D0AED9 /* STPCardValidator+BrandFiltering.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "STPCardValidator+BrandFiltering.swift"; sourceTree = "<group>"; };
615AADB02CB97A9400D0AED9 /* STPCardValidator+BrandFilteringTest.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "STPCardValidator+BrandFilteringTest.swift"; sourceTree = "<group>"; };
615C2C4F2CBDBA61003F0173 /* EmbeddedFormViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = EmbeddedFormViewController.swift; sourceTree = "<group>"; };
Expand Down Expand Up @@ -675,6 +676,7 @@
9E3905FE9F40E82EAEF49CD2 /* ro-RO */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = "ro-RO"; path = "ro-RO.lproj/Localizable.strings"; sourceTree = "<group>"; };
A09CCD0ED44336B23450A995 /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/Localizable.strings; sourceTree = "<group>"; };
A1928BE9DFF116368B1A19DC /* LinkCookieKey.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = LinkCookieKey.swift; sourceTree = "<group>"; };
A36949C42CE7D72300739E5D /* UpdatePaymentMethodViewModel.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = UpdatePaymentMethodViewModel.swift; sourceTree = "<group>"; };
A39F7EBA2E9E3CE55E7AADC9 /* STPFixtures+PaymentSheet.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "STPFixtures+PaymentSheet.swift"; sourceTree = "<group>"; };
A49D0A50ECFA7A4A5FC40878 /* ca-ES */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = "ca-ES"; path = "ca-ES.lproj/Localizable.strings"; sourceTree = "<group>"; };
A5012364ED0F2EEC6EC2AB52 /* PaymentMethodElementWrapper.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = PaymentMethodElementWrapper.swift; sourceTree = "<group>"; };
Expand Down Expand Up @@ -739,7 +741,7 @@
BE92D55DA4B4D449734B2917 /* BacsDDMandateViewSnapshotTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = BacsDDMandateViewSnapshotTests.swift; sourceTree = "<group>"; };
BEF72D6FB252D340AF1854FE /* AddressViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AddressViewController.swift; sourceTree = "<group>"; };
BF0319C54AA8B74DEB6881F0 /* ru */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = ru; path = ru.lproj/Localizable.strings; sourceTree = "<group>"; };
BF0E71D9DEA93036E4C87CEC /* UpdateCardViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = UpdateCardViewController.swift; sourceTree = "<group>"; };
BF0E71D9DEA93036E4C87CEC /* UpdatePaymentMethodViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = UpdatePaymentMethodViewController.swift; sourceTree = "<group>"; };
C1AED4473AD4C07D461E9E48 /* SavedPaymentOptionsViewControllerSnapshotTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SavedPaymentOptionsViewControllerSnapshotTests.swift; sourceTree = "<group>"; };
C2224DF2C85F86C680B5078F /* it */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = it; path = it.lproj/Localizable.strings; sourceTree = "<group>"; };
C3C1A5F36075EAEA5A413DC5 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = "<group>"; };
Expand Down Expand Up @@ -1173,7 +1175,8 @@
101DFBD8D19B7B182CDD8882 /* PollingViewController.swift */,
26C092533C67D8C7FDE12742 /* PollingViewModel.swift */,
BBB56BACEB0ADD42882632CB /* SepaMandateViewController.swift */,
BF0E71D9DEA93036E4C87CEC /* UpdateCardViewController.swift */,
BF0E71D9DEA93036E4C87CEC /* UpdatePaymentMethodViewController.swift */,
A36949C42CE7D72300739E5D /* UpdatePaymentMethodViewModel.swift */,
);
path = ViewControllers;
sourceTree = "<group>";
Expand Down Expand Up @@ -1679,7 +1682,7 @@
615AADB02CB97A9400D0AED9 /* STPCardValidator+BrandFilteringTest.swift */,
AC0DBA7D63BAD0182695E436 /* Stubbed */,
D00C7F5905759525C9BF8BD4 /* TextFieldElement+CardTest.swift */,
6151DDBF2B14FDCF00ED4F7E /* UpdateCardViewControllerSnapshotTests.swift */,
6151DDBF2B14FDCF00ED4F7E /* UpdatePaymentMethodViewControllerSnapshotTests.swift */,
B6F4C5F72CADB0CB00AF3767 /* USBankAccountPaymentMethodElementTest.swift */,
316B33112B5F171C0008D2E5 /* UserDefaults+StripePaymentSheetTest.swift */,
B65FE7082BED33EA009A73FC /* VerticalPaymentMethodListViewControllerSnapshotTest.swift */,
Expand Down Expand Up @@ -2009,7 +2012,7 @@
6141C5072C0A47A700E81735 /* RightAccessoryButtonTest.swift in Sources */,
B64FEF122C0FAC1E00F7CA26 /* PaymentSheetVerticalViewControllerTest.swift in Sources */,
4A1A0A542B824C830A200BE0 /* StubbedBackend.swift in Sources */,
6151DDC02B14FDCF00ED4F7E /* UpdateCardViewControllerSnapshotTests.swift in Sources */,
6151DDC02B14FDCF00ED4F7E /* UpdatePaymentMethodViewControllerSnapshotTests.swift in Sources */,
34CF08CBC636F596B8BA4C12 /* TextFieldElement+CardTest.swift in Sources */,
52B734BA0B91706F37025523 /* STPAnalyticsClient+PaymentSheetTests.swift in Sources */,
AE8EF3966E7BABDFC3B426ED /* PaymentSheet+DashboardConfirmParamsTest.swift in Sources */,
Expand Down Expand Up @@ -2144,6 +2147,7 @@
3147CECB2CC1BF550067B5E4 /* LinkPaymentMethodPicker-CellContentView.swift in Sources */,
3147CECC2CC1BF550067B5E4 /* LinkPaymentMethodPicker-Cell.swift in Sources */,
3147CECD2CC1BF550067B5E4 /* LinkPaymentMethodPicker-Header.swift in Sources */,
A36949C52CE7D72300739E5D /* UpdatePaymentMethodViewModel.swift in Sources */,
313D00C82CD9972F00A8E6B0 /* PayWithNativeLinkController.swift in Sources */,
3147CECE2CC1BF550067B5E4 /* LinkPaymentMethodPicker-RadioButton.swift in Sources */,
3147CECF2CC1BF550067B5E4 /* LinkPaymentMethodPicker-AddButton.swift in Sources */,
Expand Down Expand Up @@ -2227,7 +2231,7 @@
4DDECA1F7EC6B624C00D549E /* PollingViewController.swift in Sources */,
59BE39C4C3992DBB6A698390 /* PollingViewModel.swift in Sources */,
F7BCE78B8F782979FD5EE323 /* SepaMandateViewController.swift in Sources */,
AF0D609C28A8B0ECD11FD539 /* UpdateCardViewController.swift in Sources */,
AF0D609C28A8B0ECD11FD539 /* UpdatePaymentMethodViewController.swift in Sources */,
D203D701AF400680AF0F82F8 /* AUBECSMandate.swift in Sources */,
D792BA37B04E5A3AD30E37CF /* AffirmCopyLabel.swift in Sources */,
9BFC22175CF85F58B8B8792A /* AfterpayPriceBreakdownView.swift in Sources */,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,9 @@
/* Title for collected bank account information */
"Bank account" = "Bank account";

/* Text on a screen that indicates bank account details cannot be changed. */
"Bank account details cannot be changed." = "Bank account details cannot be changed.";

/* Promotional text for Afterpay/Clearpay - the image tag will display the Afterpay or Clearpay logo. This text is displayed in a button that lets the customer pay with Afterpay/Clearpay */
"Buy now or pay later with <img/>" = "Buy now or pay later with <img/>";

Expand Down Expand Up @@ -106,6 +109,9 @@
/* Button text on a screen asking the user to approve a payment */
"Cancel and pay another way" = "Cancel and pay another way";

/* Text on a screen that indicates card details cannot be changed. */
"Card details cannot be changed." = "Card details cannot be changed.";

/* Title for a button that allows the user to use a different email in the signup flow. */
"Change email" = "Change email";

Expand Down Expand Up @@ -182,6 +188,12 @@ re-entering the security code (CVV/CVC). */
/* Title shown above a view containing the customer's payment methods that they can delete or update */
"Manage payment methods" = "Manage payment methods";

/* Title shown above a view containing the customer's SEPA debit that they can delete or update */
"Manage SEPA debit" = "Manage SEPA debit";

/* Title shown above a view containing the customer's bank account that they can delete or update */
"Manage US bank account" = "Manage US bank account";

/* Title shown above a carousel containing the customer's payment methods */
"Manage your payment methods" = "Manage your payment methods";

Expand Down Expand Up @@ -312,6 +324,9 @@ to be saved and used in future checkout sessions. */
/* Title shown above a carousel containing the customer's payment methods */
"Select your payment method" = "Select your payment method";

/* Text on a screen that indicates SEPA debit details cannot be changed. */
"SEPA debit details cannot be changed." = "SEPA debit details cannot be changed.";

/* Label for a button or menu item that sets a payment method as default when tapped. */
"Set as default" = "Set as default";

Expand Down Expand Up @@ -377,8 +392,8 @@ is not supported by the merchant */
the heading the screen itself. */
"Update card" = "Update card";

/* Title for a screen for updating a card brand. */
"Update card brand" = "Update card brand";
/* Accessibility label for a button that leads to a screen for updating a payment method. */
"Update payment method" = "Update payment method";

/* Two factor authentication screen heading */
"Use your saved info to check out faster" = "Use your saved info to check out faster";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,13 +77,48 @@ extension String.Localized {
STPLocalizedString("Back", "Text for back button")
}

static var manage_us_bank_account: String {
STPLocalizedString(
"Manage US bank account",
"Title shown above a view containing the customer's bank account that they can delete or update"
)
}

static var manage_sepa_debit: String {
STPLocalizedString(
"Manage SEPA debit",
"Title shown above a view containing the customer's SEPA debit that they can delete or update"
)
}

static var manage_card: String {
STPLocalizedString(
"Manage card",
"Title shown above a view containing the customer's card that they can delete or update"
)
}

static var bank_account_details_cannot_be_changed: String {
STPLocalizedString(
"Bank account details cannot be changed.",
"Text on a screen that indicates bank account details cannot be changed."
)
}

static var sepa_debit_details_cannot_be_changed: String {
STPLocalizedString(
"SEPA debit details cannot be changed.",
"Text on a screen that indicates SEPA debit details cannot be changed."
)
}

static var card_details_cannot_be_changed: String {
STPLocalizedString(
"Card details cannot be changed.",
"Text on a screen that indicates card details cannot be changed."
)
}

static var save: String {
STPLocalizedString(
"Save",
Expand All @@ -101,10 +136,10 @@ extension String.Localized {
)
}

static var update_card_brand: String {
static var update_payment_method: String {
STPLocalizedString(
"Update card brand",
"Title for a screen for updating a card brand."
"Update payment method",
"Accessibility label for a button that leads to a screen for updating a payment method."
porter-stripe marked this conversation as resolved.
Show resolved Hide resolved
)
}

Expand Down
Loading
Loading