PaymentDataRequest

public final class PaymentDataRequest extends AbstractSafeParcelable

Parcelable representing a payment data request, which provides necessary information to support a payment. See the available fields for more information.

Nested Class Summary

class PaymentDataRequest.Builder Builder to create a PaymentDataRequest

Inherited Constant Summary

Field Summary

public static final Creator<PaymentDataRequest> CREATOR

Public Method Summary

ArrayList<Integer>
CardRequirements
PaymentMethodTokenizationParameters
ShippingAddressRequirements
TransactionInfo
boolean
boolean
boolean
boolean
static PaymentDataRequest.Builder
newBuilder()
Builder to create a PaymentDataRequest.
void
writeToParcel(Parcel dest, int flags)

Inherited Method Summary

Fields

public static final Creator<PaymentDataRequest> CREATOR

Public Methods

public ArrayList<Integer> getAllowedPaymentMethods ()

Returns

public CardRequirements getCardRequirements ()

Returns
  • card requirements or null if no requirements were specified.

public PaymentMethodTokenizationParameters getPaymentMethodTokenizationParameters ()

Returns
  • payment method tokenization parameters

public ShippingAddressRequirements getShippingAddressRequirements ()

Returns
  • shipping address requirements or null if no requirements were specified.

public TransactionInfo getTransactionInfo ()

Returns
  • detailed transaction info.

public boolean isEmailRequired ()

Returns
  • whether the buyer's email is required to be returned.

public boolean isPhoneNumberRequired ()

Returns
  • whether the buyer's phone number is required to be returned as part of the billing address and the shipping address.

public boolean isShippingAddressRequired ()

Returns
  • whether the buyer's shipping address is required to be returned.

public boolean isUiRequired ()

Returns
  • whether UI is required to be shown.

public static PaymentDataRequest.Builder newBuilder ()

Builder to create a PaymentDataRequest.

public void writeToParcel (Parcel dest, int flags)