PayPalRequest

abstract class PayPalRequest : Parcelable

Represents the parameters that are needed to tokenize a PayPal account. See PayPalCheckoutRequest and PayPalVaultRequest.

See also

Inheritors

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

Display a custom description to the user for a billing agreement. This property is optional.

Link copied to clipboard
open var displayName: String?

The merchant name displayed in the PayPal flow; defaults to the company name on your Braintree account.

Link copied to clipboard

is a required 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.

Link copied to clipboard

Whether to allow the the shipping address to be editable. Defaults to false. Set to true to enable user editing of the shipping address. Only applies when PayPalRequest.shippingAddressOverride is set with a PostalAddress.

Link copied to clipboard

Whether to hide the shipping address in the flow. Defaults to false. When set to true, the shipping address selector will be displayed.

Link copied to clipboard

Use this option to specify the PayPal page to display when a user lands on the PayPal site to complete the payment.

Link copied to clipboard

The line items for this transaction. It can include up to 249 line items.

Link copied to clipboard
open var localeCode: String?

A locale code to use for the transaction. Supported locales are:

da_DK, de_DE, en_AU, en_GB, en_US, es_ES, es_XC, fr_CA, fr_FR, fr_XC, id_ID, it_IT, ja_JP, ko_KR, nl_NL, no_NO, pl_PL, pt_BR, pt_PT, ru_RU, sv_SE, th_TH, tr_TR, zh_CN, zh_HK, zh_TW, zh_XC.

Link copied to clipboard

Specify a merchant account Id other than the default to use during tokenization.

Link copied to clipboard

A risk correlation ID created with Set Transaction Context on your server.

Link copied to clipboard

a custom PostalAddress, A valid shipping address to be displayed in the transaction flow. An error will occur if this address is not valid.

Link copied to clipboard

User email to initiate a quicker authentication flow in cases where the user has a PayPal Account with the same email.

Link copied to clipboard

User phone number used to initiate a quicker authentication flow in cases where the user has a PayPal Account with the phone number.

Functions

Link copied to clipboard
abstract fun createRequestBody(configuration: Configuration?, authorization: Authorization?, successUrl: String?, cancelUrl: String?, appLink: String?): String?
Link copied to clipboard
abstract fun describeContents(): Int
Link copied to clipboard
abstract fun writeToParcel(p0: Parcel, p1: Int)