Parcelable representing an object that provides provides information about the payment
authorization callback result. This object is returned as result of
BasePaymentDataCallbacks.onPaymentAuthorized(PaymentData, OnCompleteListener)
based on the provided PaymentData.
Inherited Constant Summary
Field Summary
| public static final Creator<PaymentAuthorizationResult> | CREATOR |
Public Method Summary
| static PaymentAuthorizationResult |
fromJson(String json)
Constructs
PaymentAuthorizationResult from a JSON object serialized as a string
without any saved states.
|
| Bundle |
getUpdatedSavedState()
Returns the new updated saved state set with
withUpdatedSavedState(Bundle) invocation.
|
| String |
toJson()
Returns
PaymentAuthorizationResult in JSON format.
|
| PaymentAuthorizationResult |
withUpdatedSavedState(Bundle savedState)
Returns a new instance of
PaymentAuthorizationResult with the given updated saved state.
|
| void |
writeToParcel(Parcel dest, int
flags)
|
Inherited Method Summary
Fields
public static final Creator<PaymentAuthorizationResult> CREATOR
Public Methods
public static PaymentAuthorizationResult fromJson (String json)
Constructs
PaymentAuthorizationResult from a JSON object serialized as a string without
any saved states.
To convert back to a JSON object serialized as string use
toJson().
For the expected format of this JSON, please see PaymentAuthorizationResult object reference documentation.
public Bundle getUpdatedSavedState ()
Returns the new updated saved state set with
withUpdatedSavedState(Bundle) invocation.
See
PaymentDataRequest.withSavedState(Bundle) for more details.
public String toJson ()
Returns
PaymentAuthorizationResult in JSON format.
Note that this will be null if this object was not constructed using
fromJson(String).
For the expected format of this JSON, please see PaymentAuthorizationResult object reference documentation.
public PaymentAuthorizationResult withUpdatedSavedState (Bundle savedState)
Returns a new instance of
PaymentAuthorizationResult with the given updated saved state.
If non null, the given updated saved state will replace the saved state associated
with the current
PaymentsClient.loadPaymentData(PaymentDataRequest) invocation. If null or
not set, the previously set saved state will remain unchanged.