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.
-
-
Field Summary
Fields Modifier and Type Field Description public final static Parcelable.Creator<BankAccountPaymentParams>CREATOR
-
Method Summary
Modifier and Type Method Description static BankAccountPaymentParamscreateDirectDebitSepaPaymentParams(@NonNull() String checkoutId, @NonNull() String holder, @NonNull() String iban, boolean isTokenizationEnabled)Creates the payment parameters for DIRECTDEBIT_SEPA payment brand. static BankAccountPaymentParamscreateGiroPayPaymentParams(@NonNull() String checkoutId, @Nullable() String iban, @Nullable() String accountNumber, @Nullable() String bic, @Nullable() String bankCode)Creates the payment parameters for GIROPAY payment brand. static BankAccountPaymentParamscreateAciInstantPayPaymentParams(@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. static BankAccountPaymentParamscreateSofortPaymentParams(@NonNull() String checkoutId, @NonNull() String country)Creates the payment parameters for SOFORTUEBERWEISUNG payment brand. static BankAccountPaymentParamscreateIdealPaymentParams(@NonNull() String checkoutId, @NonNull() String bankName)The iDEAL 1.0is no longer supported, use createIdealTwoPaymentParams instead.static BankAccountPaymentParamscreateFPXPaymentParams(@NonNull() String checkoutId, @NonNull() String bankName)Creates the payment parameters for FPX payment brand. static BankAccountPaymentParamscreateIdealTwoPaymentParams(@NonNull() String checkoutId, @NonNull() String country)Creates the payment parameters for IDEAL payment brand. static BankAccountPaymentParamscreatePaytrailPaymentParams(@NonNull() String checkoutId)Creates the payment parameters for PAYTRAIL payment brand. StringgetHolder()Returns the holder name. StringgetIban()Returns the IBAN (International Bank Account Number). StringgetAccountNumber()Returns the account number. StringgetBic()Returns the BIC. StringgetBankCode()Returns the bank code. StringgetCountry()Returns the country code. StringgetBankName()Returns the bank name. booleanisTokenizationEnabled()Returns trueif the payment information will be stored for future use.static booleanisHolderValid(@Nullable() String holderName)Returns trueif the holder name is valid.static booleanisIbanValid(@Nullable() String iban)Returns trueif the IBAN is valid.static booleanisAccountNumberValid(@Nullable() String accountNumber)Returns trueif the Account Number is valid.static booleanisBicValid(@Nullable() String bic)Returns trueif the BIC is valid.static booleanisBankCodeValid(@Nullable() String bankCode)Returns trueif the Bank Code is valid.static booleanisRoutingNumberValid(@Nullable() String routingNumber)Returns trueif the routing number is valid.static booleanisCountryValid(@Nullable() String country)Returns trueif the country code is valid.static booleanisBankNameValid(@Nullable() String bankName)Returns trueif the bank name is valid.voidmask()Map<String, String>getParamsForRequest()Returns a map of all parameters required for transaction. Parcelable.Creator<out Object>getCreator()voidwriteToParcel(Parcel dest, int flags)booleanequals(@Nullable() Object o)inthashCode()-
-
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- Iftruethe 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.
-
createIdealPaymentParams
@Deprecated()@NonNull() static BankAccountPaymentParams createIdealPaymentParams(@NonNull() String checkoutId, @NonNull() String bankName)
The iDEAL
1.0is no longer supported, use createIdealTwoPaymentParams instead.- Parameters:
checkoutId- The checkout id.bankName- The bank name.- Returns:
The bank account payment parameters.
-
createFPXPaymentParams
@NonNull() static BankAccountPaymentParams createFPXPaymentParams(@NonNull() String checkoutId, @NonNull() String bankName)
Creates the payment parameters for FPX payment brand.
- Parameters:
checkoutId- The checkout id of the transaction.bankName- The bank name for the FPX transaction.- 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.
-
createPaytrailPaymentParams
@NonNull() static BankAccountPaymentParams createPaytrailPaymentParams(@NonNull() String checkoutId)
Creates the payment parameters for PAYTRAIL payment brand.
- Parameters:
checkoutId- The checkout id.- Returns:
The bank account payment parameters.
-
getIban
@Nullable() String getIban()
Returns the IBAN (International Bank Account Number).
- Returns:
The IBAN.
-
getAccountNumber
@Nullable() String getAccountNumber()
Returns the account number.
- Returns:
The account number.
-
getBankCode
@Nullable() String getBankCode()
Returns the bank code.
- Returns:
The bank code.
-
getCountry
@Nullable() String getCountry()
Returns the country code.
- Returns:
The country code.
-
getBankName
@Nullable() String getBankName()
Returns the bank name.
- Returns:
The bank name.
-
isTokenizationEnabled
boolean isTokenizationEnabled()
Returns
trueif the payment information will be stored for future use.- Returns:
trueif the payment information will be stored for future use,falseotherwise.
-
isHolderValid
static boolean isHolderValid(@Nullable() String holderName)
Returns
trueif the holder name is valid.- Parameters:
holderName- The holder name for validation.- Returns:
trueif the holder name is valid,falseotherwise.
-
isIbanValid
static boolean isIbanValid(@Nullable() String iban)
Returns
trueif the IBAN is valid.- Parameters:
iban- The IBAN for validation.- Returns:
trueif the IBAN is valid,falseotherwise.
-
isAccountNumberValid
static boolean isAccountNumberValid(@Nullable() String accountNumber)
Returns
trueif the Account Number is valid.- Parameters:
accountNumber- The Account Number for validation.- Returns:
trueif the Account Number is valid,falseotherwise.
-
isBicValid
static boolean isBicValid(@Nullable() String bic)
Returns
trueif the BIC is valid.- Parameters:
bic- The BIC for validation.- Returns:
trueif the BIC is valid,falseotherwise.
-
isBankCodeValid
static boolean isBankCodeValid(@Nullable() String bankCode)
Returns
trueif the Bank Code is valid.- Parameters:
bankCode- The Bank Code for validation.- Returns:
trueif the Bank Code is valid;falseotherwise.
-
isRoutingNumberValid
static boolean isRoutingNumberValid(@Nullable() String routingNumber)
Returns
trueif the routing number is valid.- Parameters:
routingNumber- The routing number for validation.- Returns:
trueif the routing number is valid;falseotherwise.
-
isCountryValid
static boolean isCountryValid(@Nullable() String country)
Returns
trueif the country code is valid.- Parameters:
country- The country code for validation.- Returns:
trueif the country code is valid,falseotherwise.
-
isBankNameValid
static boolean isBankNameValid(@Nullable() String bankName)
Returns
trueif the bank name is valid.- Parameters:
bankName- The bank name for validation.- Returns:
trueif the bank name is valid,falseotherwise.
-
mask
void mask()
-
getParamsForRequest
@NonNull() Map<String, String> getParamsForRequest()
Returns a map of all parameters required for transaction.
- Returns:
The map of all parameters required for transaction.
-
getCreator
Parcelable.Creator<out Object> getCreator()
-
writeToParcel
void writeToParcel(Parcel dest, int flags)
-
hashCode
int hashCode()
-
-
-
-