BTLocalPaymentError
public enum BTLocalPaymentError : Error, CustomNSError, LocalizedError, Equatable
Error codes associated with Payment Flow
-
- Unknown error
Declaration
Swift
case unknown -
- Local Payments are disabled in configuration
Declaration
Swift
case disabled -
- UIApplication failed to switch to browser
Declaration
Swift
case appSwitchFailed -
- Braintree SDK is integrated incorrectly
Declaration
Swift
case integration -
- No payment flow account data returned
Declaration
Swift
case noAccountData -
- Payment flow was canceled, typically initiated by the user when exiting early from the flow
Declaration
Swift
case canceled(String) -
- Missing nonce value in account response
Declaration
Swift
case failedToCreateNonce -
- Failed to fetch Braintree configuration
Declaration
Swift
case fetchConfigurationFailed -
- No URL found to display for payment authorization
Declaration
Swift
case missingRedirectURL -
- No URL was returned via the ASWebAuthenticationSession completion callback
Declaration
Swift
case missingReturnURL -
- ASWebAuthentication error
Declaration
Swift
case webSessionError(Error) -
Declaration
Swift
public static var errorDomain: String -
Declaration
Swift
public var errorCode: Int { get } -
Declaration
Swift
public var errorDescription: String { get }
-
Declaration
Swift
public static func == (lhs: BTLocalPaymentError, rhs: BTLocalPaymentError) -> Bool
View on GitHub