-
- All Implemented Interfaces:
-
android.os.Parcelable
public abstract class BaseCardPaymentParams extends PaymentParams implements Parcelable
Represents base payment parameters for common and tokenized cards.
-
-
Field Summary
Fields Modifier and Type Field Description private Integer
numberOfInstallments
private String
threeDS2AuthParams
-
Method Summary
Modifier and Type Method Description Integer
getNumberOfInstallments()
Returns the number of installments the payment should be split into BaseCardPaymentParams
setNumberOfInstallments(@Nullable() Integer numberOfInstallments)
Sets the number of installments the payment should be split into String
getThreeDS2AuthParams()
Returns params required for 3-D Secure 2 authentication request BaseCardPaymentParams
setThreeDS2AuthParams(@Nullable() String threeDS2AuthParams)
Sets params needed for 3-D Secure 2 authentication request static boolean
isCvvValid(@Nullable() String cvv)
Checks if cvv is valid. void
mask()
Map<String, String>
getParamsForRequest()
Returns a map of all parameters needed for card transaction. int
describeContents()
void
writeToParcel(Parcel dest, int flags)
boolean
equals(@Nullable() Object o)
int
hashCode()
-
-
Method Detail
-
getNumberOfInstallments
@Nullable() Integer getNumberOfInstallments()
Returns the number of installments the payment should be split into
-
setNumberOfInstallments
@NonNull() BaseCardPaymentParams setNumberOfInstallments(@Nullable() Integer numberOfInstallments)
Sets the number of installments the payment should be split into
- Parameters:
numberOfInstallments
- The number of installments the payment should be split into
-
getThreeDS2AuthParams
@Nullable() String getThreeDS2AuthParams()
Returns params required for 3-D Secure 2 authentication request
-
setThreeDS2AuthParams
@NonNull() BaseCardPaymentParams setThreeDS2AuthParams(@Nullable() String threeDS2AuthParams)
Sets params needed for 3-D Secure 2 authentication request
- Parameters:
threeDS2AuthParams
- params needed for 3-D Secure 2 authentication request
-
isCvvValid
static boolean isCvvValid(@Nullable() String cvv)
Checks if cvv is valid.
- Parameters:
cvv
- The cvv value
-
mask
void mask()
-
getParamsForRequest
@NonNull() Map<String, String> getParamsForRequest()
Returns a map of all parameters needed for card transaction.
-
describeContents
int describeContents()
-
writeToParcel
void writeToParcel(Parcel dest, int flags)
-
hashCode
int hashCode()
-
-
-
-