GooglePayRequest

Represents the parameters that are needed to use the Google Pay API.

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open var shippingAddressRequirements: ShippingAddressRequirements
Link copied to clipboard
Link copied to clipboard
open var transactionInfo: TransactionInfo

Functions

Link copied to clipboard
open fun describeContents(): Int
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun setAllowCreditCards(allowCreditCards: Boolean)
Optional.
Link copied to clipboard
open fun setAllowedAuthMethods(@NonNull paymentMethodType: String, @NonNull authMethods: JSONArray)
Simple wrapper to configure the GooglePayRequest's allowedAuthMethods
Link copied to clipboard
open fun setAllowedCardNetworks(@NonNull paymentMethodType: String, @NonNull cardNetworks: JSONArray)
Simple wrapper to configure the GooglePayRequest's cardNetworks
Link copied to clipboard
open fun setAllowedPaymentMethod(@NonNull paymentMethodType: String, @NonNull parameters: JSONObject)
Simple wrapper to assign given parameters to specified paymentMethod
Link copied to clipboard
open fun setBillingAddressRequired(billingAddressRequired: Boolean)
Optional.
Link copied to clipboard
open fun setEmailRequired(emailRequired: Boolean)
Optional.
Link copied to clipboard
open fun setPayPalEnabled(enablePayPal: Boolean)
Defines if PayPal should be an available payment method in Google Pay.
Link copied to clipboard
open fun setPhoneNumberRequired(phoneNumberRequired: Boolean)
Optional.
Link copied to clipboard
open fun setShippingAddressRequired(shippingAddressRequired: Boolean)
Optional.
Link copied to clipboard
open fun setTokenizationSpecificationForType(@NonNull paymentMethodType: String, @NonNull parameters: JSONObject)
Simple wrapper to configure the GooglePayRequest's tokenizationSpecification
Link copied to clipboard
open fun toJson(): String
Assemble all declared parts of a GooglePayRequest to a JSON string for use in making requests against Google
Link copied to clipboard
open fun writeToParcel(dest: Parcel, flags: Int)