BTCardFormViewController
Objective-C
@interface BTCardFormViewController : BTDropInBaseViewController
Swift
class BTCardFormViewController : BTDropInBaseViewController
Contains form elements for entering card information.
-
Undocumented
Declaration
Objective-C
@property (nonatomic, weak) id<BTCardFormViewControllerDelegate, BTDropInControllerDelegate> delegate -
The card number form field.
Declaration
Objective-C
@property (nonatomic, strong, readonly) BTUIKCardNumberFormField *cardNumberFieldSwift
var cardNumberField: UnsafeMutablePointer<Int32> { get } -
The cardholder name form field
Declaration
Objective-C
@property (nonatomic, strong, readonly) BTUIKCardholderNameFormField *cardholderNameFieldSwift
var cardholderNameField: UnsafeMutablePointer<Int32> { get } -
The expiration date form field.
Declaration
Objective-C
@property (nonatomic, strong, readonly) BTUIKExpiryFormField *expirationDateFieldSwift
var expirationDateField: UnsafeMutablePointer<Int32> { get } -
The security code (ccv) form field.
Declaration
Objective-C
@property (nonatomic, strong, readonly) BTUIKSecurityCodeFormField *securityCodeFieldSwift
var securityCodeField: UnsafeMutablePointer<Int32> { get } -
The postal code form field.
Declaration
Objective-C
@property (nonatomic, strong, readonly) BTUIKPostalCodeFormField *postalCodeFieldSwift
var postalCodeField: UnsafeMutablePointer<Int32> { get } -
The mobile country code form field.
Declaration
Objective-C
@property (nonatomic, strong, readonly) BTUIKMobileCountryCodeFormField *mobileCountryCodeFieldSwift
var mobileCountryCodeField: UnsafeMutablePointer<Int32> { get } -
The mobile phone number field.
Declaration
Objective-C
@property (nonatomic, strong, readonly) BTUIKMobileNumberFormField *mobilePhoneFieldSwift
var mobilePhoneField: UnsafeMutablePointer<Int32> { get } -
If the form is valid, returns a BTCardRequest using the values of the form fields. Otherwise
nil.Declaration
Objective-C
@property (nonatomic, strong, readonly, nullable) BTCardRequest *cardRequest;Swift
var cardRequest: BTCardRequest? { get } -
The BTCardCapabilities used to update the form after checking the card number. Applicable when UnionPay is enabled.
Declaration
Objective-C
@property (nonatomic, strong, readonly, nullable) BTCardCapabilities *cardCapabilities;Swift
var cardCapabilities: BTCardCapabilities? { get } -
The card network types supported by this merchant
Declaration
Objective-C
@property (nonatomic, copy) NSArray<NSNumber *> *_Nonnull supportedCardTypes;Swift
var supportedCardTypes: [NSNumber] { get set } -
Resets the state of the form fields
Declaration
Objective-C
- (void)resetForm;Swift
func resetForm()
View on GitHub
BTCardFormViewController Class Reference