BTPayPalNativeCheckoutRequest
@objcMembers
public class BTPayPalNativeCheckoutRequest : BTPayPalCheckoutRequest
Options for the PayPal Checkout flow.
-
init(amount:intent: offerPayLater: currencyCode: requestBillingAgreement: billingAgreementDescription: userAuthenticationEmail: ) Initializes a PayPal Native Checkout request
Declaration
Swift
public init( amount: String, intent: BTPayPalRequestIntent = .authorize, offerPayLater: Bool = false, currencyCode: String? = nil, requestBillingAgreement: Bool = false, billingAgreementDescription: String? = nil, userAuthenticationEmail: String? = nil )Parameters
amountUsed for a one-time payment. Amount must be greater than or equal to zero, may optionally contain exactly 2 decimal places separated by ‘.’
intentOptional: Payment intent. Defaults to
.authorize. Only applies to PayPal Checkout. and is limited to 7 digits before the decimal point.offerPayLaterOptional: Offers PayPal Pay Later if the customer qualifies. Defaults to
false. Only available with PayPal Checkout.currencyCodeOptional: 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.
requestBillingAgreementOptional: 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.billingAgreementDescriptionOptional: Display a custom description to the user for a billing agreement. For Checkout with Vault flows, you must also set
requestBillingAgreementtotrueon yourBTPayPalNativeVaultRequest.userAuthenticationEmailOptional: User email to initiate a quicker authentication flow in cases where the user has a PayPal Account with the same email.
View on GitHub