Type Definitions
The following type definitions are available globally.
-
Standardized codes for NPIError
See moreDeclaration
Objective-C
typedef enum NPIErrorCode NPIErrorCode
-
Undocumented
Declaration
Objective-C
typedef NSError * WalletError
Swift
typealias WalletError = NSError
-
Undocumented
Declaration
Objective-C
typedef NSString * Currency
Swift
typealias Currency = NSString
-
Undocumented
Declaration
Objective-C
typedef NSURL * WalletURL
Swift
typealias WalletURL = NSURL
-
Undocumented
Declaration
Objective-C
typedef NSString * TransactionID
Swift
typealias TransactionID = NSString
-
Undocumented
Declaration
Objective-C
typedef NSString * RedirectURL
Swift
typealias RedirectURL = NSString
-
True if user has chosen to tokenize the card for subsequent payments
Declaration
Objective-C
typedef BOOL TokenizeCardForLaterUse
Swift
typealias TokenizeCardForLaterUse = ObjCBool
-
Undocumented
Declaration
Objective-C
typedef void(^TokenizableCardRegistrationCallback)(TokenizeCardForLaterUse, void Escaping (CardRegistrationResponse *))
Swift
typealias TokenizableCardRegistrationCallback = (Bool, @escaping (CardRegistrationResponse) -> Void) -> Void
-
Register payment and callback with the registration response using the
callback
parameter.Declaration
Objective-C
typedef void (^CardRegistrationCallback)( void (^_Nonnull)(CardRegistrationResponse *_Nonnull))
Swift
typealias CardRegistrationCallback = (@escaping (CardRegistrationResponse) -> Void) -> Void
-
Register payment and callback with the registration response using the
callback
parameter.Declaration
Objective-C
typedef void (^PayPalRegistrationCallback)( void (^_Nonnull)(PayPalRegistrationResponse *_Nonnull))
Swift
typealias PayPalRegistrationCallback = (@escaping (PayPalRegistrationResponse) -> Void) -> Void
-
Register payment and callback with the registration response using the
callback
parameter.Declaration
Objective-C
typedef void (^PaytrailRegistrationCallback)( void (^_Nonnull)(PaytrailRegistrationResponse *_Nonnull))
Swift
typealias PaytrailRegistrationCallback = (@escaping (PaytrailRegistrationResponse) -> Void) -> Void
-
Register payment and callback with the registration response using the
callback
parameter.Declaration
Objective-C
typedef void (^WalletURLCallback)( void (^_Nonnull)(WalletRegistrationResponse *_Nonnull))
Swift
typealias WalletURLCallback = (@escaping (WalletRegistrationResponse) -> Void) -> Void
-
Undocumented
Declaration
Objective-C
typedef void(^WalletRedirectWithoutInterruption)(BOOL)
Swift
typealias WalletRedirectWithoutInterruption = (Bool) -> Void
-
Undocumented
Declaration
Objective-C
typedef void(^WalletFailureWithError)(WalletError)
Swift
typealias WalletFailureWithError = (Error) -> Void
-
Undocumented
Declaration
Objective-C
typedef void(^CompletionCallback)(UIViewController *)
Swift
typealias CompletionCallback = (UIViewController) -> Void
-
Undocumented
Declaration
Objective-C
typedef void(^PaymentProcessCompletion)(UIViewController *, _Nullable TransactionID)
Swift
typealias PaymentProcessCompletion = (UIViewController, String?) -> Void
-
Undocumented
Declaration
Objective-C
typedef void(^PaymentProcessFailure)(UIViewController *, NSError *)
Swift
typealias PaymentProcessFailure = (UIViewController, Error) -> Void
-
Undocumented
Declaration
Objective-C
typedef TokenizableCardRegistrationCallback TransactionCallback
Swift
typealias TransactionCallback = TokenizableCardRegistrationCallback
-
Undocumented
Declaration
Objective-C
typedef PaymentProcessCompletion TransactionCompletion
Swift
typealias TransactionCompletion = PaymentProcessCompletion