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
PaymentDataRequest.fromJson(String)) which provides you the same
data in JSON response format (see toJson()).
|
| String |
getEmail()
This method is deprecated. Instead use the JSON request format (see
PaymentDataRequest.fromJson(String)) which provides you the same
data in JSON response format (see toJson()).
|
| Bundle |
getExtraData()
This method is deprecated. Instead use the JSON request format (see
PaymentDataRequest.fromJson(String)) which provides you the same
data in JSON response format (see toJson()).
|
| static PaymentData | |
| String |
getGoogleTransactionId()
This method is deprecated. Instead use the JSON request format (see
PaymentDataRequest.fromJson(String)) which provides you the same
data in JSON response format (see toJson()).
|
| Bundle |
getLastSavedState()
Returns the last saved state associated with this
PaymentsClient.loadPaymentData(PaymentDataRequest) invocation.
|
| PaymentMethodToken |
getPaymentMethodToken()
This method is deprecated. Instead use the JSON request format (see
PaymentDataRequest.fromJson(String)) which provides you the same
data in JSON response format (see toJson()).
|
| UserAddress |
getShippingAddress()
This method is deprecated. Instead use the JSON request format (see
PaymentDataRequest.fromJson(String)) which provides you 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.
|
| PaymentData |
withLastSavedState(Bundle savedState)
|
| 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
PaymentDataRequest.fromJson(String)) which provides you the same data in JSON
response format (see toJson()).
This method is deprecated.
Instead use the JSON request format (see
PaymentDataRequest.fromJson(String)) which provides you the same data in JSON
response format (see toJson()).
This method is deprecated.
Instead use the JSON request format (see
PaymentDataRequest.fromJson(String)) which provides you 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
Activity.onActivityResult(int, int, Intent).
This method is deprecated.
Instead use the JSON request format (see
PaymentDataRequest.fromJson(String)) which provides you the same data in JSON
response format (see toJson()).
Returns the last saved state associated with this
PaymentsClient.loadPaymentData(PaymentDataRequest) invocation.
See
PaymentDataRequest.withSavedState(Bundle) for more details.
This method is deprecated.
Instead use the JSON request format (see
PaymentDataRequest.fromJson(String)) which provides you 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
PaymentDataRequest.Builder.setPaymentMethodTokenizationParameters(PaymentMethodTokenizationParameters).This method is deprecated.
Instead use the JSON request format (see
PaymentDataRequest.fromJson(String)) which provides you 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
PaymentDataRequest.fromJson(String).
For the expected format of this JSON, please see PaymentData object reference documentation.
Returns a new instance of PaymentData
with
getLastSavedState() returning the given savedState.
See
PaymentDataRequest.withSavedState(Bundle) for more details.