java.lang.Object | |
↳ | com.google.android.gms.wallet.MaskedWalletRequest.Builder |
Builder to create a MaskedWalletRequest
.
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Adds card network for cards allowed for the purchase.
| |||||||||||
Adds card network for cards allowed for the purchase.
| |||||||||||
Sets an optional set of country specifications that should be allowed for shipping.
| |||||||||||
Indicates whether a debit card may be used for this transaction.
| |||||||||||
Indicates whether a prepaid card may be used for this transaction.
| |||||||||||
Sets an optional shopping cart to use for this purchase.
| |||||||||||
Sets the ISO 3166-1 alpha-2 country code based on where the transaction was completed or
processed.
| |||||||||||
Required field.
| |||||||||||
Required field.
| |||||||||||
This method is deprecated.
Billing agreement is not supported in Android Pay.
| |||||||||||
Sets an optional merchant name to be displayed on any UI in the checkout flow.
| |||||||||||
Sets an optional merchant identifier for the transaction.
| |||||||||||
Sets payment method tokenization parameters which will be used to tokenize the credit card
selected by the user for a transaction and returned with
getPaymentMethodToken() . | |||||||||||
Indicates whether a phone number is required from the user.
| |||||||||||
Indicates whether shipping information is required from the user.
| |||||||||||
This method is deprecated.
This setting will be ignored in the future, but will still be respected for
Google Wallet Instant Buy. Users will always have a full billing address with Android
Pay.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Adds card network for cards allowed for the purchase. See WalletConstants.CardNetwork
for available options. If not explicitly set, the default supported networks will be AMEX
, DISCOVER
, MASTERCARD
, and VISA
.
Parameters | |
---|---|
allowedCardNetwork |
int
|
Returns | |
---|---|
MaskedWalletRequest.Builder |
Adds card network for cards allowed for the purchase. See WalletConstants.CardNetwork
for available options. If not explicitly set, the default supported networks will be AMEX
, DISCOVER
, MASTERCARD
, and VISA
.
Parameters | |
---|---|
allowedCardNetworks |
Collection
|
Returns | |
---|---|
MaskedWalletRequest.Builder |
Sets an optional set of country specifications that should be allowed for shipping. If omitted or a null / empty array is provided the API will default to using a country specification that only allows shipping in the US.
Parameters | |
---|---|
countrySpecification |
CountrySpecification
|
Returns | |
---|---|
MaskedWalletRequest.Builder |
Parameters | |
---|---|
countrySpecifications |
Collection
|
Returns | |
---|---|
MaskedWalletRequest.Builder |
Indicates whether a debit card may be used for this transaction. If omitted, defaults to
true
.
Parameters | |
---|---|
allowDebitCard |
boolean
|
Returns | |
---|---|
MaskedWalletRequest.Builder |
Indicates whether a prepaid card may be used for this transaction. If omitted, defaults to
true
.
Parameters | |
---|---|
allowPrepaidCard |
boolean
|
Returns | |
---|---|
MaskedWalletRequest.Builder |
Sets an optional shopping cart to use for this purchase.
Supplying as much information about your transaction in the cart can help improve the user experience during the payment flow. If you add a shipping or tax line item to this cart, make sure to use a description that informs the user that the line items are estimates (such as "Estimated Shipping").
Parameters | |
---|---|
cart |
Cart
|
Returns | |
---|---|
MaskedWalletRequest.Builder |
Sets the ISO 3166-1 alpha-2 country code based on where the transaction was completed or
processed. This is a required field for transactions that allow WalletConstants.CardNetwork
s that use EMV cryptograms.
Parameters | |
---|---|
countryCode |
String
|
Returns | |
---|---|
MaskedWalletRequest.Builder |
Required field. Sets the ISO 4217 currency code of the transaction.
Parameters | |
---|---|
currencyCode |
String
|
Returns | |
---|---|
MaskedWalletRequest.Builder |
Required field. Sets the total price of the shopping cart. The format of this string follows the regex: [0-9]+(\.[0-9][0-9])?. This information will be used by Google risk and fraud systems to try to lower fraud losses for merchants while maintaining a good user experience. Use your best estimate for tax and shipping when calculating total order price.
Parameters | |
---|---|
estimatedTotalPrice |
String
|
Returns | |
---|---|
MaskedWalletRequest.Builder |
This method is deprecated.
Billing agreement is not supported in Android Pay.
Indicates whether this request is for a billing agreement rather than for a one time
purchase. If true
, estimated total price and cart are inapplicable and should not be
set. If omitted, defaults to false
.
Parameters | |
---|---|
isBillingAgreement |
boolean
|
Returns | |
---|---|
MaskedWalletRequest.Builder |
Sets an optional merchant name to be displayed on any UI in the checkout flow. If omitted, the merchant display name configured in the merchant's account settings will be used.
Parameters | |
---|---|
merchantName |
String
|
Returns | |
---|---|
MaskedWalletRequest.Builder |
Sets an optional merchant identifier for the transaction. The value will be echoed back in
MaskedWallet
and FullWallet
, but is not otherwise used by the Wallet API.
Parameters | |
---|---|
merchantTransactionId |
String
|
Returns | |
---|---|
MaskedWalletRequest.Builder |
Sets payment method tokenization parameters which will be used to tokenize the credit card
selected by the user for a transaction and returned with getPaymentMethodToken()
.
Note: if this parameter is set then corresponding FullWallet
will not contain
ProxyCard
, it will contain PaymentMethodToken
for the credit card instead.
Parameters | |
---|---|
paymentMethodTokenizationParameters |
PaymentMethodTokenizationParameters
|
Returns | |
---|---|
MaskedWalletRequest.Builder |
Indicates whether a phone number is required from the user. Only request the phone number when it's required to process the order since it can increase friction during the purchase flow. If omitted, defaults to false.
Parameters | |
---|---|
phoneNumberRequired |
boolean
|
Returns | |
---|---|
MaskedWalletRequest.Builder |
Indicates whether shipping information is required from the user. If omitted, defaults to false.
Parameters | |
---|---|
shippingAddressRequired |
boolean
|
Returns | |
---|---|
MaskedWalletRequest.Builder |
This method is deprecated.
This setting will be ignored in the future, but will still be respected for
Google Wallet Instant Buy. Users will always have a full billing address with Android
Pay.
Indicates that only minimal billing information (name and zip code) is required. This field is mutually exclusive with shipping address required. Use only one or the other. If omitted, defaults to false.
Parameters | |
---|---|
useMinimalBillingAddress |
boolean
|
Returns | |
---|---|
MaskedWalletRequest.Builder |