PaymentSDK
Mobile payment SDK
|
Field for collecting card data. More...
#import <WDCardField.h>
Public Instance Methods | |
(void) | - clear |
Resets all of the contents of all of the fields. More... | |
Properties | |
IBOutlet id< WDCardFieldDelegate > | delegate |
The receiver’s delegate. More... | |
WDCard * | card |
Non-sensitive card data. More... | |
IBInspectable BOOL | cardBrandHidden |
A Boolean value that determines whether the card brand icon is hidden. More... | |
WDCardPayment * | cardPayment |
Payment object where card data are appended. More... | |
UIColor * | cursorColor |
The cursor color for the field. More... | |
IBInspectable UIFont * | font |
The font used in each UITextField and number format UILabel. More... | |
UIKeyboardAppearance | keyboardAppearance |
The keyboard appearance for the field. More... | |
WDLocale | locale |
WDLocale enum used to localize. More... | |
IBInspectable UIColor * | placeholderColor |
The text placeholder color used in each child field. More... | |
IBInspectable UIColor * | textColor |
The text color to be used when entering valid text. More... | |
IBInspectable UIColor * | textErrorColor |
The text color to be used when the user has entered invalid information, such as an invalid card number. More... | |
IBInspectable NSString * | numberPlaceholder |
The placeholder for the card number field. More... | |
IBInspectable NSString * | expirationMonthPlaceholder |
The placeholder for the expiration month field. More... | |
IBInspectable NSString * | expirationYearPlaceholder |
The placeholder for the expiration year field. More... | |
IBInspectable NSString * | securityCodePlaceholder |
The placeholder for the security code field. More... | |
NSSet< NSNumber * > * | supportedCardBrands |
Set of supported card brands. More... | |
BOOL | valid |
Whether or not the field currently contains a valid card number, expiration date and security code. More... | |
Field for collecting card data.
WDCardField is a field with similar properties to UITextField, but specialized for collecting card data. It manages multiple UITextFields under the hood to collect this data. It's designed to fit on a single line, and from a design perspective can be used anywhere a UITextField would be appropriate.
- (void) clear |
Resets all of the contents of all of the fields.
If the field is currently being edited, the number field will become selected.
|
readwritenonatomiccopy |
Non-sensitive card data.
It is convenient to set the data if you collect security code only. According [WDCard brand] security code is validated.
|
readwritenonatomicassign |
A Boolean value that determines whether the card brand icon is hidden.
Default value is NO
|
readwritenonatomicstrong |
Payment object where card data are appended.
If [WDCardPayment token] is set WDCardField collects only security code. It clears user input.
|
readwritenonatomiccopy |
The cursor color for the field.
This is a proxy for the view's tintColor property, exposed for clarity only (in other words, calling setCursorColor is identical to calling setTintColor).
|
readwritenonatomicweak |
The receiver’s delegate.
You can use the delegate to respond to the card data entered by the user
|
readwritenonatomiccopy |
The placeholder for the expiration month field.
Defaults to localized "MM".
|
readwritenonatomiccopy |
The placeholder for the expiration year field.
Defaults to localized "YY".
|
readwritenonatomiccopy |
The font used in each UITextField and number format UILabel.
Default is [UIFont fontWithName:"Menlo-Regular" size:15.0]. Set this property to nil to reset to the default. Monospace fonts are preferred as during number typing number format does not change width.
|
readwritenonatomicassign |
The keyboard appearance for the field.
Default is UIKeyboardAppearanceDefault.
|
readwritenonatomicassign |
WDLocale enum used to localize.
Localization of WDCardField happens in following order:
|
readwritenonatomiccopy |
The placeholder for the card number field.
Default is localized "Credit Card Number".
|
readwritenonatomiccopy |
The text placeholder color used in each child field.
Default is [UIColor lightGrayColor]. Set this property to nil to reset to the default.
|
readwritenonatomiccopy |
The placeholder for the security code field.
Defaults to "CVC".
Set of supported card brands.
If supportedCardBrands is set and does not contain recognized card brand of user card number the state changes to WDCardFieldStateCardUnsupported. Set can contain NSNumbers with WDCardBrand values. Example:
cardField.supportedCardBrands = [NSSet setWithObjects:@(WDCardBrandAmex), @(WDCardBrandMasterCard), @(WDCardBrandVisa), nil];
|
readwritenonatomiccopy |
The text color to be used when entering valid text.
Default is [UIColor blackColor]. Set this property to nil to reset to the default.
|
readwritenonatomiccopy |
The text color to be used when the user has entered invalid information, such as an invalid card number.
Default is [UIColor redColor]. Set this property to nil to reset to the default.
|
readnonatomicassign |
Whether or not the field currently contains a valid card number, expiration date and security code.