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 *cardNumberField
Swift
var cardNumberField: UnsafeMutablePointer<Int32> { get }
-
The cardholder name form field
Declaration
Objective-C
@property (nonatomic, strong, readonly) BTUIKCardholderNameFormField *cardholderNameField
Swift
var cardholderNameField: UnsafeMutablePointer<Int32> { get }
-
The expiration date form field.
Declaration
Objective-C
@property (nonatomic, strong, readonly) BTUIKExpiryFormField *expirationDateField
Swift
var expirationDateField: UnsafeMutablePointer<Int32> { get }
-
The security code (ccv) form field.
Declaration
Objective-C
@property (nonatomic, strong, readonly) BTUIKSecurityCodeFormField *securityCodeField
Swift
var securityCodeField: UnsafeMutablePointer<Int32> { get }
-
The postal code form field.
Declaration
Objective-C
@property (nonatomic, strong, readonly) BTUIKPostalCodeFormField *postalCodeField
Swift
var postalCodeField: UnsafeMutablePointer<Int32> { get }
-
The mobile country code form field.
Declaration
Objective-C
@property (nonatomic, strong, readonly) BTUIKMobileCountryCodeFormField *mobileCountryCodeField
Swift
var mobileCountryCodeField: UnsafeMutablePointer<Int32> { get }
-
The mobile phone number field.
Declaration
Objective-C
@property (nonatomic, strong, readonly) BTUIKMobileNumberFormField *mobilePhoneField
Swift
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()