-
- 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 IntegernumberOfInstallmentsprivate StringthreeDS2AuthParams
-
Method Summary
Modifier and Type Method Description IntegergetNumberOfInstallments()Returns the number of installments the payment should be split into BaseCardPaymentParamssetNumberOfInstallments(@Nullable() Integer numberOfInstallments)Sets the number of installments the payment should be split into StringgetThreeDS2AuthParams()Returns params required for 3-D Secure 2 authentication request BaseCardPaymentParamssetThreeDS2AuthParams(@Nullable() String threeDS2AuthParams)Sets params needed for 3-D Secure 2 authentication request static booleanisCvvValid(@Nullable() String cvv)Checks if cvv is valid. voidmask()Map<String, String>getParamsForRequest()Returns a map of all parameters needed for card transaction. intdescribeContents()voidwriteToParcel(Parcel dest, int flags)booleanequals(@Nullable() Object o)inthashCode()-
-
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()
-
-
-
-