IsReadyToPayRequest

public final classIsReadyToPayRequestextendsObject
implementsParcelable

AParcelablerequest that can optionally be passed to PaymentsClient.isReadyToPay(IsReadyToPayRequest)to specify additional filtering criteria for determining if a user is consideredready to pay.

Nested Class Summary

class IsReadyToPayRequest.Builder This class is deprecated. Use the JSON request format instead, see IsReadyToPayRequest.fromJson(String).

Inherited Constant Summary

Public Method Summary

staticIsReadyToPayRequest
fromJson(String isReadyToPayRequestJson)
ConstructsIsReadyToPayRequest from a JSON object serialized as a string.
ArrayList<Integer>
getAllowedCardNetworks()
This method is deprecated. Use the JSON request format instead, see fromJson(String).
ArrayList<Integer>
getAllowedPaymentMethods()
This method is deprecated. Use the JSON request format instead, see fromJson(String).
boolean
isExistingPaymentMethodRequired()
This method is deprecated. Use the JSON request format instead, see fromJson(String).
static IsReadyToPayRequest.Builder
newBuilder()
This method is deprecated. Use the JSON request format instead, see fromJson(String).
String
toJson()
ReturnsIsReadyToPayRequest in JSON format.

Inherited Method Summary

Public Methods

public staticIsReadyToPayRequest fromJson(String isReadyToPayRequestJson)

ConstructsIsReadyToPayRequest from a JSON object serialized as a string.

To convert back to a JSON object serialized as string usetoJson().

Note that you shouldn't rely on the values returned by getters inIsReadyToPayRequest as they will not be populated with the data set in the given JSON.

For the expected format of this JSON, please seeIsReadyToPayRequest object reference documentation.

publicArrayList<Integer> getAllowedCardNetworks()

This method is deprecated.
Use the JSON request format instead, see fromJson(String).

publicArrayList<Integer> getAllowedPaymentMethods()

This method is deprecated.
Use the JSON request format instead, see fromJson(String).

Returns

public booleanisExistingPaymentMethodRequired()

This method is deprecated.
Use the JSON request format instead, see fromJson(String).

Returns
  • whether or not IsReadyToPay will be determined by the user having an existing payment method that matches the other criteria specified in the IsReadyToPayRequest.

public staticIsReadyToPayRequest.Builder newBuilder()

This method is deprecated.
Use the JSON request format instead, see fromJson(String).

Returns

publicStringtoJson()

ReturnsIsReadyToPayRequest in JSON format.

Note that this will benullif this request was not constructed using fromJson(String).

For the expected format of this JSON, please seeIsReadyToPayRequest object reference documentation.