PaymentSDK
Mobile payment SDK
WDCardStyle Class Reference

Style class for WDCardPayment method. More...

#import <WDCardStyle.h>

+ Inheritance diagram for WDCardStyle:
+ Collaboration diagram for WDCardStyle:

Properties

NSStringcardholderPlaceholder
 First name and last name text field used with [UITextField placeholder]. More...
 
NSStringcardNumberPlaceholder
 Card number text field used with [UITextField placeholder]. More...
 
NSStringexpiryDatePlaceholder
 Exppiry date text field used with [UITextField placeholder]. More...
 
NSStringsecurityCodePlaceholder
 Security code text field used with [UITextField placeholder]. More...
 
NSStringscanTitle
 Scan title used with [UIBarButtonItem initWithTitle:style:target:action:]. More...
 
BOOL scanButtonHidden
 Scan button visibility in toolbar. More...
 
WDCardStyleLayout layout
 Animated card in full screen card payment. More...
 
NSSet< NSNumber * > * supportedCardBrands
 Set of supported card brands. More...
 
- Properties inherited from WDNativeStyle
UILabel * orderLabelStyled
 UILabel prototype. More...
 
NSStringorderLabelText
 Order Total label value used by [UILabel text]. More...
 
UILabel * labelStyled
 UILabel prototype. More...
 
UITextField * textFieldStyled
 UITextField prototype. More...
 
UIButton * submitButtonStyled
 Submit button prototype. More...
 
NSStringsubmitButtonTitle
 Submit button title used by [UIButton setTitle:forState:]. More...
 
UIViewunderlineViewStyled
 security code underline UIView prototype. More...
 
- Properties inherited from WDBaseStyle
UIViewmainViewStyled
 main UIView prototype. More...
 
UIViewheaderViewStyled
 header UIView prototype. More...
 
UILabel * headerLabelStyled
 Card header title UILabel prototype. More...
 
NSStringheaderLabelText
 Header label value used by [UILabel text]. More...
 
UIButton * cancelButtonStyled
 Cancel button prototype. More...
 
NSStringcancelButtonTitle
 Cancel button title used with [cancelButton setTitle:cancelButtonTitle forState:UIControlStateNormal]. More...
 
- Properties inherited from WDStyle
WDLocale locale
 WDLocale enum used to localize native UI. More...
 

Additional Inherited Members

- Public Class Methods inherited from NSObject
(id+ alloc
 
(Class+ class
 
(void) + initialize
 
(void) + load
 
(id+ new
 
- Public Instance Methods inherited from NSObject
(Class- classForCoder
 
(id- copy
 
(void) - dealloc
 
(void) - finalize
 
(id- init
 
(id- mutableCopy
 
- Public Instance Methods inherited from <NSObject>
(NSString *) - description
 
(NSUInteger- hash
 
(BOOL- isEqual:
 

Detailed Description

Style class for WDCardPayment method.

Property Documentation

- (NSString*) cardholderPlaceholder
readwritenonatomicstrong

First name and last name text field used with [UITextField placeholder].

Overrides default localized value.

- (NSString*) cardNumberPlaceholder
readwritenonatomicstrong

Card number text field used with [UITextField placeholder].

Overrides default localized value.

- (NSString*) expiryDatePlaceholder
readwritenonatomicstrong

Exppiry date text field used with [UITextField placeholder].

Overrides default localized value.

- (WDCardStyleLayout) layout
readwritenonatomicassign

Animated card in full screen card payment.

Setting this property to WDCardPaymentVCStyleAnimated shows the animated card in full screen card payment, default value is WDCardPaymentVCStyleDefault

- (BOOL) scanButtonHidden
readwritenonatomicassign

Scan button visibility in toolbar.

Setting this property to YES hides the scan option in the toolbar, default value is NO

- (NSString*) scanTitle
readwritenonatomicstrong

Scan title used with [UIBarButtonItem initWithTitle:style:target:action:].

Overrides default localized value.

- (NSString*) securityCodePlaceholder
readwritenonatomicstrong

Security code text field used with [UITextField placeholder].

Overrides default localized value.

- (NSSet<NSNumber *>*) supportedCardBrands
readwritenonatomicstrong

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:

style.supportedCardBrands = [NSSet setWithObjects:@(WDCardBrandAmex), @(WDCardBrandMasterCard), @(WDCardBrandVisa), nil];