Expose cardNumber from STPPaymentCardTextField (#27)

This commit is contained in:
davidme-stripe 2020-11-30 15:33:37 -08:00 committed by GitHub
parent b1102323c0
commit 5949b930cb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -262,7 +262,7 @@ public class STPPaymentCardTextField: UIControl, UIKeyInput, STPFormTextFieldDel
/// The current card number displayed by the field. /// The current card number displayed by the field.
/// May or may not be valid, unless `isValid` is true, in which case it is guaranteed /// May or may not be valid, unless `isValid` is true, in which case it is guaranteed
/// to be valid. /// to be valid.
var cardNumber: String? { @objc public var cardNumber: String? {
return viewModel.cardNumber return viewModel.cardNumber
} }
/// The current expiration month displayed by the field (1 = January, etc). /// The current expiration month displayed by the field (1 = January, etc).