public class GooglePaymentRequest
extends java.lang.Object
implements android.os.Parcelable
| Modifier and Type | Field and Description |
|---|---|
static android.os.Parcelable.Creator<GooglePaymentRequest> |
CREATOR |
| Modifier | Constructor and Description |
|---|---|
|
GooglePaymentRequest() |
protected |
GooglePaymentRequest(android.os.Parcel in) |
| Modifier and Type | Method and Description |
|---|---|
GooglePaymentRequest |
allowPrepaidCards(boolean allowPrepaidCards)
Optional.
|
GooglePaymentRequest |
billingAddressFormat(int billingAddressFormat)
Optional.
|
GooglePaymentRequest |
billingAddressRequired(boolean billingAddressRequired)
Optional.
|
int |
describeContents() |
GooglePaymentRequest |
emailRequired(boolean emailRequired)
Optional.
|
java.lang.Boolean |
getAllowPrepaidCards() |
java.lang.Integer |
getBillingAddressFormat() |
ShippingAddressRequirements |
getShippingAddressRequirements() |
TransactionInfo |
getTransactionInfo() |
java.lang.Boolean |
isBillingAddressRequired() |
java.lang.Boolean |
isEmailRequired() |
java.lang.Boolean |
isPhoneNumberRequired() |
java.lang.Boolean |
isShippingAddressRequired() |
java.lang.Boolean |
isUiRequired() |
GooglePaymentRequest |
phoneNumberRequired(boolean phoneNumberRequired)
Optional.
|
GooglePaymentRequest |
shippingAddressRequired(boolean shippingAddressRequired)
Optional.
|
GooglePaymentRequest |
shippingAddressRequirements(ShippingAddressRequirements shippingAddressRequirements)
Optional.
|
GooglePaymentRequest |
transactionInfo(TransactionInfo transactionInfo)
Details and the price of the transaction.
|
GooglePaymentRequest |
uiRequired(boolean uiRequired)
When this is set to false,
GooglePayment.requestPayment(BraintreeFragment, GooglePaymentRequest)
will attempt to skip the UI and directly return the data from the buyer's previous selection. |
void |
writeToParcel(android.os.Parcel dest,
int flags) |
public static final android.os.Parcelable.Creator<GooglePaymentRequest> CREATOR
public GooglePaymentRequest()
protected GooglePaymentRequest(android.os.Parcel in)
public GooglePaymentRequest transactionInfo(TransactionInfo transactionInfo)
transactionInfo - See TransactionInfo.GooglePaymentRequestpublic GooglePaymentRequest emailRequired(boolean emailRequired)
emailRequired - true if the buyer's email address is required to be returned, false otherwise.GooglePaymentRequestpublic GooglePaymentRequest phoneNumberRequired(boolean phoneNumberRequired)
phoneNumberRequired - true if the buyer's phone number is required to be returned as part of the
billing address and shipping address, false otherwise.GooglePaymentRequestpublic GooglePaymentRequest billingAddressRequired(boolean billingAddressRequired)
billingAddressRequired - true if the buyer's billing address is required to be returned,
false otherwise.GooglePaymentRequestpublic GooglePaymentRequest billingAddressFormat(int billingAddressFormat)
billingAddressFormat - the billing address format to return. BillingAddressFormatGooglePaymentRequestpublic GooglePaymentRequest shippingAddressRequired(boolean shippingAddressRequired)
shippingAddressRequired - true if the buyer's shipping address is required to be returned,
false otherwise.GooglePaymentRequestpublic GooglePaymentRequest shippingAddressRequirements(ShippingAddressRequirements shippingAddressRequirements)
shippingAddressRequirements - the shipping address requirements. ShippingAddressRequirementsGooglePaymentRequestpublic GooglePaymentRequest allowPrepaidCards(boolean allowPrepaidCards)
allowPrepaidCards - true prepaid cards are allowed, false otherwise.GooglePaymentRequestpublic GooglePaymentRequest uiRequired(boolean uiRequired)
GooglePayment.requestPayment(BraintreeFragment, GooglePaymentRequest)
will attempt to skip the UI and directly return the data from the buyer's previous selection. The merchant must
be whitelisted for not showing UI. Please contact Google if you think your use case would benefit from skipping UI.
Optional.uiRequired - false if the UI should not be shown, true otherwise.GooglePaymentRequestpublic TransactionInfo getTransactionInfo()
public java.lang.Boolean isEmailRequired()
public java.lang.Boolean isPhoneNumberRequired()
public java.lang.Boolean isBillingAddressRequired()
public java.lang.Integer getBillingAddressFormat()
public java.lang.Boolean isShippingAddressRequired()
public ShippingAddressRequirements getShippingAddressRequirements()
public java.lang.Boolean getAllowPrepaidCards()
public java.lang.Boolean isUiRequired()
public int describeContents()
describeContents in interface android.os.Parcelablepublic void writeToParcel(android.os.Parcel dest,
int flags)
writeToParcel in interface android.os.Parcelable