BTPayPalError
public enum BTPayPalError : Error, CustomNSError, LocalizedError, Equatable
Error codes associated with PayPal.
-
- PayPal is disabled in configuration
Declaration
Swift
case disabled
-
- Payment flow was canceled, typically initiated by the user when exiting early from the flow.
Declaration
Swift
case canceled
-
- Failed to fetch Braintree configuration
Declaration
Swift
case fetchConfigurationFailed
-
- HTTP POST request returned an error
Declaration
Swift
case httpPostRequestError([String : Any])
-
- The web approval URL, web redirect URL, PayPal native app approval URL is invalid
Declaration
Swift
case invalidURL(String)
-
- The ASWebAuthenticationSession URL is invalid
Declaration
Swift
case asWebAuthenticationSessionURLInvalid(String)
-
- The URL action is invalid
Declaration
Swift
case invalidURLAction
-
- Unable to create BTPayPalAccountNonce
Declaration
Swift
case failedToCreateNonce
-
- ASWebAuthentication error
Declaration
Swift
case webSessionError(Error)
-
- Deallocated BTPayPalClient
Declaration
Swift
case deallocated
-
- The App Switch return URL did not contain the cancel or success path.
Declaration
Swift
case appSwitchReturnURLPathInvalid
-
- App Switch could not complete
Declaration
Swift
case appSwitchFailed
-
- Missing BA Token for App Switch
Declaration
Swift
case missingBAToken
-
- Missing PayPal Request
Declaration
Swift
case missingPayPalRequest
-
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: BTPayPalError, rhs: BTPayPalError) -> Bool