Parcelable representing a payment data request, which provides necessary information to support a payment. See the available fields for more information.
| class | PaymentDataRequest.Builder | This class is deprecated. Use the JSON
request format instead, see
PaymentDataRequest.fromJson(String). |
|
| public static final Creator<PaymentDataRequest> | CREATOR |
| static PaymentDataRequest |
fromJson(String
paymentDataRequestJson)
Constructs
PaymentDataRequest
from a JSON object serialized as a string.
|
| ArrayList<Integer> |
getAllowedPaymentMethods()
This method is deprecated. Use the JSON request format instead, see
fromJson(String).
|
| CardRequirements |
getCardRequirements()
This method is deprecated. Use the JSON request format instead, see
fromJson(String).
|
| PaymentMethodTokenizationParameters |
getPaymentMethodTokenizationParameters()
This method is deprecated. Use the JSON request format instead, see
fromJson(String).
|
| Bundle |
getSavedState()
Returns the saved state set with
withSavedState(Bundle).
|
| ShippingAddressRequirements |
getShippingAddressRequirements()
This method is deprecated. Use the JSON request format instead, see
fromJson(String).
|
| TransactionInfo |
getTransactionInfo()
This method is deprecated. Use the JSON request format instead, see
fromJson(String).
|
| boolean |
isEmailRequired()
This method is deprecated. Use the JSON request format instead, see
fromJson(String).
|
| boolean |
isPhoneNumberRequired()
This method is deprecated. Use the JSON request format instead, see
fromJson(String).
|
| boolean |
isShippingAddressRequired()
This method is deprecated. Use the JSON request format instead, see
fromJson(String).
|
| boolean |
isUiRequired()
This method is deprecated. Use the JSON request format instead, see
fromJson(String).
|
| static PaymentDataRequest.Builder |
newBuilder()
This method is deprecated. Use the JSON request format instead, see
fromJson(String).
|
| String |
toJson()
Returns
PaymentDataRequest
in JSON format.
|
| PaymentDataRequest |
withSavedState(Bundle savedState)
Returns a new instance of
PaymentDataRequest
with an associated caller's saved state.
|
| void |
writeToParcel(Parcel dest, int
flags)
|
Constructs PaymentDataRequest
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 PaymentDataRequest
as they will not be populated with the data set in the given JSON.
For the expected format of this JSON, please see PaymentDataRequest object reference documentation.
This method is deprecated.
Use the JSON request format instead, see
fromJson(String).
WalletConstants.PaymentMethod for more info.This method is deprecated.
Use the JSON request format instead, see
fromJson(String).
null if no requirements were specified.This method is deprecated.
Use the JSON request format instead, see
fromJson(String).
Returns the saved state set with
withSavedState(Bundle).
This method is deprecated.
Use the JSON request format instead, see
fromJson(String).
null if no requirements were
specified.This method is deprecated.
Use the JSON request format instead, see
fromJson(String).
This method is deprecated.
Use the JSON request format instead, see
fromJson(String).
This method is deprecated.
Use the JSON request format instead, see
fromJson(String).
This method is deprecated.
Use the JSON request format instead, see
fromJson(String).
This method is deprecated.
Use the JSON request format instead, see
fromJson(String).
This method is deprecated.
Use the JSON request format instead, see
fromJson(String).
Builder to create a PaymentDataRequest.
Returns PaymentDataRequest
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 PaymentDataRequest object reference documentation
Returns a new instance of PaymentDataRequest
with an associated caller's saved state.
Saved state is a construct that allows the callers of
PaymentsClient.loadPaymentData(PaymentDataRequest) to keep state across a
particular invocation of loadPaymentData and get that state back in a
successful response of PaymentData.
The saved state may also be read within the callbacks in the input objects
(IntermediatePaymentData, PaymentData)
passed to implementations of BasePaymentDataCallbacks service as well as be updated in
the output objects (PaymentDataRequestUpdate, PaymentAuthorizationResult). This allows
the caller to keep transactional state across different invocations of the
callbacks.