Class BankAccountPaymentParams

  • All Implemented Interfaces:
    android.os.Parcelable

    
    public class BankAccountPaymentParams
    extends PaymentParams
                        

    Represents payment parameters for bank account, providing access to holder, iban, country and bank.

    • Constructor Detail

    • Method Detail

      • createDirectDebitSepaPaymentParams

        @NonNull() static BankAccountPaymentParams createDirectDebitSepaPaymentParams(@NonNull() String checkoutId, @NonNull() String holder, @NonNull() String iban, boolean isTokenizationEnabled)

        Creates the payment parameters for DIRECTDEBIT_SEPA payment brand.

        Parameters:
        checkoutId - The checkout id.
        holder - The name of the bank account holder.
        iban - The IBAN (International Bank Account Number) associated with the bank account.
        isTokenizationEnabled - If true the payment information will be stored for future use.
        Returns:

        The bank account payment parameters.

      • createGiroPayPaymentParams

        @NonNull() static BankAccountPaymentParams createGiroPayPaymentParams(@NonNull() String checkoutId, @Nullable() String iban, @Nullable() String accountNumber, @Nullable() String bic, @Nullable() String bankCode)

        Creates the payment parameters for GIROPAY payment brand.

        Parameters:
        checkoutId - The checkout id.
        iban - The IBAN (International Bank Account Number) associated with the bank account.
        accountNumber - The account number of the bank account.
        bic - The BIC (Bank Identifier Code (SWIFT)) number of the bank account.
        bankCode - The code associated with the bank account.
        Returns:

        The bank account payment parameters.

      • createAciInstantPayPaymentParams

        @NonNull() static BankAccountPaymentParams createAciInstantPayPaymentParams(@NonNull() String checkoutId, @NonNull() String accountHolder, @NonNull() String accountNumber, @NonNull() String routingNumber, @NonNull() String country)

        Creates the payment parameters for ACI INSTANT PAY payment brand.

        Parameters:
        checkoutId - The checkout id.
        accountHolder - The account holder of the bank account.
        accountNumber - The account number of the bank account.
        routingNumber - The routing number associated with the bank account.
        country - The country code, supported values are NL, DE, FR, BE, LV, EE, LT, ES, AT, IT, PT, GB, US.
        Returns:

        The bank account payment parameters.

      • createSofortPaymentParams

        @NonNull() static BankAccountPaymentParams createSofortPaymentParams(@NonNull() String checkoutId, @NonNull() String country)

        Creates the payment parameters for SOFORTUEBERWEISUNG payment brand.

        Parameters:
        checkoutId - The checkout id of the transaction.
        country - The country code of the bank account in the following format [a-zA-Z]{2} (ISO 3166-1).
        Returns:

        The bank account payment parameters.

      • createIdealTwoPaymentParams

        @NonNull() static BankAccountPaymentParams createIdealTwoPaymentParams(@NonNull() String checkoutId, @NonNull() String country)

        Creates the payment parameters for IDEAL payment brand. Use this method to create payment parameters for iDEAL 2.0.

        Parameters:
        checkoutId - The checkout id.
        country - The country code of the bank account in the following format [a-zA-Z]{2} (ISO 3166-1).
        Returns:

        The bank account payment parameters.

      • getIban

        @Nullable() String getIban()

        Returns the IBAN (International Bank Account Number).

        Returns:

        The IBAN.

      • isTokenizationEnabled

         boolean isTokenizationEnabled()

        Returns true if the payment information will be stored for future use.

        Returns:

        true if the payment information will be stored for future use, false otherwise.

      • isHolderValid

         static boolean isHolderValid(@Nullable() String holderName)

        Returns true if the holder name is valid.

        Parameters:
        holderName - The holder name for validation.
        Returns:

        true if the holder name is valid, false otherwise.

      • isIbanValid

         static boolean isIbanValid(@Nullable() String iban)

        Returns true if the IBAN is valid.

        Parameters:
        iban - The IBAN for validation.
        Returns:

        true if the IBAN is valid, false otherwise.

      • isAccountNumberValid

         static boolean isAccountNumberValid(@Nullable() String accountNumber)

        Returns true if the Account Number is valid.

        Parameters:
        accountNumber - The Account Number for validation.
        Returns:

        true if the Account Number is valid, false otherwise.

      • isBicValid

         static boolean isBicValid(@Nullable() String bic)

        Returns true if the BIC is valid.

        Parameters:
        bic - The BIC for validation.
        Returns:

        true if the BIC is valid, false otherwise.

      • isBankCodeValid

         static boolean isBankCodeValid(@Nullable() String bankCode)

        Returns true if the Bank Code is valid.

        Parameters:
        bankCode - The Bank Code for validation.
        Returns:

        true if the Bank Code is valid; false otherwise.

      • isRoutingNumberValid

         static boolean isRoutingNumberValid(@Nullable() String routingNumber)

        Returns true if the routing number is valid.

        Parameters:
        routingNumber - The routing number for validation.
        Returns:

        true if the routing number is valid; false otherwise.

      • isCountryValid

         static boolean isCountryValid(@Nullable() String country)

        Returns true if the country code is valid.

        Parameters:
        country - The country code for validation.
        Returns:

        true if the country code is valid, false otherwise.

      • isBankNameValid

         static boolean isBankNameValid(@Nullable() String bankName)

        Returns true if the bank name is valid.

        Parameters:
        bankName - The bank name for validation.
        Returns:

        true if the bank name is valid, false otherwise.