Skip to content

Commit 9249245

Browse files
committed
Update StripeSdkImpl.swift
1 parent 559cdc0 commit 9249245

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

ios/StripeSdkImpl.swift

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1590,10 +1590,8 @@ public class StripeSdkImpl: NSObject, UIAdaptivePresentationControllerDelegate {
15901590
let bankName = paymentParams["bankName"] as? String ?? ""
15911591
let last4 = paymentParams["last4"] as? String ?? ""
15921592

1593-
// TODO: get proper bank account icon. currently not exposed publicly.
1594-
// let iconCode = PaymentSheetImageLibrary.bankIconCode(for: bankName)
1595-
// let icon = PaymentSheetImageLibrary.bankIcon(for: iconCode, iconStyle: .filled)
1596-
let icon = STPImageLibrary.cardBrandImage(for: .visa)
1593+
let iconCode = PaymentSheetImageLibrary.bankIconCode(for: bankName)
1594+
let icon = PaymentSheetImageLibrary.bankIcon(for: iconCode, iconStyle: .filled)
15971595
let sublabel = "\(bankName) •••• \(last4)"
15981596

15991597
let result = PaymentMethodDisplayData(icon: icon, label: label, sublabel: sublabel)

0 commit comments

Comments
 (0)