PiaSDKController
Deprecated
Migrate to declarative APIs in PiaSDK namespace
Objective-C
@interface PiaSDKController : UINavigationController
Swift
class PiaSDKController : UINavigationController
@class Controller that handles both payment and saving card process
-
Undocumented
Declaration
Objective-C
@property (nonatomic, weak) id<PiaSDKDelegate> _Nullable piaDelegateSwift
weak var piaDelegate: PiaSDKDelegate? { get set } -
Undocumented
Declaration
Objective-C
@property (nonatomic, strong) id<PiaSDKDelegate> _Nullable strongPiaDelegateSwift
var strongPiaDelegate: PiaSDKDelegate? { get set } -
Declaration
Objective-C
- (instancetype _Nonnull)init:(NPIMerchantInfo *_Nullable)merchantInfo orderInfo:(NPIOrderInfo *_Nullable)orderInfo tokenCardInfo:(NPITokenCardInfo *_Nullable)tokenCardInfo applePayInfo:(NPIApplePayInfo *_Nullable)applePayInfo performingPayPalPurchase:(BOOL)performingPayPalPurchase;Swift
init(_ merchantInfo: NPIMerchantInfo?, orderInfo: NPIOrderInfo?, tokenCardInfo: NPITokenCardInfo?, applePayInfo: NPIApplePayInfo?, performingPayPalPurchase: Bool)Parameters
merchantInfo(Nullable) Data that uniquely identifies the merchant
orderInfo(Nullable) Object that describes the amount to be paid - Set this object to nil if the process is saving card.
tokenCardInfo(Nullable) Object that provides SDK information about Saved/Registered cards - Set this object if process is Easy payment
applePayInfoDo not use this initialiser for Apple Pay. This object is deprecated!
performingPayPalPurchaseObject that says if the payment is going to happen through PayPal or not
-
Declaration
Objective-C
- (instancetype _Nonnull) initWithMerchantInfo:(NPIMerchantInfo *_Nullable)merchantInfo orderInfo:(NPIOrderInfo *_Nullable)orderInfo tokenCardInfo:(NPITokenCardInfo *_Nullable)tokenCardInfo;Swift
init(merchantInfo: NPIMerchantInfo?, orderInfo: NPIOrderInfo?, tokenCardInfo: NPITokenCardInfo?)Parameters
merchantInfo(Nullable) Data that uniquely identifies the merchant
orderInfo(Nullable) Object that describes the amount to be paid - Set this object to nil if the process is saving card.
tokenCardInfo(Nullable) Object that provides SDK information about Saved/Registered cards - Set this object if process is Easy payment
-
Declaration
Objective-C
- (instancetype _Nonnull) initWithTokenCardInfo:(NPITokenCardInfo *_Nonnull)tokenCardInfo merchantInfo:(NPIMerchantInfo *_Nonnull)merchantInfo orderInfo:(NPIOrderInfo *_Nonnull)orderInfo;Swift
init(tokenCardInfo: NPITokenCardInfo, merchantInfo: NPIMerchantInfo, orderInfo: NPIOrderInfo)Parameters
merchantInfo(Nullable) Data that uniquely identifies the merchant
orderInfo(Nullable) Object that describes the amount to be paid - Set this object to nil if the process is saving card.
tokenCardInfo(Nullable) Object that provides SDK information about Saved/Registered cards - Set this object if process is Easy payment
-
Initiate payment with a stored card
Declaration
Objective-C
- (instancetype _Nonnull)initWithTestMode:(BOOL)testMode tokenCardInfo: (NPITokenCardInfo *_Nonnull)tokenCardInfo merchantID:(NSString *_Nonnull)merchantID orderInfo:(NPIOrderInfo *_Nonnull)orderInfo requireCardConfirmation:(BOOL)requireCardConfirmation;Swift
init(testMode: Bool, tokenCardInfo: NPITokenCardInfo, merchantID: String, orderInfo: NPIOrderInfo, requireCardConfirmation: Bool)Parameters
testModeShould transaction be towards Netaxept test environment
tokenCardInfoObject containing stored card details
merchantIDNetaxept provided merchant ID
orderInfoOrder details
requireCardConfirmationShould user confirm the card (Note: this value is overridden to true if CVC is required)
-
Declaration
Objective-C
- (instancetype _Nonnull)initWithOrderInfo:(NPIOrderInfo *_Nullable)orderInfo merchantInfo: (NPIMerchantInfo *_Nonnull)merchantInfo;Swift
init(orderInfo: NPIOrderInfo?, merchantInfo: NPIMerchantInfo)Parameters
merchantInfo(NonNull) Data that uniquely identifies the merchant
orderInfo(Nullable) Object that describes the amount to be paid - Set this object to nil if the process is saving card.
-
Declaration
Objective-C
- (instancetype _Nonnull)initForPayPalPurchaseWithMerchantInfo: (NPIMerchantInfo *_Nonnull)merchantInfo;Swift
init(forPayPalPurchaseWith merchantInfo: NPIMerchantInfo)Parameters
merchantInfo(Nullable) Data that uniquely identifies the merchant
-
Declaration
Objective-C
- (instancetype _Nonnull)initWithMerchantInfo: (NPIMerchantInfo *_Nonnull)merchantInfo payWithPayPal:(BOOL)payWithPayPal;Swift
init(merchantInfo: NPIMerchantInfo, payWithPayPal: Bool)Parameters
merchantInfo(Nullable) Data that uniquely identifies the merchant
payWithPayPalWhether to use PayPal flow or not
-
Declaration
Objective-C
- (instancetype _Nonnull)initWithApplePayInfo: (NPIApplePayInfo *_Nonnull)applePayInfo;Swift
init(applePayInfo: NPIApplePayInfo)Parameters
applePayInfo(Nullable) Object that provides SDK information about Apple Pay
-
Declaration
Objective-C
- (instancetype _Nonnull)initWithMerchantInfo: (NPIMerchantInfo *_Nonnull)merchantInfo;Swift
init(merchantInfo: NPIMerchantInfo)Parameters
merchantInfo(Nullable) Data that uniquely identifies the merchant
-
Declaration
Objective-C
- (instancetype _Nonnull) initPaytrailBankPaymentWithMerchantID:(NSString *_Nonnull)merchantID transactionInfo: (NPITransactionInfo *_Nonnull)transactionInfo testMode:(BOOL)testMode;Swift
init(paytrailBankPaymentWithMerchantID merchantID: String, transactionInfo: NPITransactionInfo, testMode: Bool)Parameters
merchantIDString that uniquely identifies the merchant
transactionInfo(Nullable) Data which gives detail for transaction
testModeBool that specifies test/prod environment
-
Declaration
Objective-C
- (instancetype _Nonnull)initPaytrailBankPaymentWithMerchantInfo: (NPIMerchantInfo *_Nonnull)merchantInfo;Swift
init(paytrailBankPaymentWith merchantInfo: NPIMerchantInfo)Parameters
merchantInfo(NonNull) Data that uniquely identifies the merchant
-
Declaration
Objective-C
- (instancetype _Nonnull) initSBusinessCardPaymentWithMerchantInfo: (NPIMerchantInfo *_Nonnull)merchantInfo orderInfo:(NPIOrderInfo *_Nullable)orderInfo;Swift
init(sBusinessCardPaymentWith merchantInfo: NPIMerchantInfo, orderInfo: NPIOrderInfo?)Parameters
merchantInfo(NonNull) Data that uniquely identifies the merchant
PiaSDKController Class Reference