public class GooglePaymentCardNonce
extends PaymentMethodNonce
implements android.os.Parcelable
PaymentMethodNonce representing a Google Payments card.PaymentMethodNonce| Modifier and Type | Field and Description |
|---|---|
static android.os.Parcelable.Creator<GooglePaymentCardNonce> |
CREATOR |
| Constructor and Description |
|---|
GooglePaymentCardNonce() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
fromJson(org.json.JSONObject json) |
static GooglePaymentCardNonce |
fromJson(java.lang.String json)
Convert an API response to a
GooglePaymentCardNonce. |
static GooglePaymentCardNonce |
fromPaymentData(PaymentData paymentData)
Convert
PaymentData to a GooglePaymentCardNonce. |
UserAddress |
getBillingAddress() |
BinData |
getBinData() |
java.lang.String |
getCardType() |
java.lang.String |
getEmail() |
java.lang.String |
getLastFour() |
java.lang.String |
getLastTwo() |
UserAddress |
getShippingAddress() |
java.lang.String |
getTypeLabel() |
void |
writeToParcel(android.os.Parcel dest,
int flags) |
public static final android.os.Parcelable.Creator<GooglePaymentCardNonce> CREATOR
public static GooglePaymentCardNonce fromPaymentData(PaymentData paymentData) throws org.json.JSONException
PaymentData to a GooglePaymentCardNonce.paymentData - the PaymentData from a Google Payments response.GooglePaymentCardNonce.org.json.JSONException - when parsing the response fails.public static GooglePaymentCardNonce fromJson(java.lang.String json) throws org.json.JSONException
GooglePaymentCardNonce.json - Raw JSON response from Braintree of a GooglePaymentCardNonce.GooglePaymentCardNonce.org.json.JSONException - when parsing the response fails.protected void fromJson(org.json.JSONObject json)
throws org.json.JSONException
org.json.JSONExceptionpublic java.lang.String getCardType()
public java.lang.String getLastTwo()
public java.lang.String getLastFour()
public java.lang.String getEmail()
public UserAddress getBillingAddress()
public UserAddress getShippingAddress()
public BinData getBinData()
GooglePaymentCardNoncepublic java.lang.String getTypeLabel()
public void writeToParcel(android.os.Parcel dest,
int flags)
writeToParcel in interface android.os.Parcelable