-
- 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 String
tokenId
public 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 String
getTokenId()
static boolean
isTokenIdValid(@Nullable() String token)
Map<String, String>
getParamsForRequest()
Returns a map of all parameters needed for card transaction. void
writeToParcel(Parcel dest, int flags)
int
describeContents()
boolean
equals(@Nullable() Object o)
int
hashCode()
-
-
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()
-
-
-
-