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
Overridden method open class func errorImage(for cardBrand: STPCardBrand) -> UIImage? & open class func cvcImage(for cardBrand: STPCardBrand) -> UIImage? is not called in subclass of STPPaymentCardTextField
Code to reproduce
import Stripe
import UIKit
final class PaymentCardTextField: STPPaymentCardTextField {
override class func errorImage(for cardBrand: STPCardBrand) -> UIImage? {
return nil
}
override class func cvcImage(for cardBrand: STPCardBrand) -> UIImage? {
return nil
}
}
iOS version
iOS 15
Installation method
Cocoapods
SDK version
21.8.1
Other information
line 1809 & 1818
should be Self.errorImage(for: ) instead of STPPaymentCardTextField.errorImage(for:).
Summary
Overridden method open class func errorImage(for cardBrand: STPCardBrand) -> UIImage? & open class func cvcImage(for cardBrand: STPCardBrand) -> UIImage? is not called in subclass of STPPaymentCardTextField
Code to reproduce
iOS version
iOS 15
Installation method
Cocoapods
SDK version
21.8.1
Other information
line 1809 & 1818
should be Self.errorImage(for: ) instead of STPPaymentCardTextField.errorImage(for:).
same issue as #1827.
The text was updated successfully, but these errors were encountered: