public class CardNonce extends PaymentMethodNonce implements android.os.Parcelable
PaymentMethodNonce
representing a credit or debit card.Modifier and Type | Field and Description |
---|---|
protected static java.lang.String |
API_RESOURCE_KEY |
static android.os.Parcelable.Creator<CardNonce> |
CREATOR |
protected static java.lang.String |
TYPE |
DATA_KEY, mDefault, mDescription, mNonce, TOKEN_KEY
Modifier | Constructor and Description |
---|---|
|
CardNonce() |
protected |
CardNonce(android.os.Parcel in) |
Modifier and Type | Method and Description |
---|---|
protected void |
fromJson(org.json.JSONObject json)
Populate properties with values from a
JSONObject . |
static CardNonce |
fromJson(java.lang.String json)
Convert an API response to a
CardNonce . |
AuthenticationInsight |
getAuthenticationInsight() |
java.lang.String |
getBin() |
BinData |
getBinData() |
java.lang.String |
getCardType() |
java.lang.String |
getLastFour() |
java.lang.String |
getLastTwo() |
ThreeDSecureInfo |
getThreeDSecureInfo() |
java.lang.String |
getTypeLabel() |
void |
writeToParcel(android.os.Parcel dest,
int flags) |
describeContents, getDescription, getJsonObjectForType, getNonce, isDefault, parsePaymentMethodNonces, parsePaymentMethodNonces, parsePaymentMethodNonces
protected static final java.lang.String TYPE
protected static final java.lang.String API_RESOURCE_KEY
public static final android.os.Parcelable.Creator<CardNonce> CREATOR
public static CardNonce fromJson(java.lang.String json) throws org.json.JSONException
CardNonce
.protected void fromJson(org.json.JSONObject json) throws org.json.JSONException
JSONObject
.fromJson
in class PaymentMethodNonce
json
- JSONObject
org.json.JSONException
- when parsing fails.public java.lang.String getTypeLabel()
getTypeLabel
in class PaymentMethodNonce
public java.lang.String getCardType()
public java.lang.String getLastTwo()
public java.lang.String getLastFour()
public ThreeDSecureInfo getThreeDSecureInfo()
CardNonce
or
null
public java.lang.String getBin()
public BinData getBinData()
CardNonce
public AuthenticationInsight getAuthenticationInsight()
AuthenticationInsight
Details about the regulatory environment and applicable customer authentication regulation
for a potential transaction. You may use this to make an informed decision whether to perform
3D Secure authentication.public void writeToParcel(android.os.Parcel dest, int flags)
writeToParcel
in interface android.os.Parcelable
writeToParcel
in class PaymentMethodNonce