-
- 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 protected booleanisTokenizationEnabledpublic final static Parcelable.Creator<BankAccountPaymentParams>CREATOR
-
Method Summary
Modifier and Type Method Description booleanisTokenizationEnabled()Returns trueif the payment information will be stored for future use.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. 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
-
isTokenizationEnabled
boolean isTokenizationEnabled()
Returns
trueif the payment information will be stored for future use.
-
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.
-
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.
-
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.
-
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).
-
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.
-
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.
-
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).
-
createPaytrailPaymentParams
@NonNull() static BankAccountPaymentParams createPaytrailPaymentParams(@NonNull() String checkoutId)
Creates the payment parameters for PAYTRAIL payment brand.
- Parameters:
checkoutId- The checkout id.
-
isHolderValid
static boolean isHolderValid(@Nullable() String holderName)
Returns
trueif the holder name is valid.- Parameters:
holderName- The holder name for validation.
-
isIbanValid
static boolean isIbanValid(@Nullable() String iban)
Returns
trueif the IBAN is valid.- Parameters:
iban- The IBAN for validation.
-
isAccountNumberValid
static boolean isAccountNumberValid(@Nullable() String accountNumber)
Returns
trueif the Account Number is valid.- Parameters:
accountNumber- The Account Number for validation.
-
isBicValid
static boolean isBicValid(@Nullable() String bic)
Returns
trueif the BIC is valid.- Parameters:
bic- The BIC for validation.
-
isBankCodeValid
static boolean isBankCodeValid(@Nullable() String bankCode)
Returns
trueif the Bank Code is valid.- Parameters:
bankCode- The Bank Code for validation.
-
isRoutingNumberValid
static boolean isRoutingNumberValid(@Nullable() String routingNumber)
Returns
trueif the routing number is valid.- Parameters:
routingNumber- The routing number for validation.
-
isCountryValid
static boolean isCountryValid(@Nullable() String country)
Returns
trueif the country code is valid.- Parameters:
country- The country code for validation.
-
isBankNameValid
static boolean isBankNameValid(@Nullable() String bankName)
Returns
trueif the bank name is valid.- Parameters:
bankName- The bank name for validation.
-
mask
void mask()
-
getParamsForRequest
@NonNull() Map<String, String> getParamsForRequest()
Returns a map of all parameters required for transaction.
-
getCreator
Parcelable.Creator<out Object> getCreator()
-
writeToParcel
void writeToParcel(Parcel dest, int flags)
-
hashCode
int hashCode()
-
-
-
-