PaymentSDK
Mobile payment SDK
de.wirecard.paymentsdk.WirecardCardFormFragment Class Reference

Contains input fields for card data. More...

+ Inheritance diagram for de.wirecard.paymentsdk.WirecardCardFormFragment:
+ Collaboration diagram for de.wirecard.paymentsdk.WirecardCardFormFragment:

Classes

class  Builder
 

Public Class Methods

static WirecardCardFormFragment newInstance (int textSize, int textColorID, int hintColorID)
 Returns WirecardCardFormFragment new instance. Use this method if you want to set text size and color for input fields. More...
 

Public Instance Methods

View onCreateView (LayoutInflater inflater,@Nullable ViewGroup container,@Nullable Bundle savedInstanceState)
 
void onViewCreated (View view,@Nullable Bundle savedInstanceState)
 
void onSaveInstanceState (Bundle outState)
 
void clearAllFields ()
 Clears all input fields. More...
 
void setLocale (String locale)
 Set locale for card form fragment. More...
 
String getCardBrand ()
 Returns brand of card entered by user. More...
 
boolean isCardValid ()
 Whether all card data provided by user are valid. More...
 
String getLocale ()
 Get locale for card form fragment. More...
 
WirecardExtendedCardPayment getWirecardExtendedCardPayment () throws WirecardException
 Returns WirecardExtendedCardPayment object with appended card data if provided by user. More...
 

Static Public Attributes

static final int INPUT_UNSPECIFIED = -1
 

Private Instance Methods

WirecardExtendedCardPayment appendData (WirecardExtendedCardPayment wirecardExtendedCardPayment) throws WirecardException
 

Private Fields

CardFormComponent mCardFormComponent
 
String mLocale
 
WirecardExtendedCardPayment mWirecardExtendedCardPayment
 

Static Private Attributes

static final String KEY_PAYMENT = "KEY_PAYMENT"
 
static final String KEY_TEXT_SIZE = "KEY_TEXT_SIZE"
 
static final String KEY_TEXT_COLOR = "KEY_TEXT_COLOR"
 
static final String KEY_HIDE_CARD_ICON = "KEY_HIDE_CARD_ICON"
 
static final String KEY_HINT_COLOR = "KEY_HINT_COLOR"
 
static final String KEY_LOCALE = "KEY_LOCALE"
 
static final String KEY_EXP_DATE = "KEY_EXP_DATE"
 
static final String KEY_CARD_BRAND = "KEY_CARD_BRAND"
 
static final String KEY_REQUEST_FOCUS = "KEY_REQUEST_FOCUS"
 
static final String KEY_SUPPORTED_CARD_BRANDS = "KEY_SUPPORTED_CARD_BRANDS"
 

Detailed Description

Contains input fields for card data.

Method Documentation

WirecardExtendedCardPayment de.wirecard.paymentsdk.WirecardCardFormFragment.appendData ( WirecardExtendedCardPayment  wirecardExtendedCardPayment) throws WirecardException
inlineprivate
void de.wirecard.paymentsdk.WirecardCardFormFragment.clearAllFields ( )
inline

Clears all input fields.

String de.wirecard.paymentsdk.WirecardCardFormFragment.getCardBrand ( )
inline

Returns brand of card entered by user.

Returns
Card brand.
String de.wirecard.paymentsdk.WirecardCardFormFragment.getLocale ( )
inline

Get locale for card form fragment.

WirecardExtendedCardPayment de.wirecard.paymentsdk.WirecardCardFormFragment.getWirecardExtendedCardPayment ( ) throws WirecardException
inline

Returns WirecardExtendedCardPayment object with appended card data if provided by user.

Returns
WirecardExtendedCardPayment object with appended card data if provided by user.
Exceptions
WirecardExceptionwhen card form not initialized yet.
boolean de.wirecard.paymentsdk.WirecardCardFormFragment.isCardValid ( )
inline

Whether all card data provided by user are valid.

Returns
Whether all card data provided by user are valid.
static WirecardCardFormFragment de.wirecard.paymentsdk.WirecardCardFormFragment.newInstance ( int  textSize,
int  textColorID,
int  hintColorID 
)
inlinestatic

Returns WirecardCardFormFragment new instance. Use this method if you want to set text size and color for input fields.

Parameters
textSizenew text size of input fields. in SP units.
textColorIDresource ID for text color.
hintColorIDresource ID for hint color.
Returns
WirecardCardFormFragment new instance.
Deprecated:
use #WirecardCardFormFragment.Builder to create instance of this fragment.
View de.wirecard.paymentsdk.WirecardCardFormFragment.onCreateView ( LayoutInflater  inflater,
@Nullable ViewGroup  container,
@Nullable Bundle  savedInstanceState 
)
inline
void de.wirecard.paymentsdk.WirecardCardFormFragment.onSaveInstanceState ( Bundle  outState)
inline
void de.wirecard.paymentsdk.WirecardCardFormFragment.onViewCreated ( View  view,
@Nullable Bundle  savedInstanceState 
)
inline
void de.wirecard.paymentsdk.WirecardCardFormFragment.setLocale ( String  locale)
inline

Set locale for card form fragment.

Member Data Documentation

final int de.wirecard.paymentsdk.WirecardCardFormFragment.INPUT_UNSPECIFIED = -1
static

Use this flag when you don't want to change property settings.

final String de.wirecard.paymentsdk.WirecardCardFormFragment.KEY_CARD_BRAND = "KEY_CARD_BRAND"
staticprivate
final String de.wirecard.paymentsdk.WirecardCardFormFragment.KEY_EXP_DATE = "KEY_EXP_DATE"
staticprivate
final String de.wirecard.paymentsdk.WirecardCardFormFragment.KEY_HIDE_CARD_ICON = "KEY_HIDE_CARD_ICON"
staticprivate
final String de.wirecard.paymentsdk.WirecardCardFormFragment.KEY_HINT_COLOR = "KEY_HINT_COLOR"
staticprivate
final String de.wirecard.paymentsdk.WirecardCardFormFragment.KEY_LOCALE = "KEY_LOCALE"
staticprivate
final String de.wirecard.paymentsdk.WirecardCardFormFragment.KEY_PAYMENT = "KEY_PAYMENT"
staticprivate
final String de.wirecard.paymentsdk.WirecardCardFormFragment.KEY_REQUEST_FOCUS = "KEY_REQUEST_FOCUS"
staticprivate
final String de.wirecard.paymentsdk.WirecardCardFormFragment.KEY_SUPPORTED_CARD_BRANDS = "KEY_SUPPORTED_CARD_BRANDS"
staticprivate
final String de.wirecard.paymentsdk.WirecardCardFormFragment.KEY_TEXT_COLOR = "KEY_TEXT_COLOR"
staticprivate
final String de.wirecard.paymentsdk.WirecardCardFormFragment.KEY_TEXT_SIZE = "KEY_TEXT_SIZE"
staticprivate
CardFormComponent de.wirecard.paymentsdk.WirecardCardFormFragment.mCardFormComponent
private
String de.wirecard.paymentsdk.WirecardCardFormFragment.mLocale
private
WirecardExtendedCardPayment de.wirecard.paymentsdk.WirecardCardFormFragment.mWirecardExtendedCardPayment
private