java.lang.Object | |
↳ | com.google.android.gms.wallet.IsReadyToPayRequest.Builder |
Builder for creating an IsReadyToPayRequest
.
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Adds a card network for cards allowed in the purchase.
| |||||||||||
Adds a collection of card networks for cards allowed in the purchase.
| |||||||||||
Adds an allowed payment method.
| |||||||||||
Adds a collection of allowed payment methods.
| |||||||||||
If set to true, then IsReadyToPay will only return true if the user has an existing payment
method that matches the other criteria specified in the IsReadyToPayRequest.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Adds a card network for cards allowed in the purchase. See WalletConstants.CardNetwork
for available options. If not explicitly set via this or addAllowedCardNetworks(Collection
, the default supported networks will be CARD_NETWORK_AMEX
, CARD_NETWORK_DISCOVER
, CARD_NETWORK_MASTERCARD
, and CARD_NETWORK_VISA
.
Parameters | |
---|---|
allowedCardNetwork |
int |
Returns | |
---|---|
IsReadyToPayRequest.Builder |
Adds a collection of card networks for cards allowed in the purchase. See WalletConstants.CardNetwork
for available options. If not explicitly set via this or addAllowedCardNetwork(int)
, the default supported networks will be CARD_NETWORK_AMEX
, CARD_NETWORK_DISCOVER
, CARD_NETWORK_MASTERCARD
, and CARD_NETWORK_VISA
.
Parameters | |
---|---|
allowedCardNetworks |
Collection |
Returns | |
---|---|
IsReadyToPayRequest.Builder |
Adds an allowed payment method. See WalletConstants.PaymentMethod
for available
options. If not explicitly set via this or addAllowedPaymentMethods(Collection
, then the
default allowed payment method will be PAYMENT_METHOD_TOKENIZED_CARD
.
Parameters | |
---|---|
allowedPaymentMethod |
int |
Returns | |
---|---|
IsReadyToPayRequest.Builder |
Adds a collection of allowed payment methods. See WalletConstants.PaymentMethod
for
available options. If not explicitly set via this or addAllowedPaymentMethod(int)
, then
the default allowed payment method will be PAYMENT_METHOD_TOKENIZED_CARD
.
Parameters | |
---|---|
allowedPaymentMethods |
Collection |
Returns | |
---|---|
IsReadyToPayRequest.Builder |
Returns | |
---|---|
IsReadyToPayRequest |
The actual IsReadyToPayRequest created using the data passed to the Builder
object.
|
If set to true, then IsReadyToPay will only return true if the user has an existing payment method that matches the other criteria specified in the IsReadyToPayRequest.
If you set this to true, make sure to call isReadyToPay(GoogleApiClient)
as early as
possible in your flow as the call may take longer to resolve due to the extra check for an
existing payment method.
Parameters | |
---|---|
existingPaymentMethodRequired |
boolean |
Returns | |
---|---|
IsReadyToPayRequest.Builder |