-
- All Implemented Interfaces:
-
android.os.Parcelable
public class TokenPaymentParams extends BaseCardPaymentParams implements Parcelable
Class to represent a set of parameters needed for performing token transaction.
-
-
Field Summary
Fields Modifier and Type Field Description private final StringtokenIdpublic final static Parcelable.Creator<TokenPaymentParams>CREATOR
-
Constructor Summary
Constructors Constructor Description TokenPaymentParams(String checkoutId, String tokenId, String paymentBrand)Creates an object representing a Token payment parameters. TokenPaymentParams(String checkoutId, String tokenId, String paymentBrand, String cvv)Creates an object representing a Token payment parameters.
-
Method Summary
Modifier and Type Method Description StringgetTokenId()static booleanisTokenIdValid(@Nullable() String token)Map<String, String>getParamsForRequest()Returns a map of all parameters needed for card transaction. voidwriteToParcel(Parcel dest, int flags)intdescribeContents()booleanequals(@Nullable() Object o)inthashCode()-
-
Constructor Detail
-
TokenPaymentParams
TokenPaymentParams(String checkoutId, String tokenId, String paymentBrand)
Creates an object representing a Token payment parameters.- Parameters:
checkoutId- The checkout ID of transactiontokenId- The token IDpaymentBrand- The payment brand
-
TokenPaymentParams
TokenPaymentParams(String checkoutId, String tokenId, String paymentBrand, String cvv)
Creates an object representing a Token payment parameters.- Parameters:
checkoutId- The checkout ID of transactiontokenId- The token IDpaymentBrand- The payment brand, it must be a card brandcvv- The card cvv
-
-
Method Detail
-
getTokenId
@NonNull() String getTokenId()
-
isTokenIdValid
static boolean isTokenIdValid(@Nullable() String token)
-
getParamsForRequest
@NonNull() Map<String, String> getParamsForRequest()
Returns a map of all parameters needed for card transaction.
-
writeToParcel
void writeToParcel(Parcel dest, int flags)
-
describeContents
int describeContents()
-
hashCode
int hashCode()
-
-
-
-