MaskedWalletRequest

public final class MaskedWalletRequest extends Object
implements Parcelable
java.lang.Object
   ↳ com.google.android.gms.wallet.MaskedWalletRequest

Parcelable representing a masked wallet request.

Nested Class Summary

class MaskedWalletRequest.Builder Builder to create a MaskedWalletRequest

Inherited Constant Summary

Field Summary

public static final Creator<MaskedWalletRequest> CREATOR

Public Method Summary

boolean
boolean
int
ArrayList<Integer>
ArrayList<CountrySpecification>
CountrySpecification[]
Cart
String
String
String
String
PaymentMethodTokenizationParameters
int
boolean
isBillingAgreement()
This method is deprecated. Billing agreement is not supported in Android Pay.
boolean
boolean
static MaskedWalletRequest.Builder
boolean
useMinimalBillingAddress()
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.
void
writeToParcel(Parcel dest, int flags)

Fields

public static final Creator<MaskedWalletRequest> CREATOR

Public Methods

public boolean allowDebitCard ()

Returns
  • whether a debit card may be used as the backing card for this transaction

public boolean allowPrepaidCard ()

Returns
  • whether a prepaid card may be used as the backing card for this transaction

public int describeContents ()

public ArrayList<Integer> getAllowedCardNetworks ()

Returns

public ArrayList<CountrySpecification> getAllowedCountrySpecificationsForShipping ()

Returns
  • a list of countries that are allowed for shipping addresses

public CountrySpecification[] getAllowedShippingCountrySpecifications ()

Returns
  • the allowed set of shipping country specifications

public Cart getCart ()

Returns
  • the shopping cart

public String getCurrencyCode ()

Returns
  • the ISO 4217 currency code of the transaction

public String getEstimatedTotalPrice ()

Returns
  • the estimated total price of the shopping cart

public String getMerchantName ()

Returns
  • the merchant name that overrides the default display name in the merchant's account settings

public String getMerchantTransactionId ()

Returns
  • your own unique identifier for the transaction

public PaymentMethodTokenizationParameters getPaymentMethodTokenizationParameters ()

Returns
  • payment method tokenization parameters

public int getVersionCode ()

public boolean isBillingAgreement ()

This method is deprecated.
Billing agreement is not supported in Android Pay.

Returns
  • whether this request is for a billing agreement rather than for a one time purchase

public boolean isPhoneNumberRequired ()

Returns
  • whether a user phone number is required

public boolean isShippingAddressRequired ()

Returns
  • whether a user shipping address is required

public static MaskedWalletRequest.Builder newBuilder ()

public boolean useMinimalBillingAddress ()

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.

Returns
  • indicates that only a minimal billing address associated with user's payment instrument is desired.

public void writeToParcel (Parcel dest, int flags)