Page Summary
-
WalletConstants.BillingAddressFormat is an annotation used to specify the format of the billing address collected by the Google Pay API.
-
You can control the required billing address information using CardRequirements.Builder.setBillingAddressFormat(int).
-
Available options for billing address format are BILLING_ADDRESS_FORMAT_MIN and BILLING_ADDRESS_FORMAT_FULL.
-
Whether a phone number is required in the billing address is set using PaymentDataRequest.Builder.setPhoneNumberRequired(boolean).
The Google Pay API will collect the billing address for you if required. You can specify
what information you need through
CardRequirements.Builder.setBillingAddressFormat(int).
Available options:
Note whether a phone number is required to be returned as part of the billing address
should be set through
PaymentDataRequest.Builder.setPhoneNumberRequired(boolean).