Parcelable representing a payment data response, which contains the necessary payment result to complete the payment. See the available fields for more information.
| public static final Creator<PaymentData> | CREATOR |
| static PaymentData | |
| CardInfo |
getCardInfo()
This method is deprecated. Instead use the JSON request format (see
fromJson(String)) which will allow you to get the same data in JSON
response format (see toJson()).
|
| String |
getEmail()
This method is deprecated. Instead use the JSON request format (see
fromJson(String)) which will allow you to get the same data in JSON
response format (see toJson()).
|
| Bundle |
getExtraData()
This method is deprecated. Instead use the JSON request format (see
fromJson(String)) which will allow you to get the same data in JSON
response format (see toJson()).
|
| static PaymentData | |
| String |
getGoogleTransactionId()
This method is deprecated. Instead use the JSON request format (see
fromJson(String)) which will allow you to get the same data in JSON
response format (see toJson()).
|
| PaymentMethodToken |
getPaymentMethodToken()
This method is deprecated. Instead use the JSON request format (see
fromJson(String)) which will allow you to get the same data in JSON
response format (see toJson()).
|
| UserAddress |
getShippingAddress()
This method is deprecated. Instead use the JSON request format (see
fromJson(String)) which will allow you to get the same data in JSON
response format (see toJson()).
|
| void |
putIntoIntent(Intent
intent)
Saves the current
PaymentData
instance as an extra in the given Intent.
|
| String |
toJson()
Returns
PaymentData
in JSON format.
|
| void |
writeToParcel(Parcel dest, int
flags)
|
Constructs PaymentData
from a JSON object serialized as a string.
To convert back to a JSON object serialized as string use toJson().
Note that you shouldn't rely on the values returned by getters in PaymentData
as they will not be populated with the data set in the given JSON.
For the expected format of this JSON, please see PaymentData object reference documentation.
This method is deprecated.
Instead use the JSON request format (see
fromJson(String)) which will allow you to get the same data in JSON response
format (see toJson()).
This method is deprecated.
Instead use the JSON request format (see
fromJson(String)) which will allow you to get the same data in JSON response
format (see toJson()).
This method is deprecated.
Instead use the JSON request format (see
fromJson(String)) which will allow you to get the same data in JSON response
format (see toJson()).
Gets the PaymentData
stored in the given Intent
extra.
Use this method to extract PaymentData from the Intent received in
onActivityResult(int, int, Intent).
This method is deprecated.
Instead use the JSON request format (see
fromJson(String)) which will allow you to get the same data in JSON response
format (see toJson()).
This method is deprecated.
Instead use the JSON request format (see
fromJson(String)) which will allow you to get the same data in JSON response
format (see toJson()).
Gets the token representing the payment method selected by the buyer for a
transaction tokenized according to
PaymentMethodTokenizationParameters passed with corresponding PaymentDataRequest.
null if
PaymentMethodTokenizationParameters is not set. See
setPaymentMethodTokenizationParameters(PaymentMethodTokenizationParameters).This method is deprecated.
Instead use the JSON request format (see
fromJson(String)) which will allow you to get the same data in JSON response
format (see toJson()).
Saves the current PaymentData
instance as an extra in the given Intent.
Returns PaymentData
in JSON format.
Note that this will be null if PaymentDataRequest
was not constructed using
fromJson(String).
For the expected format of this JSON, please see PaymentData object reference documentation.