LocalPaymentRequest

data class LocalPaymentRequest @JvmOverloads constructor(val hasUserLocationConsent: Boolean, var address: PostalAddress? = null, var amount: String? = null, var bankIdentificationCode: String? = null, var currencyCode: String? = null, var displayName: String? = null, var email: String? = null, var givenName: String? = null, var merchantAccountId: String? = null, var paymentType: String? = null, var paymentTypeCountryCode: String? = null, var phone: String? = null, var isShippingAddressRequired: Boolean = false, var surname: String? = null)

Builder used to construct an local payment request.

Parameters

hasUserLocationConsent

is an optional parameter that informs the SDK if your application has obtained consent from the user to collect location data in compliance with Google Play Developer Program policies This flag enables PayPal to collect necessary information required for Fraud Detection and Risk Management.

See also

Constructors

Link copied to clipboard
constructor(hasUserLocationConsent: Boolean, address: PostalAddress? = null, amount: String? = null, bankIdentificationCode: String? = null, currencyCode: String? = null, displayName: String? = null, email: String? = null, givenName: String? = null, merchantAccountId: String? = null, paymentType: String? = null, paymentTypeCountryCode: String? = null, phone: String? = null, isShippingAddressRequired: Boolean = false, surname: String? = null)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

Optional - The address of the customer. An error will occur if this address is not valid.

Link copied to clipboard

Optional - The amount for the transaction.

Link copied to clipboard

Optional - the Bank Identification Code of the customer (specific to iDEAL transactions).

Link copied to clipboard

Optional - A valid ISO currency code to use for the transaction. Defaults to merchant currency code if not set.

Link copied to clipboard

Optional - The merchant name displayed inside of the Local Payment flow when starting the payment.

Link copied to clipboard

Optional - Payer email of the customer.

Link copied to clipboard

Optional - Given (first) name of the customer.

Link copied to clipboard
Link copied to clipboard

Optional - A non-default merchant account to use for tokenization.

Link copied to clipboard
Link copied to clipboard

The country code of the local payment. This value must be one of the supported country codes for a given local payment type listed. For local payments supported in multiple countries, this value may determine which banks are presented to the customer. @see Supported Country Codes

Link copied to clipboard

Optional - Phone number of the customer.

Link copied to clipboard

Optional - Surname (last name) of the customer.