-
- All Implemented Interfaces:
-
com.oppwa.mobile.connect.checkout.uicomponent.PaymentDetailsUiComponentInteraction
,com.oppwa.mobile.connect.checkout.uicomponent.UiComponentInteraction
public interface CardUiComponentInteraction implements PaymentDetailsUiComponentInteraction
Provides methods to interact with CardUiComponent.
-
-
Method Summary
Modifier and Type Method Description abstract String
getCardBrand()
Returns the current card brand. abstract void
setCardBrand(@Nullable() String cardBrand)
Changes the current card brand. abstract void
setTokenizationEnabled(boolean isTokenizationEnabled)
Indicates whether card should be tokenized or not. abstract void
setNumberOfInstallments(int numberOfInstallments)
Sets the number of installments. abstract void
scanCard()
Initiates card scanning process if at least one of the scanning methods is available. abstract boolean
isCardScanningAvailable()
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
-True
if 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.
-
-
-
-