public final class CardComponent
extends <any>
Modifier and Type | Field and Description |
---|---|
static <any> |
PROVIDER |
Constructor and Description |
---|
CardComponent(PaymentMethod paymentMethod,
CardConfiguration configuration)
Constructs a
CardComponent object. |
CardComponent(StoredPaymentMethod paymentMethod,
CardConfiguration configuration)
Constructs a
CardComponent object. |
Modifier and Type | Method and Description |
---|---|
protected CardComponentState |
createComponentState() |
protected CardOutputData |
getOutputData() |
CardInputData |
getStoredPaymentInputData() |
protected java.util.List<CardType> |
getSupportedFilterCards() |
java.lang.String[] |
getSupportedPaymentMethodTypes() |
boolean |
isHolderNameRequire()
Return false when
isStoredPaymentMethod() is true. |
boolean |
isStoredPaymentMethod() |
protected void |
observeOutputData(LifecycleOwner lifecycleOwner,
<any> observer) |
protected CardOutputData |
onInputDataChanged(CardInputData inputData) |
boolean |
showStorePaymentField() |
public CardComponent(StoredPaymentMethod paymentMethod, CardConfiguration configuration)
CardComponent
object.paymentMethod
- PaymentMethod
represents card payment method.configuration
- CardConfiguration
.public CardComponent(PaymentMethod paymentMethod, CardConfiguration configuration)
CardComponent
object.paymentMethod
- PaymentMethod
represents card payment method.configuration
- CardConfiguration
.public boolean isStoredPaymentMethod()
public CardInputData getStoredPaymentInputData()
public boolean isHolderNameRequire()
isStoredPaymentMethod()
is true.public boolean showStorePaymentField()
protected CardOutputData onInputDataChanged(CardInputData inputData)
public java.lang.String[] getSupportedPaymentMethodTypes()
protected CardComponentState createComponentState()
protected void observeOutputData(LifecycleOwner lifecycleOwner, <any> observer)
protected CardOutputData getOutputData()
protected java.util.List<CardType> getSupportedFilterCards()