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