Class IkanoPrivateLabelVAPaymentParams

    • Constructor Detail

      • IkanoPrivateLabelVAPaymentParams

        IkanoPrivateLabelVAPaymentParams(String checkoutId, String accountNumber, String expiryMonth, String expiryYear, String accountVerification)
        Creates an object representing Ikano private label transaction (as virtual account).
        Parameters:
        checkoutId - The checkout ID of the transaction
        accountNumber - The account number
        expiryMonth - The expiration month of the account, it is expected in MM format
        expiryYear - The expiration year, it is expected in YYYY format
        accountVerification - Verification code for the account
    • Method Detail

      • getExpiryMonth

        @NonNull() String getExpiryMonth()

        Returns the expiration month of the account, it is expected in MM format

        Returns:

        The expiration month of the account, it is expected in MM format

      • getExpiryYear

        @NonNull() String getExpiryYear()

        Returns the expiration year, it is expected in YYYY format

        Returns:

        The expiration year, it is expected in YYYY format

      • isAccountNumberValid

         static boolean isAccountNumberValid(@Nullable() String accountNumber)

        Checks if account number is valid (card number validation used)

        Parameters:
        accountNumber - The account number
        Returns:

        true if account number is valid, false otherwise

      • isExpiryMonthValid

         static boolean isExpiryMonthValid(@Nullable() String expiryMonth)

        Checks if expiration month is valid, MM format expected

        Parameters:
        expiryMonth - The expiration month of the account
        Returns:

        true if expiration month is valid, false otherwise

      • isExpiryYearValid

         static boolean isExpiryYearValid(@Nullable() String expiryYear)

        Checks if expiration year is valid, YYYY format expected

        Parameters:
        expiryYear - The expiration year of the account
        Returns:

        true if expiration year is valid, false otherwise

      • isAccountExpired

         static boolean isAccountExpired(@Nullable() String expiryMonth, @Nullable() String expiryYear)

        Checks if account is expired, expiration month and year should represent some date in the future

        Parameters:
        expiryMonth - The expiration month of the account
        expiryYear - The expiration year of the account
        Returns:

        true if the account is expired, false otherwise

      • isAccountVerificationValid

         static boolean isAccountVerificationValid(@Nullable() String accountVerification)

        Checks if verification code in valid, up to 5 digits expected

        Parameters:
        accountVerification - The verification code of the account
        Returns:

        true if the verification code is valid, false otherwise

      • getParamsForRequest

        @NonNull() Map<String, String> getParamsForRequest()

        Returns a map of all parameters needed for Ikano private label transaction.

        Returns:

        the map of all parameters needed for Ikano private label transaction