Package 

Interface CardUiComponentInteraction

  • 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.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • 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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • Method Detail

      • 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, otherwise false.
      • 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.