-
- All Implemented Interfaces:
-
com.oppwa.mobile.connect.checkout.uicomponent.PaymentDetailsUiComponentInteraction,com.oppwa.mobile.connect.checkout.uicomponent.UiComponentInteraction
public interface CardUiComponentInteraction implements PaymentDetailsUiComponentInteractionProvides methods to interact with CardUiComponent.
-
-
Method Summary
Modifier and Type Method Description abstract StringgetCardBrand()Returns the current card brand. abstract voidsetCardBrand(@Nullable() String cardBrand)Changes the current card brand. abstract voidsetTokenizationEnabled(boolean isTokenizationEnabled)Indicates whether card should be tokenized or not. abstract voidsetNumberOfInstallments(int numberOfInstallments)Sets the number of installments. abstract voidscanCard()Initiates card scanning process if at least one of the scanning methods is available. abstract booleanisCardScanningAvailable()Indicates whether the card scanning functionality is available or not. -
-
Method Detail
-
getCardBrand
@Nullable() abstract String getCardBrand()
Returns the current card brand.
-
setCardBrand
abstract void setCardBrand(@Nullable() String cardBrand)
Changes the current card brand.
- Parameters:
cardBrand- The card brand.
-
setTokenizationEnabled
abstract void setTokenizationEnabled(boolean isTokenizationEnabled)
Indicates whether card should be tokenized or not.
- Parameters:
isTokenizationEnabled-Trueif card must be tokenized, otherwisefalse.
-
setNumberOfInstallments
abstract void setNumberOfInstallments(int numberOfInstallments)
Sets the number of installments.
- Parameters:
numberOfInstallments- The number of installments.
-
scanCard
abstract void scanCard()
Initiates card scanning process if at least one of the scanning methods is available. The scan result will be handled by UI Component.
-
isCardScanningAvailable
abstract boolean isCardScanningAvailable()
Indicates whether the card scanning functionality is available or not.
-
-
-
-