public final class

IsReadyToPayRequest

extends Object
implements Parcelable
java.lang.Object
   ↳ com.google.android.gms.wallet.IsReadyToPayRequest

Class Overview

A Parcelable request that can optionally be passed to isReadyToPay(IsReadyToPayRequest) to specify additional filtering criteria for determining if a user is considered ready to pay.

Summary

Nested Classes
class IsReadyToPayRequest.Builder Builder for creating an IsReadyToPayRequest
[Expand]
Inherited Constants
From interface android.os.Parcelable
Public Methods
ArrayList<Integer> getAllowedCardNetworks()
ArrayList<Integer> getAllowedPaymentMethods()
boolean isExistingPaymentMethodRequired()
static IsReadyToPayRequest.Builder newBuilder()
[Expand]
Inherited Methods
From class java.lang.Object
From interface android.os.Parcelable

Public Methods

public ArrayList<Integer> getAllowedCardNetworks ()

Returns
ArrayList<Integer> the WalletConstants.CardNetworks that will be used to filter the instruments deemed acceptable by isReadyToPay(GoogleApiClient). If not explicitly set, the default supported networks will be CARD_NETWORK_AMEX, CARD_NETWORK_DISCOVER, CARD_NETWORK_MASTERCARD, and CARD_NETWORK_VISA.

public ArrayList<Integer> getAllowedPaymentMethods ()

Returns
ArrayList<Integer> the supported payment credential types defined in WalletConstants.PaymentMethod, or null if no restrictions were specified.

public boolean isExistingPaymentMethodRequired ()

Returns
boolean 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 static IsReadyToPayRequest.Builder newBuilder ()

Returns
IsReadyToPayRequest.Builder a builder for constructing the IsReadyToPayRequest object.