BTPayPalVaultRequest
@objcMembers
public class BTPayPalVaultRequest : NSObject, BTPayPalRequest
Options for the PayPal Vault flow.
-
Initializes a PayPal Vault request for the PayPal App Switch flow
Warning
This initializer should be used for merchants using the PayPal App Switch flow. This feature is currently in beta and may change or be removed in future releases.Note
The PayPal App Switch flow currently only supports the production environment.Declaration
Swift
public convenience init( enablePayPalAppSwitch: Bool, userAuthenticationEmail: String? = nil, offerCredit: Bool = false )Parameters
enablePayPalAppSwitchRequired: Used to determine if the customer will use the PayPal app switch flow.
userAuthenticationEmailOptional: User email to initiate a quicker authentication flow in cases where the user has a PayPal Account with the same email.
offerCreditOptional: Offers PayPal Credit if the customer qualifies. Defaults to
false. -
init(enablePayPalAppSwitch:offerCredit: billingAgreementDescription: displayName: isShippingAddressEditable: isShippingAddressRequired: landingPageType: lineItems: localeCode: merchantAccountID: recurringBillingDetails: recurringBillingPlanType: riskCorrelationID: shippingAddressOverride: shopperSessionID: userAction: userAuthenticationEmail: userPhoneNumber: ) Initializes a PayPal Vault request
Declaration
Swift
public init( enablePayPalAppSwitch: Bool = false, offerCredit: Bool = false, billingAgreementDescription: String? = nil, displayName: String? = nil, isShippingAddressEditable: Bool = false, isShippingAddressRequired: Bool = false, landingPageType: BTPayPalRequestLandingPageType = .none, lineItems: [BTPayPalLineItem]? = nil, localeCode: BTPayPalLocaleCode = .none, merchantAccountID: String? = nil, recurringBillingDetails: BTPayPalRecurringBillingDetails? = nil, recurringBillingPlanType: BTPayPalRecurringBillingPlanType? = nil, riskCorrelationID: String? = nil, shippingAddressOverride: BTPostalAddress? = nil, shopperSessionID: String? = nil, userAction: BTPayPalRequestUserAction = .none, userAuthenticationEmail: String? = nil, userPhoneNumber: BTPayPalPhoneNumber? = nil )Parameters
enablePayPalAppSwitchRequired: Used to determine if the customer will use the PayPal app switch flow. Defaults to
false. This property is currently in beta and may change or be removed in future releases.offerCreditOptional: Offers PayPal Credit if the customer qualifies. Defaults to
false.billingAgreementDescriptionOptional: Display a custom description to the user for a billing agreement. For Checkout with Vault flows, you must also set.
displayNameOptional: The merchant name displayed inside of the PayPal flow; defaults to the company name on your Braintree account
isShippingAddressEditableDefaults to false. Set to true to enable user editing of the shipping address.
isShippingAddressRequiredDefaults to false. When set to true, the shipping address selector will be displayed.
landingPageTypeOptional: Landing page type. Defaults to
.none.lineItemsOptional: The line items for this transaction. It can include up to 249 line items.
localeCodeOptional: A locale code to use for the transaction.
merchantAccountIDOptional: A non-default merchant account to use for tokenization.
recurringBillingDetailsOptional: Recurring billing product details.
recurringBillingPlanTypeOptional: Recurring billing plan type, or charge pattern.
riskCorrelationIDOptional: A risk correlation ID created with Set Transaction Context on your server.
shippingAddressOverrideOptional: A valid shipping address to be displayed in the transaction flow. An error will occur if this address is not valid.
shopperSessionIDOptional: The shopper session ID returned from your shopper insights server SDK integration.
userActionOptional: Changes the call-to-action in the PayPal Vault flow. Defaults to
.none.userAuthenticationEmailOptional: User email to initiate a quicker authentication flow in cases where the user has a PayPal Account with the same email.
userPhoneNumberOptional: A user’s phone number to initiate a quicker authentication flow in the scenario where the user has a PayPal account identified with the same phone number.
View on GitHub