BTPayPalNativeCheckoutRequest
@objcMembers
public class BTPayPalNativeCheckoutRequest : BTPayPalNativeRequest
Options for the PayPal Checkout flow.
-
Used for a one-time payment.
Amount must be greater than or equal to zero, may optionally contain exactly 2 decimal places separated by ‘.’ and is limited to 7 digits before the decimal point.
Declaration
Swift
public let amount: String
-
Optional: Payment intent. Defaults to
.authorize
. Only applies to PayPal Checkout.Declaration
Swift
public var intent: BTPayPalNativeRequestIntent
-
Optional: Offers PayPal Pay Later if the customer qualifies. Defaults to
false
. Only available with PayPal Checkout.Declaration
Swift
public var offerPayLater: Bool
-
Optional: A three-character ISO-4217 ISO currency code to use for the transaction. Defaults to merchant currency code if not set.
Note
See https://developer.paypal.com/docs/api/reference/currency-codes/ for a list of supported currency codes.Declaration
Swift
public var currencyCode: String?
-
Optional: If set to
true
, this enables the Checkout with Vault flow, where the customer will be prompted to consent to a billing agreement during checkout.Declaration
Swift
public var requestBillingAgreement: Bool
-
Optional: Display a custom description to the user for a billing agreement. For Checkout with Vault flows, you must also set
requestBillingAgreement
totrue
on yourBTPayPalNativeVaultRequest
.Declaration
Swift
public var billingAgreementDescription: String?
-
Initializes a PayPal Native Checkout request
Declaration
Swift
public init( amount: String, intent: BTPayPalNativeRequestIntent = .authorize, offerPayLater: Bool = false, currencyCode: String? = nil, requestBillingAgreement: Bool = false, billingAgreementDescription: String? = nil )
Parameters
amount
Used for a one-time payment. Amount must be greater than or equal to zero, may optionally contain exactly 2 decimal places separated by ‘.’
intent
Optional: Payment intent. Defaults to
.authorize
. Only applies to PayPal Checkout. and is limited to 7 digits before the decimal point.offerPayLater
Optional: Offers PayPal Pay Later if the customer qualifies. Defaults to
false
. Only available with PayPal Checkout.currencyCode
Optional: A three-character ISO-4217 ISO currency code to use for the transaction. Defaults to merchant currency code if not set. See https://developer.paypal.com/docs/api/reference/currency-codes/ for a list of supported currency codes.
requestBillingAgreement
Optional: If set to
true
, this enables the Checkout with Vault flow, where the customer will be prompted to consent to a billing agreement during checkout.billingAgreementDescription
Optional: Display a custom description to the user for a billing agreement. For Checkout with Vault flows, you must also set
requestBillingAgreement
totrue
on yourBTPayPalNativeVaultRequest
.