BTPayPalNativeCheckoutError
public enum BTPayPalNativeCheckoutError : Error, CustomNSError, LocalizedError, Equatable
Error returned from the native PayPal flow
-
- Request is not of type BTPayPalNativeCheckoutRequest or BTPayPalNativeVaultRequest
Declaration
Swift
case invalidRequest -
- Failed to fetch Braintree configuration
Declaration
Swift
case fetchConfigurationFailed -
- PayPal is not enabled for this merchant in the Braintree Control Panel
Declaration
Swift
case payPalNotEnabled -
- Could not find PayPal client ID in the Braintree configuration
Declaration
Swift
case payPalClientIDNotFound -
- Invalid environment identifier found in the Braintree configuration
Declaration
Swift
case invalidEnvironment -
- Failed to create PayPal order
Declaration
Swift
case orderCreationFailed(Error) -
- PayPal flow was canceled by the user
Declaration
Swift
case canceled -
- PayPalCheckout SDK returned an error
Declaration
Swift
case checkoutSDKFailed(PayPalCheckout.ErrorInfo) -
- Tokenization with the Braintree Gateway failed
Declaration
Swift
case tokenizationFailed(Error) -
- Failed to parse tokenization result
Declaration
Swift
case parsingTokenizationResultFailed -
- Invalid JSON response
Declaration
Swift
case invalidJSONResponse -
- Deallocated BTPayPalNativeCheckoutClient
Declaration
Swift
case deallocated -
- Missing return url in approval data
Declaration
Swift
case missingReturnURL -
Declaration
Swift
public static var errorDomain: String { get } -
Declaration
Swift
public var errorCode: Int { get } -
Declaration
Swift
public var errorDescription: String? { get }
-
Declaration
Swift
public static func == (lhs: BTPayPalNativeCheckoutError, rhs: BTPayPalNativeCheckoutError) -> Bool
View on GitHub