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 * WalletErrorSwift
typealias WalletError = NSError
-
Undocumented
Declaration
Objective-C
typedef NSString * CurrencySwift
typealias Currency = NSString -
Undocumented
Declaration
Objective-C
typedef NSURL * WalletURLSwift
typealias WalletURL = NSURL -
Undocumented
Declaration
Objective-C
typedef NSString * TransactionIDSwift
typealias TransactionID = NSString -
Undocumented
Declaration
Objective-C
typedef NSString * RedirectURLSwift
typealias RedirectURL = NSString
-
True if user has chosen to tokenize the card for subsequent payments
Declaration
Objective-C
typedef BOOL TokenizeCardForLaterUseSwift
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
callbackparameter.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
callbackparameter.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
callbackparameter.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
callbackparameter.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 TransactionCallbackSwift
typealias TransactionCallback = TokenizableCardRegistrationCallback -
Undocumented
Declaration
Objective-C
typedef PaymentProcessCompletion TransactionCompletionSwift
typealias TransactionCompletion = PaymentProcessCompletion
Type Definitions Reference