NPIApplePayInfo
Deprecated
Objective-C
@interface NPIApplePayInfo : NSObject
Swift
class NPIApplePayInfo : NSObject
Class used to encapsulate Apple Pay information
-
Currency Code to be used for Apple Pay Info , NOTE: your supported currency code with Netaxept
Declaration
Objective-C
@property (nonatomic, strong, readonly) NSString *_Nonnull currencyCode;
Swift
var currencyCode: String { get }
-
Apple Pay Merchant ID
Declaration
Objective-C
@property (nonatomic, strong, readonly) NSString *_Nonnull applePayMerchantID;
Swift
var applePayMerchantID: String { get }
-
The name of item will be displayed in Apple Pay view
Declaration
Objective-C
@property (nonatomic, strong, readonly) NSString *_Nonnull applePayItemDisplayName;
Swift
var applePayItemDisplayName: String { get }
-
The name of Merchant will be displayed in Total section
Declaration
Objective-C
@property (nonatomic, strong, readonly) NSString *_Nonnull applePayMerchantDisplayName;
Swift
var applePayMerchantDisplayName: String { get }
-
The cost of the item will be displayed in Apple Pay view
Declaration
Objective-C
@property (nonatomic, strong, readonly) NSDecimalNumber *_Nonnull applePayItemCost;
Swift
var applePayItemCost: NSDecimalNumber { get }
-
The shipping cost of the item will be displayed in Apple Pay view
Declaration
Objective-C
@property (nonatomic, strong, readonly) NSDecimalNumber *_Nonnull applePayItemShippingCost;
Swift
var applePayItemShippingCost: NSDecimalNumber { get }
-
The shipping information of user
Declaration
Objective-C
@property (nonatomic, strong, readonly) NPIApplePayShippingInfo *_Nullable applePayShippingInfo;
Swift
var applePayShippingInfo: NPIApplePayShippingInfo? { get }
-
Use Express or Normal way of Apple Pay
Declaration
Objective-C
@property (nonatomic) BOOL usingExpressCheckout;
Swift
var usingExpressCheckout: Bool { get set }
-
The payment networks supported by the merchant
Declaration
Objective-C
@property (nonatomic, strong, readonly) NSArray<PKPaymentNetwork> *_Nonnull supportedPaymentNetworks;
Swift
var supportedPaymentNetworks: [PKPaymentNetwork] { get }
-
-initWithApplePayMerchantID:
applePayItemDisplayName: applePayMerchantDisplayName: applePayItemCost: applePayItemShippingCost: currencyCode: applePayShippingInfo: usingExpressCheckout: supportedPaymentNetworks: Deprecated
Deprecated! Present PKPaymentAuthorizationViewController and use PiaSDK helpers
Declaration
Objective-C
- (instancetype _Nonnull) initWithApplePayMerchantID:(NSString *_Nonnull)applePayMerchantID applePayItemDisplayName:(NSString *_Nonnull)applePayItemDisplayName applePayMerchantDisplayName:(NSString *_Nonnull)applePayMerchantDisplayName applePayItemCost:(NSDecimalNumber *_Nonnull)applePayItemCost applePayItemShippingCost: (NSDecimalNumber *_Nonnull)applePayItemShippingCost currencyCode:(NSString *_Nonnull)currencyCode applePayShippingInfo: (NPIApplePayShippingInfo *_Nullable)applePayShippingInfo usingExpressCheckout:(BOOL)usingExpressCheckout supportedPaymentNetworks: (NSArray<PKPaymentNetwork> *_Nonnull)supportedPaymentNetworks;
Swift
init(applePayMerchantID: String, applePayItemDisplayName: String, applePayMerchantDisplayName: String, applePayItemCost: NSDecimalNumber, applePayItemShippingCost: NSDecimalNumber, currencyCode: String, applePayShippingInfo: NPIApplePayShippingInfo?, usingExpressCheckout: Bool, supportedPaymentNetworks: [PKPaymentNetwork])
Parameters
applePayMerchantID
Apple Pay Merchant ID
applePayItemDisplayName
The name of item will be displayed in Apple Pay view
applePayMerchantDisplayName
The name of Merchant will be displayed in Total section
applePayItemCost
The cost of the item will be displayed in Apple Pay view
applePayItemShippingCost
The shipping cost of the item will be displayed in Apple Pay view
currencyCode
Currency Code to be used for Apple Pay Info, If null, will use NSLocale information instead
usingExpressCheckout
Use Express or Normal way of Apple Pay
supportedPaymentNetworks
The payment networks supported by the merchant