react-native-payengine 2.0.16 → 2.0.18-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +96 -65
- package/android/.gradle/checksums/checksums.lock +0 -0
- package/android/.gradle/checksums/md5-checksums.bin +0 -0
- package/android/.gradle/checksums/sha1-checksums.bin +0 -0
- package/android/build.gradle +2 -2
- package/android/src/main/java/com/reactnativepayengine/v2/RNPayEngineNative.kt +65 -3
- package/android/src/main/java/com/reactnativepayengine/v2/securefields/RNPEEvents.kt +1 -0
- package/android/src/main/java/com/reactnativepayengine/v2/securefields/bankaccount/RNBankAccountViewManager.kt +16 -3
- package/android/src/main/java/com/reactnativepayengine/v2/securefields/creditcard/RNPECreditCardViewManager.kt +15 -4
- package/ios/PayEngineSDK.xcframework/ios-arm64/PayEngineSDK.framework/Headers/KDataCollector.h +4 -25
- package/ios/PayEngineSDK.xcframework/ios-arm64/PayEngineSDK.framework/Headers/KountAnalyticsViewController.h +0 -20
- package/ios/PayEngineSDK.xcframework/ios-arm64/PayEngineSDK.framework/Headers/KountPrivate.h +61 -0
- package/ios/PayEngineSDK.xcframework/ios-arm64/PayEngineSDK.framework/Headers/PayEngineSDK-Swift.h +430 -133
- package/ios/PayEngineSDK.xcframework/ios-arm64/PayEngineSDK.framework/Info.plist +0 -0
- package/ios/PayEngineSDK.xcframework/ios-arm64/PayEngineSDK.framework/Modules/PayEngineSDK.swiftmodule/arm64-apple-ios.abi.json +1848 -5121
- package/ios/PayEngineSDK.xcframework/ios-arm64/PayEngineSDK.framework/Modules/PayEngineSDK.swiftmodule/arm64-apple-ios.private.swiftinterface +35 -117
- package/ios/PayEngineSDK.xcframework/ios-arm64/PayEngineSDK.framework/Modules/PayEngineSDK.swiftmodule/arm64-apple-ios.private.swiftinterface-e +35 -117
- package/ios/PayEngineSDK.xcframework/ios-arm64/PayEngineSDK.framework/Modules/PayEngineSDK.swiftmodule/arm64-apple-ios.swiftdoc +0 -0
- package/ios/PayEngineSDK.xcframework/ios-arm64/PayEngineSDK.framework/Modules/PayEngineSDK.swiftmodule/arm64-apple-ios.swiftinterface +35 -117
- package/ios/PayEngineSDK.xcframework/ios-arm64/PayEngineSDK.framework/Modules/PayEngineSDK.swiftmodule/arm64-apple-ios.swiftinterface-e +35 -117
- package/ios/PayEngineSDK.xcframework/ios-arm64/PayEngineSDK.framework/PayEngineSDK +0 -0
- package/ios/PayEngineSDK.xcframework/ios-arm64/PayEngineSDK.framework/VGSCollectSDK_VGSCollectSDK.bundle/Info.plist +0 -0
- package/ios/PayEngineSDK.xcframework/ios-arm64_x86_64-simulator/PayEngineSDK.framework/Headers/KDataCollector.h +4 -25
- package/ios/PayEngineSDK.xcframework/ios-arm64_x86_64-simulator/PayEngineSDK.framework/Headers/KountAnalyticsViewController.h +0 -20
- package/ios/PayEngineSDK.xcframework/ios-arm64_x86_64-simulator/PayEngineSDK.framework/Headers/KountPrivate.h +61 -0
- package/ios/PayEngineSDK.xcframework/ios-arm64_x86_64-simulator/PayEngineSDK.framework/Headers/PayEngineSDK-Swift.h +860 -266
- package/ios/PayEngineSDK.xcframework/ios-arm64_x86_64-simulator/PayEngineSDK.framework/Info.plist +0 -0
- package/ios/PayEngineSDK.xcframework/ios-arm64_x86_64-simulator/PayEngineSDK.framework/Modules/PayEngineSDK.swiftmodule/arm64-apple-ios-simulator.abi.json +1848 -5121
- package/ios/PayEngineSDK.xcframework/ios-arm64_x86_64-simulator/PayEngineSDK.framework/Modules/PayEngineSDK.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface +35 -117
- package/ios/PayEngineSDK.xcframework/ios-arm64_x86_64-simulator/PayEngineSDK.framework/Modules/PayEngineSDK.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface-e +35 -117
- package/ios/PayEngineSDK.xcframework/ios-arm64_x86_64-simulator/PayEngineSDK.framework/Modules/PayEngineSDK.swiftmodule/arm64-apple-ios-simulator.swiftdoc +0 -0
- package/ios/PayEngineSDK.xcframework/ios-arm64_x86_64-simulator/PayEngineSDK.framework/Modules/PayEngineSDK.swiftmodule/arm64-apple-ios-simulator.swiftinterface +35 -117
- package/ios/PayEngineSDK.xcframework/ios-arm64_x86_64-simulator/PayEngineSDK.framework/Modules/PayEngineSDK.swiftmodule/arm64-apple-ios-simulator.swiftinterface-e +35 -117
- package/ios/PayEngineSDK.xcframework/ios-arm64_x86_64-simulator/PayEngineSDK.framework/Modules/PayEngineSDK.swiftmodule/x86_64-apple-ios-simulator.abi.json +1848 -5121
- package/ios/PayEngineSDK.xcframework/ios-arm64_x86_64-simulator/PayEngineSDK.framework/Modules/PayEngineSDK.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface +35 -117
- package/ios/PayEngineSDK.xcframework/ios-arm64_x86_64-simulator/PayEngineSDK.framework/Modules/PayEngineSDK.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface-e +35 -117
- package/ios/PayEngineSDK.xcframework/ios-arm64_x86_64-simulator/PayEngineSDK.framework/Modules/PayEngineSDK.swiftmodule/x86_64-apple-ios-simulator.swiftdoc +0 -0
- package/ios/PayEngineSDK.xcframework/ios-arm64_x86_64-simulator/PayEngineSDK.framework/Modules/PayEngineSDK.swiftmodule/x86_64-apple-ios-simulator.swiftinterface +35 -117
- package/ios/PayEngineSDK.xcframework/ios-arm64_x86_64-simulator/PayEngineSDK.framework/Modules/PayEngineSDK.swiftmodule/x86_64-apple-ios-simulator.swiftinterface-e +35 -117
- package/ios/PayEngineSDK.xcframework/ios-arm64_x86_64-simulator/PayEngineSDK.framework/PayEngineSDK +0 -0
- package/ios/PayEngineSDK.xcframework/ios-arm64_x86_64-simulator/PayEngineSDK.framework/VGSCollectSDK_VGSCollectSDK.bundle/Info.plist +0 -0
- package/ios/Sources/Classes/RNPEEventEmitter.swift +1 -1
- package/ios/Sources/Classes/RNPayEngineNative.swift +125 -64
- package/ios/Sources/Classes/SecureFields/RNPEEvents.swift +1 -0
- package/ios/Sources/Payengine.m +6 -0
- package/lib/commonjs/components/PayEngine.js +1 -1
- package/lib/commonjs/components/PayEngine.js.map +1 -1
- package/lib/commonjs/components/v2/ApplePay/PEApplePayButton.js +124 -0
- package/lib/commonjs/components/v2/ApplePay/PEApplePayButton.js.map +1 -1
- package/lib/commonjs/components/v2/ApplePay/PEApplePayInterfaces.js +78 -0
- package/lib/commonjs/components/v2/ApplePay/PEApplePayInterfaces.js.map +1 -1
- package/lib/commonjs/components/v2/GooglePay/PEGooglePayAddress.js.map +1 -1
- package/lib/commonjs/components/v2/GooglePay/PEGooglePayButton.js +53 -0
- package/lib/commonjs/components/v2/GooglePay/PEGooglePayButton.js.map +1 -1
- package/lib/commonjs/components/v2/PEPaymentRequest.js +121 -0
- package/lib/commonjs/components/v2/PEPaymentRequest.js.map +1 -1
- package/lib/commonjs/components/v2/PayEngineNative.js +182 -4
- package/lib/commonjs/components/v2/PayEngineNative.js.map +1 -1
- package/lib/commonjs/components/v2/PayEngineProvider.js +52 -0
- package/lib/commonjs/components/v2/PayEngineProvider.js.map +1 -1
- package/lib/commonjs/components/v2/SecureFields/BankAccountView.js +71 -0
- package/lib/commonjs/components/v2/SecureFields/BankAccountView.js.map +1 -1
- package/lib/commonjs/components/v2/SecureFields/CreditCardView.js +82 -0
- package/lib/commonjs/components/v2/SecureFields/CreditCardView.js.map +1 -1
- package/lib/commonjs/components/v2/SecureFields/IPEField.js.map +1 -1
- package/lib/commonjs/components/v2/SecureFields/ITokenizationData.js.map +1 -1
- package/lib/commonjs/components/v2/SecureFields/PEBankAccount.js.map +1 -1
- package/lib/commonjs/components/v2/SecureFields/PECard.js.map +1 -1
- package/lib/commonjs/components/v2/SecureFields/PEKeyboardType.js +20 -3
- package/lib/commonjs/components/v2/SecureFields/PEKeyboardType.js.map +1 -1
- package/lib/commonjs/index.js +17 -13
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/interfaces/index.js +20 -0
- package/lib/commonjs/interfaces/index.js.map +1 -1
- package/lib/commonjs/utils/index.js +26 -0
- package/lib/commonjs/utils/index.js.map +1 -1
- package/lib/module/components/PayEngine.js +1 -1
- package/lib/module/components/PayEngine.js.map +1 -1
- package/lib/module/components/v2/ApplePay/PEApplePayButton.js +124 -0
- package/lib/module/components/v2/ApplePay/PEApplePayButton.js.map +1 -1
- package/lib/module/components/v2/ApplePay/PEApplePayInterfaces.js +75 -0
- package/lib/module/components/v2/ApplePay/PEApplePayInterfaces.js.map +1 -1
- package/lib/module/components/v2/GooglePay/PEGooglePayAddress.js.map +1 -1
- package/lib/module/components/v2/GooglePay/PEGooglePayButton.js +53 -0
- package/lib/module/components/v2/GooglePay/PEGooglePayButton.js.map +1 -1
- package/lib/module/components/v2/PEPaymentRequest.js +119 -0
- package/lib/module/components/v2/PEPaymentRequest.js.map +1 -1
- package/lib/module/components/v2/PayEngineNative.js +184 -5
- package/lib/module/components/v2/PayEngineNative.js.map +1 -1
- package/lib/module/components/v2/PayEngineProvider.js +51 -0
- package/lib/module/components/v2/PayEngineProvider.js.map +1 -1
- package/lib/module/components/v2/SecureFields/BankAccountView.js +71 -0
- package/lib/module/components/v2/SecureFields/BankAccountView.js.map +1 -1
- package/lib/module/components/v2/SecureFields/CreditCardView.js +82 -0
- package/lib/module/components/v2/SecureFields/CreditCardView.js.map +1 -1
- package/lib/module/components/v2/SecureFields/IPEField.js.map +1 -1
- package/lib/module/components/v2/SecureFields/ITokenizationData.js.map +1 -1
- package/lib/module/components/v2/SecureFields/PEBankAccount.js.map +1 -1
- package/lib/module/components/v2/SecureFields/PECard.js.map +1 -1
- package/lib/module/components/v2/SecureFields/PEKeyboardType.js +16 -1
- package/lib/module/components/v2/SecureFields/PEKeyboardType.js.map +1 -1
- package/lib/module/index.js +10 -5
- package/lib/module/index.js.map +1 -1
- package/lib/module/interfaces/index.js +19 -0
- package/lib/module/interfaces/index.js.map +1 -1
- package/lib/module/utils/index.js +27 -0
- package/lib/module/utils/index.js.map +1 -1
- package/lib/typescript/components/PayEngine.d.ts +1 -1
- package/lib/typescript/components/v2/ApplePay/PEApplePayButton.d.ts +217 -12
- package/lib/typescript/components/v2/ApplePay/PEApplePayInterfaces.d.ts +180 -1
- package/lib/typescript/components/v2/GooglePay/PEGooglePayAddress.d.ts +30 -0
- package/lib/typescript/components/v2/GooglePay/PEGooglePayButton.d.ts +99 -0
- package/lib/typescript/components/v2/PEPaymentRequest.d.ts +130 -9
- package/lib/typescript/components/v2/PayEngineNative.d.ts +165 -7
- package/lib/typescript/components/v2/PayEngineProvider.d.ts +51 -0
- package/lib/typescript/components/v2/SecureFields/BankAccountView.d.ts +103 -0
- package/lib/typescript/components/v2/SecureFields/CreditCardView.d.ts +114 -0
- package/lib/typescript/components/v2/SecureFields/IPEField.d.ts +49 -0
- package/lib/typescript/components/v2/SecureFields/ITokenizationData.d.ts +14 -0
- package/lib/typescript/components/v2/SecureFields/PEBankAccount.d.ts +36 -0
- package/lib/typescript/components/v2/SecureFields/PECard.d.ts +44 -0
- package/lib/typescript/components/v2/SecureFields/PEKeyboardType.d.ts +16 -1
- package/lib/typescript/index.d.ts +11 -5
- package/lib/typescript/interfaces/index.d.ts +35 -1
- package/lib/typescript/utils/index.d.ts +21 -0
- package/package.json +6 -3
- package/react-native-payengine.podspec +1 -1
- package/src/components/PayEngine.tsx +1 -1
- package/src/components/v2/ApplePay/PEApplePayButton.tsx +225 -12
- package/src/components/v2/ApplePay/PEApplePayInterfaces.ts +221 -8
- package/src/components/v2/GooglePay/PEGooglePayAddress.ts +39 -1
- package/src/components/v2/GooglePay/PEGooglePayButton.tsx +113 -9
- package/src/components/v2/PEPaymentRequest.ts +151 -13
- package/src/components/v2/PayEngineNative.tsx +196 -9
- package/src/components/v2/PayEngineProvider.tsx +52 -1
- package/src/components/v2/SecureFields/BankAccountView.tsx +108 -1
- package/src/components/v2/SecureFields/CreditCardView.tsx +118 -1
- package/src/components/v2/SecureFields/IPEField.ts +55 -0
- package/src/components/v2/SecureFields/ITokenizationData.ts +17 -2
- package/src/components/v2/SecureFields/PEBankAccount.ts +42 -0
- package/src/components/v2/SecureFields/PECard.ts +52 -0
- package/src/components/v2/SecureFields/PEKeyboardType.ts +18 -1
- package/src/index.tsx +23 -5
- package/src/interfaces/index.ts +40 -2
- package/src/utils/index.ts +21 -0
- package/android/.gradle/6.1.1/executionHistory/executionHistory.lock +0 -0
- package/android/.gradle/6.1.1/fileChanges/last-build.bin +0 -0
- package/android/.gradle/6.1.1/fileHashes/fileHashes.lock +0 -0
- package/android/.gradle/6.1.1/gc.properties +0 -0
- package/ios/PayEngineSDK.xcframework/ios-arm64/PayEngineSDK.framework/Headers/CustomWindow.h +0 -25
- package/ios/PayEngineSDK.xcframework/ios-arm64/PayEngineSDK.framework/Headers/UIControl+CustomControl.h +0 -33
- package/ios/PayEngineSDK.xcframework/ios-arm64/PayEngineSDK.framework/Headers/UIViewController+TouchControl.h +0 -27
- package/ios/PayEngineSDK.xcframework/ios-arm64_x86_64-simulator/PayEngineSDK.framework/Headers/CustomWindow.h +0 -25
- package/ios/PayEngineSDK.xcframework/ios-arm64_x86_64-simulator/PayEngineSDK.framework/Headers/UIControl+CustomControl.h +0 -33
- package/ios/PayEngineSDK.xcframework/ios-arm64_x86_64-simulator/PayEngineSDK.framework/Headers/UIViewController+TouchControl.h +0 -27
|
@@ -12,14 +12,9 @@ import WebKit
|
|
|
12
12
|
import _Concurrency
|
|
13
13
|
import _StringProcessing
|
|
14
14
|
import _SwiftConcurrencyShims
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
@objc @_Concurrency.MainActor @preconcurrency public func pinTo(view: UIKit.UIView)
|
|
19
|
-
@objc @_Concurrency.MainActor @preconcurrency public func registerEvent(name: Swift.String, handler: @escaping (_ data: Swift.AnyObject) -> Swift.Void)
|
|
20
|
-
@objc @_Concurrency.MainActor @preconcurrency public func removeEvent(name: Swift.String)
|
|
21
|
-
@_Concurrency.MainActor @preconcurrency @objc public func userContentController(_ userContentController: WebKit.WKUserContentController, didReceive message: WebKit.WKScriptMessage)
|
|
22
|
-
@objc deinit
|
|
15
|
+
public protocol PEAccessTokenRepresentable {
|
|
16
|
+
var accessToken: Swift.String { get }
|
|
17
|
+
var expiresIn: Swift.Int64 { get }
|
|
23
18
|
}
|
|
24
19
|
@objc @objcMembers public class PEConfig : ObjectiveC.NSObject {
|
|
25
20
|
@objc public init(publicKey: Swift.String, baseURL: Swift.String? = nil)
|
|
@@ -38,7 +33,6 @@ import _SwiftConcurrencyShims
|
|
|
38
33
|
}
|
|
39
34
|
}
|
|
40
35
|
@_inheritsConvenienceInitializers @objc @_Concurrency.MainActor @preconcurrency public class IBankAccountView : UIKit.UIStackView {
|
|
41
|
-
@_Concurrency.MainActor @preconcurrency public func setup(vaultId: Swift.String, env: Swift.String, publicKey: Swift.String, additionalFields: [PEField])
|
|
42
36
|
@_Concurrency.MainActor @preconcurrency public func createBankAccount(merchantId: Swift.String?, completion: @escaping (Swift.Result<PEBankAccount, any Swift.Error>) -> Swift.Void)
|
|
43
37
|
@_Concurrency.MainActor @preconcurrency public func createBankAccount(merchantId: Swift.String?, additionalData: [Swift.String : Any], completion: @escaping (Swift.Result<PEBankAccount, any Swift.Error>) -> Swift.Void)
|
|
44
38
|
@objc @_Concurrency.MainActor @preconcurrency public func createBankAccount(merchantId: Swift.String?, additionalData: [Swift.String : Any], completion: @escaping (PEBankAccount) -> Swift.Void, failure: @escaping (any Swift.Error) -> Swift.Void)
|
|
@@ -54,8 +48,6 @@ import _SwiftConcurrencyShims
|
|
|
54
48
|
@objc public var delegate: (any PEApplePayDelegate)?
|
|
55
49
|
public func applePayStatus(for paymentNetworks: [ApplePayPaymentNetwork] = []) -> ApplePayStatus
|
|
56
50
|
@objc public func setupApplePayButton(for paymentRequest: ApplePayPaymentRequest, type: PassKit.PKPaymentButtonType = .checkout, style: PassKit.PKPaymentButtonStyle = .black) -> UIKit.UIButton?
|
|
57
|
-
@objc public func startApplePayPayment() throws
|
|
58
|
-
@objc public func startApplePaySetup()
|
|
59
51
|
@objc deinit
|
|
60
52
|
}
|
|
61
53
|
extension PEApplePay : PassKit.PKPaymentAuthorizationViewControllerDelegate {
|
|
@@ -65,108 +57,59 @@ extension PEApplePay : PassKit.PKPaymentAuthorizationViewControllerDelegate {
|
|
|
65
57
|
@objc dynamic public func paymentAuthorizationViewController(_ controller: PassKit.PKPaymentAuthorizationViewController, didSelect shippingMethod: PassKit.PKShippingMethod, handler completion: @escaping (PassKit.PKPaymentRequestShippingMethodUpdate) -> Swift.Void)
|
|
66
58
|
@objc dynamic public func paymentAuthorizationViewController(_ controller: PassKit.PKPaymentAuthorizationViewController, didAuthorizePayment payment: PassKit.PKPayment, completion: @escaping (PassKit.PKPaymentAuthorizationStatus) -> Swift.Void)
|
|
67
59
|
}
|
|
68
|
-
@objc @objcMembers public class
|
|
69
|
-
@objc public
|
|
70
|
-
@objc
|
|
71
|
-
public
|
|
72
|
-
required public init(from decoder: any Swift.Decoder) throws
|
|
73
|
-
}
|
|
74
|
-
@objc @objcMembers public class ThreeDSResult : ObjectiveC.NSObject, Swift.Codable {
|
|
75
|
-
@objc public var message: Swift.String?
|
|
76
|
-
@objc public var success: Swift.Bool
|
|
77
|
-
@objc public var transactionId: Swift.String?
|
|
78
|
-
@objc public init(message: Swift.String?, success: Swift.Bool, transactionId: Swift.String?) throws
|
|
79
|
-
@objc deinit
|
|
80
|
-
public func encode(to encoder: any Swift.Encoder) throws
|
|
81
|
-
required public init(from decoder: any Swift.Decoder) throws
|
|
82
|
-
}
|
|
83
|
-
@objc @_inheritsConvenienceInitializers @_hasMissingDesignatedInitializers @objcMembers @_Concurrency.MainActor @preconcurrency public class ThreeDSModal : UIKit.UIView, WebKit.WKNavigationDelegate, WebKit.WKScriptMessageHandler {
|
|
84
|
-
@_Concurrency.MainActor @preconcurrency @objc override dynamic public init(frame: CoreFoundation.CGRect)
|
|
85
|
-
@objc @_Concurrency.MainActor @preconcurrency public func setup(config: PEConfig, threeDSData: Swift.String, handler: @escaping (_ data: ThreeDSResult) -> Swift.Void)
|
|
86
|
-
@objc @_Concurrency.MainActor @preconcurrency public func setupWebView()
|
|
87
|
-
@_Concurrency.MainActor @preconcurrency @objc public func webView(_ webView: WebKit.WKWebView, decidePolicyFor navigationAction: WebKit.WKNavigationAction, decisionHandler: @escaping (WebKit.WKNavigationActionPolicy) -> Swift.Void)
|
|
88
|
-
@_Concurrency.MainActor @preconcurrency @objc public func webView(_ webView: WebKit.WKWebView, didFinish navigation: WebKit.WKNavigation!)
|
|
89
|
-
@_Concurrency.MainActor @preconcurrency @objc public func userContentController(_ userContentController: WebKit.WKUserContentController, didReceive message: WebKit.WKScriptMessage)
|
|
90
|
-
@objc deinit
|
|
91
|
-
}
|
|
92
|
-
@objc @_inheritsConvenienceInitializers @_hasMissingDesignatedInitializers @objcMembers @_Concurrency.MainActor @preconcurrency public class PEPaymentView : ICardNumberView {
|
|
93
|
-
@_Concurrency.MainActor @preconcurrency @objc override dynamic public func didMoveToSuperview()
|
|
94
|
-
@_Concurrency.MainActor @preconcurrency @objc override dynamic public func layoutSubviews()
|
|
95
|
-
@objc @_Concurrency.MainActor @preconcurrency override public func setup(vaultId: Swift.String, env: Swift.String, publicKey: Swift.String, additionalFields: [PEField])
|
|
96
|
-
@objc @_Concurrency.MainActor @preconcurrency override public func validate() -> Swift.Bool
|
|
97
|
-
@_Concurrency.MainActor @preconcurrency override public func createCard(merchantId: Swift.String?, additionalData: [Swift.String : Any], completion: @escaping (Swift.Result<PECard, any Swift.Error>) -> Swift.Void)
|
|
98
|
-
@objc @_Concurrency.MainActor @preconcurrency override public func showKeyboard()
|
|
99
|
-
@objc deinit
|
|
100
|
-
}
|
|
101
|
-
@objc @objcMembers public class BankAccountResponse : ObjectiveC.NSObject, Swift.Codable {
|
|
102
|
-
@objc public init(message: Swift.String, data: PEBankAccount) throws
|
|
60
|
+
@objc @_hasMissingDesignatedInitializers @objcMembers public class ThreeDSResult : ObjectiveC.NSObject, Swift.Codable {
|
|
61
|
+
@objc final public let message: Swift.String?
|
|
62
|
+
@objc final public let success: Swift.Bool
|
|
63
|
+
@objc final public let transactionId: Swift.String?
|
|
103
64
|
@objc deinit
|
|
104
65
|
public func encode(to encoder: any Swift.Encoder) throws
|
|
105
66
|
required public init(from decoder: any Swift.Decoder) throws
|
|
106
67
|
}
|
|
107
|
-
@objc @objcMembers public class BankAccountData : ObjectiveC.NSObject, Swift.Codable {
|
|
108
|
-
@objc public
|
|
109
|
-
@objc public
|
|
110
|
-
@objc public
|
|
111
|
-
@objc public
|
|
112
|
-
@objc public init(routingNumber: Swift.String, last4: Swift.String, firstName: Swift.String, lastName: Swift.String) throws
|
|
68
|
+
@objc @_hasMissingDesignatedInitializers @objcMembers public class BankAccountData : ObjectiveC.NSObject, Swift.Codable {
|
|
69
|
+
@objc final public let routingNumber: Swift.String
|
|
70
|
+
@objc final public let last4: Swift.String
|
|
71
|
+
@objc final public let firstName: Swift.String
|
|
72
|
+
@objc final public let lastName: Swift.String
|
|
113
73
|
@objc deinit
|
|
114
74
|
public func encode(to encoder: any Swift.Encoder) throws
|
|
115
75
|
required public init(from decoder: any Swift.Decoder) throws
|
|
116
76
|
}
|
|
117
|
-
@objc @objcMembers public class PEBankAccount : ObjectiveC.NSObject, Swift.Codable {
|
|
118
|
-
@objc public
|
|
119
|
-
@objc public
|
|
120
|
-
@objc public init(token: Swift.String, bankAccountData: BankAccountData) throws
|
|
77
|
+
@objc @_hasMissingDesignatedInitializers @objcMembers public class PEBankAccount : ObjectiveC.NSObject, Swift.Codable {
|
|
78
|
+
@objc final public let token: Swift.String
|
|
79
|
+
@objc final public let bankAccountData: BankAccountData
|
|
121
80
|
@objc deinit
|
|
122
81
|
public func encode(to encoder: any Swift.Encoder) throws
|
|
123
82
|
required public init(from decoder: any Swift.Decoder) throws
|
|
124
83
|
}
|
|
125
|
-
public struct KountSettingResponseData : Swift.Codable {
|
|
126
|
-
public init(enable_kount_integration: Swift.Bool, kount_client_id: Swift.String?, session_ID: Swift.String?) throws
|
|
127
|
-
public func encode(to encoder: any Swift.Encoder) throws
|
|
128
|
-
public init(from decoder: any Swift.Decoder) throws
|
|
129
|
-
}
|
|
130
84
|
@objc @objcMembers public class PEField : ObjectiveC.NSObject {
|
|
85
|
+
@objc public var name: Swift.String
|
|
86
|
+
@objc public var type: Swift.String
|
|
87
|
+
@objc public var placeholder: Swift.String
|
|
88
|
+
@objc public var isRequired: Swift.Bool
|
|
89
|
+
public var keyboardType: PEKeyboardType
|
|
90
|
+
@objc public var pattern: Swift.String?
|
|
131
91
|
public init(name: Swift.String, type: Swift.String, placeholder: Swift.String, isRequired: Swift.Bool, keyboardType: PEKeyboardType = .normal, pattern: Swift.String?)
|
|
132
92
|
@objc deinit
|
|
133
93
|
}
|
|
134
|
-
@objc @objcMembers public class
|
|
135
|
-
@objc public
|
|
94
|
+
@objc @_hasMissingDesignatedInitializers @objcMembers public class CardData : ObjectiveC.NSObject, Swift.Codable {
|
|
95
|
+
@objc final public let id: Swift.String
|
|
96
|
+
@objc final public let brand: Swift.String
|
|
97
|
+
@objc final public let last4: Swift.String
|
|
98
|
+
@objc final public let expMonth: Swift.Int
|
|
99
|
+
@objc final public let expYear: Swift.Int
|
|
100
|
+
@objc final public let name: Swift.String
|
|
101
|
+
@objc final public let addressZip: Swift.String?
|
|
136
102
|
@objc deinit
|
|
137
103
|
public func encode(to encoder: any Swift.Encoder) throws
|
|
138
104
|
required public init(from decoder: any Swift.Decoder) throws
|
|
139
105
|
}
|
|
140
|
-
@objc @objcMembers public class
|
|
141
|
-
@objc public
|
|
142
|
-
@objc public
|
|
143
|
-
@objc public var last4: Swift.String
|
|
144
|
-
@objc public var expMonth: Swift.Int
|
|
145
|
-
@objc public var expYear: Swift.Int
|
|
146
|
-
@objc public var name: Swift.String
|
|
147
|
-
@objc public var addressZip: Swift.String?
|
|
148
|
-
@objc public init(id: Swift.String, brand: Swift.String, last4: Swift.String, expMonth: Swift.Int, expYear: Swift.Int, name: Swift.String, addressZip: Swift.String?) throws
|
|
106
|
+
@objc @_hasMissingDesignatedInitializers @objcMembers public class PECard : ObjectiveC.NSObject, Swift.Codable {
|
|
107
|
+
@objc final public let token: Swift.String
|
|
108
|
+
@objc final public let cardData: CardData
|
|
149
109
|
@objc deinit
|
|
150
110
|
public func encode(to encoder: any Swift.Encoder) throws
|
|
151
111
|
required public init(from decoder: any Swift.Decoder) throws
|
|
152
112
|
}
|
|
153
|
-
@objc @objcMembers public class PECard : ObjectiveC.NSObject, Swift.Codable {
|
|
154
|
-
@objc public var token: Swift.String
|
|
155
|
-
@objc public var cardData: CardData
|
|
156
|
-
@objc public init(token: Swift.String, cardData: CardData) throws
|
|
157
|
-
@objc deinit
|
|
158
|
-
public func encode(to encoder: any Swift.Encoder) throws
|
|
159
|
-
required public init(from decoder: any Swift.Decoder) throws
|
|
160
|
-
}
|
|
161
|
-
@objc @_inheritsConvenienceInitializers @_hasMissingDesignatedInitializers @_Concurrency.MainActor @preconcurrency public class PEBankAccountView : IBankAccountView {
|
|
162
|
-
@_Concurrency.MainActor @preconcurrency @objc override dynamic public func didMoveToSuperview()
|
|
163
|
-
@_Concurrency.MainActor @preconcurrency @objc override dynamic public func layoutSubviews()
|
|
164
|
-
@_Concurrency.MainActor @preconcurrency override public func setup(vaultId: Swift.String, env: Swift.String, publicKey: Swift.String, additionalFields: [PEField])
|
|
165
|
-
@_Concurrency.MainActor @preconcurrency override public func validate() -> Swift.Bool
|
|
166
|
-
@_Concurrency.MainActor @preconcurrency override public func createBankAccount(merchantId: Swift.String?, additionalData: [Swift.String : Any], completion: @escaping (Swift.Result<PEBankAccount, any Swift.Error>) -> Swift.Void)
|
|
167
|
-
@_Concurrency.MainActor @preconcurrency override public func showKeyboard()
|
|
168
|
-
@objc deinit
|
|
169
|
-
}
|
|
170
113
|
@objc public enum ApplePayStatus : Swift.Int {
|
|
171
114
|
case eligible
|
|
172
115
|
case needSetup
|
|
@@ -178,10 +121,6 @@ public struct KountSettingResponseData : Swift.Codable {
|
|
|
178
121
|
get
|
|
179
122
|
}
|
|
180
123
|
}
|
|
181
|
-
public struct ApplePayConfigDataResponse : Swift.Codable {
|
|
182
|
-
public func encode(to encoder: any Swift.Encoder) throws
|
|
183
|
-
public init(from decoder: any Swift.Decoder) throws
|
|
184
|
-
}
|
|
185
124
|
@_inheritsConvenienceInitializers @objc public class ApplePayPaymentRequest : ObjectiveC.NSObject {
|
|
186
125
|
@objc public func build(paymentItems: [PassKit.PKPaymentSummaryItem] = [], paymentAmount: Swift.Double, currencyCode: Swift.String = "USD", requiredBillingContactFields: Swift.Set<PassKit.PKContactField> = [], requiredShippingContactFields: Swift.Set<PassKit.PKContactField> = [], shippingMethods: [PassKit.PKShippingMethod] = [])
|
|
187
126
|
@objc override dynamic public init()
|
|
@@ -196,19 +135,9 @@ public struct ApplePayConfigDataResponse : Swift.Codable {
|
|
|
196
135
|
get
|
|
197
136
|
}
|
|
198
137
|
}
|
|
199
|
-
@objc @_inheritsConvenienceInitializers @_Concurrency.MainActor @preconcurrency open class FraudAnalyticsViewController : KountAnalyticsViewController {
|
|
200
|
-
@_Concurrency.MainActor @preconcurrency @objc override dynamic public init(nibName nibNameOrNil: Swift.String?, bundle nibBundleOrNil: Foundation.Bundle?)
|
|
201
|
-
@_Concurrency.MainActor @preconcurrency @objc required dynamic public init?(coder: Foundation.NSCoder)
|
|
202
|
-
@objc deinit
|
|
203
|
-
}
|
|
204
|
-
@_hasMissingDesignatedInitializers @objcMembers public class WebViewHelper {
|
|
205
|
-
@objc public static func getBrowserInfo(view: UIKit.UIView, handler: @escaping (_ data: Swift.String) -> Swift.Void)
|
|
206
|
-
@objc deinit
|
|
207
|
-
}
|
|
208
138
|
@objc public class PayEngine : ObjectiveC.NSObject {
|
|
209
139
|
@objc public init(config: PEConfig)
|
|
210
140
|
@objc public static func setThemeMode(_ themMode: PEThemeMode)
|
|
211
|
-
@objc public func createComponent(name: Swift.String, props: [Swift.String : Swift.String]) -> PEComponent
|
|
212
141
|
@objc public func createSecureView(additionalFields: [PEField]?, completion: @escaping (ICardNumberView) -> Swift.Void)
|
|
213
142
|
@objc public func createBankAccountView(additionalFields: [PEField]?, completion: @escaping (IBankAccountView) -> Swift.Void)
|
|
214
143
|
@objc public func getBrowserInfo(view: UIKit.UIView, handler: @escaping (_ data: Swift.String) -> Swift.Void)
|
|
@@ -222,10 +151,9 @@ public struct ApplePayConfigDataResponse : Swift.Codable {
|
|
|
222
151
|
public class func getCurrentVersionString() -> Swift.String?
|
|
223
152
|
@objc deinit
|
|
224
153
|
}
|
|
225
|
-
|
|
226
|
-
public
|
|
227
|
-
public func
|
|
228
|
-
public init(from decoder: any Swift.Decoder) throws
|
|
154
|
+
extension PayEngine {
|
|
155
|
+
public static func setFetchAccessTokenCallback(_ callback: @escaping (() throws -> any PEAccessTokenRepresentable))
|
|
156
|
+
public static func logout(merchantId: Swift.String)
|
|
229
157
|
}
|
|
230
158
|
public enum PEKeyboardType {
|
|
231
159
|
case number
|
|
@@ -263,7 +191,6 @@ public enum PEKeyboardType {
|
|
|
263
191
|
case Visa
|
|
264
192
|
case VPay
|
|
265
193
|
public init?(rawValue: Swift.String)
|
|
266
|
-
public init?(applePayNetwork: PassKit.PKPaymentNetwork)
|
|
267
194
|
public typealias RawValue = Swift.String
|
|
268
195
|
public var rawValue: ApplePayPaymentNetwork.RawValue {
|
|
269
196
|
get
|
|
@@ -287,16 +214,7 @@ extension UIKit.UIView {
|
|
|
287
214
|
extension UIKit.UIView {
|
|
288
215
|
@_Concurrency.MainActor @preconcurrency public func pinEdgesTo(to other: UIKit.UIView)
|
|
289
216
|
}
|
|
290
|
-
public struct MobilePaymentDataResponse : Swift.Codable {
|
|
291
|
-
public func encode(to encoder: any Swift.Encoder) throws
|
|
292
|
-
public init(from decoder: any Swift.Decoder) throws
|
|
293
|
-
}
|
|
294
|
-
public struct MobilePaymentDataApplePayResponse : Swift.Codable {
|
|
295
|
-
public func encode(to encoder: any Swift.Encoder) throws
|
|
296
|
-
public init(from decoder: any Swift.Decoder) throws
|
|
297
|
-
}
|
|
298
217
|
@_inheritsConvenienceInitializers @objc @_Concurrency.MainActor @preconcurrency public class ICardNumberView : UIKit.UIStackView {
|
|
299
|
-
@_Concurrency.MainActor @preconcurrency public func setup(vaultId: Swift.String, env: Swift.String, publicKey: Swift.String, additionalFields: [PEField])
|
|
300
218
|
@_Concurrency.MainActor @preconcurrency public func createCard(merchantId: Swift.String?, completion: @escaping (Swift.Result<PECard, any Swift.Error>) -> Swift.Void)
|
|
301
219
|
@_Concurrency.MainActor @preconcurrency public func createCard(merchantId: Swift.String?, additionalData: [Swift.String : Any], completion: @escaping (Swift.Result<PECard, any Swift.Error>) -> Swift.Void)
|
|
302
220
|
@objc @_Concurrency.MainActor @preconcurrency public func createCard(merchantId: Swift.String?, additionalData: [Swift.String : Any], completion: @escaping (PECard) -> Swift.Void, failure: @escaping (any Swift.Error) -> Swift.Void)
|
|
@@ -12,14 +12,9 @@ import WebKit
|
|
|
12
12
|
import _Concurrency
|
|
13
13
|
import _StringProcessing
|
|
14
14
|
import _SwiftConcurrencyShims
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
@objc @_Concurrency.MainActor @preconcurrency public func pinTo(view: UIKit.UIView)
|
|
19
|
-
@objc @_Concurrency.MainActor @preconcurrency public func registerEvent(name: Swift.String, handler: @escaping (_ data: Swift.AnyObject) -> Swift.Void)
|
|
20
|
-
@objc @_Concurrency.MainActor @preconcurrency public func removeEvent(name: Swift.String)
|
|
21
|
-
@_Concurrency.MainActor @preconcurrency @objc public func userContentController(_ userContentController: WebKit.WKUserContentController, didReceive message: WebKit.WKScriptMessage)
|
|
22
|
-
@objc deinit
|
|
15
|
+
public protocol PEAccessTokenRepresentable {
|
|
16
|
+
var accessToken: Swift.String { get }
|
|
17
|
+
var expiresIn: Swift.Int64 { get }
|
|
23
18
|
}
|
|
24
19
|
@objc @objcMembers public class PEConfig : ObjectiveC.NSObject {
|
|
25
20
|
@objc public init(publicKey: Swift.String, baseURL: Swift.String? = nil)
|
|
@@ -38,7 +33,6 @@ import _SwiftConcurrencyShims
|
|
|
38
33
|
}
|
|
39
34
|
}
|
|
40
35
|
@_inheritsConvenienceInitializers @objc @_Concurrency.MainActor @preconcurrency public class IBankAccountView : UIKit.UIStackView {
|
|
41
|
-
@_Concurrency.MainActor @preconcurrency public func setup(vaultId: Swift.String, env: Swift.String, publicKey: Swift.String, additionalFields: [PayEngineSDK.PEField])
|
|
42
36
|
@_Concurrency.MainActor @preconcurrency public func createBankAccount(merchantId: Swift.String?, completion: @escaping (Swift.Result<PayEngineSDK.PEBankAccount, any Swift.Error>) -> Swift.Void)
|
|
43
37
|
@_Concurrency.MainActor @preconcurrency public func createBankAccount(merchantId: Swift.String?, additionalData: [Swift.String : Any], completion: @escaping (Swift.Result<PayEngineSDK.PEBankAccount, any Swift.Error>) -> Swift.Void)
|
|
44
38
|
@objc @_Concurrency.MainActor @preconcurrency public func createBankAccount(merchantId: Swift.String?, additionalData: [Swift.String : Any], completion: @escaping (PayEngineSDK.PEBankAccount) -> Swift.Void, failure: @escaping (any Swift.Error) -> Swift.Void)
|
|
@@ -54,8 +48,6 @@ import _SwiftConcurrencyShims
|
|
|
54
48
|
@objc public var delegate: (any PayEngineSDK.PEApplePayDelegate)?
|
|
55
49
|
public func applePayStatus(for paymentNetworks: [PayEngineSDK.ApplePayPaymentNetwork] = []) -> PayEngineSDK.ApplePayStatus
|
|
56
50
|
@objc public func setupApplePayButton(for paymentRequest: PayEngineSDK.ApplePayPaymentRequest, type: PassKit.PKPaymentButtonType = .checkout, style: PassKit.PKPaymentButtonStyle = .black) -> UIKit.UIButton?
|
|
57
|
-
@objc public func startApplePayPayment() throws
|
|
58
|
-
@objc public func startApplePaySetup()
|
|
59
51
|
@objc deinit
|
|
60
52
|
}
|
|
61
53
|
extension PayEngineSDK.PEApplePay : PassKit.PKPaymentAuthorizationViewControllerDelegate {
|
|
@@ -65,108 +57,59 @@ extension PayEngineSDK.PEApplePay : PassKit.PKPaymentAuthorizationViewController
|
|
|
65
57
|
@objc dynamic public func paymentAuthorizationViewController(_ controller: PassKit.PKPaymentAuthorizationViewController, didSelect shippingMethod: PassKit.PKShippingMethod, handler completion: @escaping (PassKit.PKPaymentRequestShippingMethodUpdate) -> Swift.Void)
|
|
66
58
|
@objc dynamic public func paymentAuthorizationViewController(_ controller: PassKit.PKPaymentAuthorizationViewController, didAuthorizePayment payment: PassKit.PKPayment, completion: @escaping (PassKit.PKPaymentAuthorizationStatus) -> Swift.Void)
|
|
67
59
|
}
|
|
68
|
-
@objc @objcMembers public class
|
|
69
|
-
@objc public
|
|
70
|
-
@objc
|
|
71
|
-
public
|
|
72
|
-
required public init(from decoder: any Swift.Decoder) throws
|
|
73
|
-
}
|
|
74
|
-
@objc @objcMembers public class ThreeDSResult : ObjectiveC.NSObject, Swift.Codable {
|
|
75
|
-
@objc public var message: Swift.String?
|
|
76
|
-
@objc public var success: Swift.Bool
|
|
77
|
-
@objc public var transactionId: Swift.String?
|
|
78
|
-
@objc public init(message: Swift.String?, success: Swift.Bool, transactionId: Swift.String?) throws
|
|
79
|
-
@objc deinit
|
|
80
|
-
public func encode(to encoder: any Swift.Encoder) throws
|
|
81
|
-
required public init(from decoder: any Swift.Decoder) throws
|
|
82
|
-
}
|
|
83
|
-
@objc @_inheritsConvenienceInitializers @_hasMissingDesignatedInitializers @objcMembers @_Concurrency.MainActor @preconcurrency public class ThreeDSModal : UIKit.UIView, WebKit.WKNavigationDelegate, WebKit.WKScriptMessageHandler {
|
|
84
|
-
@_Concurrency.MainActor @preconcurrency @objc override dynamic public init(frame: CoreFoundation.CGRect)
|
|
85
|
-
@objc @_Concurrency.MainActor @preconcurrency public func setup(config: PayEngineSDK.PEConfig, threeDSData: Swift.String, handler: @escaping (_ data: PayEngineSDK.ThreeDSResult) -> Swift.Void)
|
|
86
|
-
@objc @_Concurrency.MainActor @preconcurrency public func setupWebView()
|
|
87
|
-
@_Concurrency.MainActor @preconcurrency @objc public func webView(_ webView: WebKit.WKWebView, decidePolicyFor navigationAction: WebKit.WKNavigationAction, decisionHandler: @escaping (WebKit.WKNavigationActionPolicy) -> Swift.Void)
|
|
88
|
-
@_Concurrency.MainActor @preconcurrency @objc public func webView(_ webView: WebKit.WKWebView, didFinish navigation: WebKit.WKNavigation!)
|
|
89
|
-
@_Concurrency.MainActor @preconcurrency @objc public func userContentController(_ userContentController: WebKit.WKUserContentController, didReceive message: WebKit.WKScriptMessage)
|
|
90
|
-
@objc deinit
|
|
91
|
-
}
|
|
92
|
-
@objc @_inheritsConvenienceInitializers @_hasMissingDesignatedInitializers @objcMembers @_Concurrency.MainActor @preconcurrency public class PEPaymentView : PayEngineSDK.ICardNumberView {
|
|
93
|
-
@_Concurrency.MainActor @preconcurrency @objc override dynamic public func didMoveToSuperview()
|
|
94
|
-
@_Concurrency.MainActor @preconcurrency @objc override dynamic public func layoutSubviews()
|
|
95
|
-
@objc @_Concurrency.MainActor @preconcurrency override public func setup(vaultId: Swift.String, env: Swift.String, publicKey: Swift.String, additionalFields: [PayEngineSDK.PEField])
|
|
96
|
-
@objc @_Concurrency.MainActor @preconcurrency override public func validate() -> Swift.Bool
|
|
97
|
-
@_Concurrency.MainActor @preconcurrency override public func createCard(merchantId: Swift.String?, additionalData: [Swift.String : Any], completion: @escaping (Swift.Result<PayEngineSDK.PECard, any Swift.Error>) -> Swift.Void)
|
|
98
|
-
@objc @_Concurrency.MainActor @preconcurrency override public func showKeyboard()
|
|
99
|
-
@objc deinit
|
|
100
|
-
}
|
|
101
|
-
@objc @objcMembers public class BankAccountResponse : ObjectiveC.NSObject, Swift.Codable {
|
|
102
|
-
@objc public init(message: Swift.String, data: PayEngineSDK.PEBankAccount) throws
|
|
60
|
+
@objc @_hasMissingDesignatedInitializers @objcMembers public class ThreeDSResult : ObjectiveC.NSObject, Swift.Codable {
|
|
61
|
+
@objc final public let message: Swift.String?
|
|
62
|
+
@objc final public let success: Swift.Bool
|
|
63
|
+
@objc final public let transactionId: Swift.String?
|
|
103
64
|
@objc deinit
|
|
104
65
|
public func encode(to encoder: any Swift.Encoder) throws
|
|
105
66
|
required public init(from decoder: any Swift.Decoder) throws
|
|
106
67
|
}
|
|
107
|
-
@objc @objcMembers public class BankAccountData : ObjectiveC.NSObject, Swift.Codable {
|
|
108
|
-
@objc public
|
|
109
|
-
@objc public
|
|
110
|
-
@objc public
|
|
111
|
-
@objc public
|
|
112
|
-
@objc public init(routingNumber: Swift.String, last4: Swift.String, firstName: Swift.String, lastName: Swift.String) throws
|
|
68
|
+
@objc @_hasMissingDesignatedInitializers @objcMembers public class BankAccountData : ObjectiveC.NSObject, Swift.Codable {
|
|
69
|
+
@objc final public let routingNumber: Swift.String
|
|
70
|
+
@objc final public let last4: Swift.String
|
|
71
|
+
@objc final public let firstName: Swift.String
|
|
72
|
+
@objc final public let lastName: Swift.String
|
|
113
73
|
@objc deinit
|
|
114
74
|
public func encode(to encoder: any Swift.Encoder) throws
|
|
115
75
|
required public init(from decoder: any Swift.Decoder) throws
|
|
116
76
|
}
|
|
117
|
-
@objc @objcMembers public class PEBankAccount : ObjectiveC.NSObject, Swift.Codable {
|
|
118
|
-
@objc public
|
|
119
|
-
@objc public
|
|
120
|
-
@objc public init(token: Swift.String, bankAccountData: PayEngineSDK.BankAccountData) throws
|
|
77
|
+
@objc @_hasMissingDesignatedInitializers @objcMembers public class PEBankAccount : ObjectiveC.NSObject, Swift.Codable {
|
|
78
|
+
@objc final public let token: Swift.String
|
|
79
|
+
@objc final public let bankAccountData: PayEngineSDK.BankAccountData
|
|
121
80
|
@objc deinit
|
|
122
81
|
public func encode(to encoder: any Swift.Encoder) throws
|
|
123
82
|
required public init(from decoder: any Swift.Decoder) throws
|
|
124
83
|
}
|
|
125
|
-
public struct KountSettingResponseData : Swift.Codable {
|
|
126
|
-
public init(enable_kount_integration: Swift.Bool, kount_client_id: Swift.String?, session_ID: Swift.String?) throws
|
|
127
|
-
public func encode(to encoder: any Swift.Encoder) throws
|
|
128
|
-
public init(from decoder: any Swift.Decoder) throws
|
|
129
|
-
}
|
|
130
84
|
@objc @objcMembers public class PEField : ObjectiveC.NSObject {
|
|
85
|
+
@objc public var name: Swift.String
|
|
86
|
+
@objc public var type: Swift.String
|
|
87
|
+
@objc public var placeholder: Swift.String
|
|
88
|
+
@objc public var isRequired: Swift.Bool
|
|
89
|
+
public var keyboardType: PayEngineSDK.PEKeyboardType
|
|
90
|
+
@objc public var pattern: Swift.String?
|
|
131
91
|
public init(name: Swift.String, type: Swift.String, placeholder: Swift.String, isRequired: Swift.Bool, keyboardType: PayEngineSDK.PEKeyboardType = .normal, pattern: Swift.String?)
|
|
132
92
|
@objc deinit
|
|
133
93
|
}
|
|
134
|
-
@objc @objcMembers public class
|
|
135
|
-
@objc public
|
|
94
|
+
@objc @_hasMissingDesignatedInitializers @objcMembers public class CardData : ObjectiveC.NSObject, Swift.Codable {
|
|
95
|
+
@objc final public let id: Swift.String
|
|
96
|
+
@objc final public let brand: Swift.String
|
|
97
|
+
@objc final public let last4: Swift.String
|
|
98
|
+
@objc final public let expMonth: Swift.Int
|
|
99
|
+
@objc final public let expYear: Swift.Int
|
|
100
|
+
@objc final public let name: Swift.String
|
|
101
|
+
@objc final public let addressZip: Swift.String?
|
|
136
102
|
@objc deinit
|
|
137
103
|
public func encode(to encoder: any Swift.Encoder) throws
|
|
138
104
|
required public init(from decoder: any Swift.Decoder) throws
|
|
139
105
|
}
|
|
140
|
-
@objc @objcMembers public class
|
|
141
|
-
@objc public
|
|
142
|
-
@objc public
|
|
143
|
-
@objc public var last4: Swift.String
|
|
144
|
-
@objc public var expMonth: Swift.Int
|
|
145
|
-
@objc public var expYear: Swift.Int
|
|
146
|
-
@objc public var name: Swift.String
|
|
147
|
-
@objc public var addressZip: Swift.String?
|
|
148
|
-
@objc public init(id: Swift.String, brand: Swift.String, last4: Swift.String, expMonth: Swift.Int, expYear: Swift.Int, name: Swift.String, addressZip: Swift.String?) throws
|
|
106
|
+
@objc @_hasMissingDesignatedInitializers @objcMembers public class PECard : ObjectiveC.NSObject, Swift.Codable {
|
|
107
|
+
@objc final public let token: Swift.String
|
|
108
|
+
@objc final public let cardData: PayEngineSDK.CardData
|
|
149
109
|
@objc deinit
|
|
150
110
|
public func encode(to encoder: any Swift.Encoder) throws
|
|
151
111
|
required public init(from decoder: any Swift.Decoder) throws
|
|
152
112
|
}
|
|
153
|
-
@objc @objcMembers public class PECard : ObjectiveC.NSObject, Swift.Codable {
|
|
154
|
-
@objc public var token: Swift.String
|
|
155
|
-
@objc public var cardData: PayEngineSDK.CardData
|
|
156
|
-
@objc public init(token: Swift.String, cardData: PayEngineSDK.CardData) throws
|
|
157
|
-
@objc deinit
|
|
158
|
-
public func encode(to encoder: any Swift.Encoder) throws
|
|
159
|
-
required public init(from decoder: any Swift.Decoder) throws
|
|
160
|
-
}
|
|
161
|
-
@objc @_inheritsConvenienceInitializers @_hasMissingDesignatedInitializers @_Concurrency.MainActor @preconcurrency public class PEBankAccountView : PayEngineSDK.IBankAccountView {
|
|
162
|
-
@_Concurrency.MainActor @preconcurrency @objc override dynamic public func didMoveToSuperview()
|
|
163
|
-
@_Concurrency.MainActor @preconcurrency @objc override dynamic public func layoutSubviews()
|
|
164
|
-
@_Concurrency.MainActor @preconcurrency override public func setup(vaultId: Swift.String, env: Swift.String, publicKey: Swift.String, additionalFields: [PayEngineSDK.PEField])
|
|
165
|
-
@_Concurrency.MainActor @preconcurrency override public func validate() -> Swift.Bool
|
|
166
|
-
@_Concurrency.MainActor @preconcurrency override public func createBankAccount(merchantId: Swift.String?, additionalData: [Swift.String : Any], completion: @escaping (Swift.Result<PayEngineSDK.PEBankAccount, any Swift.Error>) -> Swift.Void)
|
|
167
|
-
@_Concurrency.MainActor @preconcurrency override public func showKeyboard()
|
|
168
|
-
@objc deinit
|
|
169
|
-
}
|
|
170
113
|
@objc public enum ApplePayStatus : Swift.Int {
|
|
171
114
|
case eligible
|
|
172
115
|
case needSetup
|
|
@@ -178,10 +121,6 @@ public struct KountSettingResponseData : Swift.Codable {
|
|
|
178
121
|
get
|
|
179
122
|
}
|
|
180
123
|
}
|
|
181
|
-
public struct ApplePayConfigDataResponse : Swift.Codable {
|
|
182
|
-
public func encode(to encoder: any Swift.Encoder) throws
|
|
183
|
-
public init(from decoder: any Swift.Decoder) throws
|
|
184
|
-
}
|
|
185
124
|
@_inheritsConvenienceInitializers @objc public class ApplePayPaymentRequest : ObjectiveC.NSObject {
|
|
186
125
|
@objc public func build(paymentItems: [PassKit.PKPaymentSummaryItem] = [], paymentAmount: Swift.Double, currencyCode: Swift.String = "USD", requiredBillingContactFields: Swift.Set<PassKit.PKContactField> = [], requiredShippingContactFields: Swift.Set<PassKit.PKContactField> = [], shippingMethods: [PassKit.PKShippingMethod] = [])
|
|
187
126
|
@objc override dynamic public init()
|
|
@@ -196,19 +135,9 @@ public struct ApplePayConfigDataResponse : Swift.Codable {
|
|
|
196
135
|
get
|
|
197
136
|
}
|
|
198
137
|
}
|
|
199
|
-
@objc @_inheritsConvenienceInitializers @_Concurrency.MainActor @preconcurrency open class FraudAnalyticsViewController : PayEngineSDK.KountAnalyticsViewController {
|
|
200
|
-
@_Concurrency.MainActor @preconcurrency @objc override dynamic public init(nibName nibNameOrNil: Swift.String?, bundle nibBundleOrNil: Foundation.Bundle?)
|
|
201
|
-
@_Concurrency.MainActor @preconcurrency @objc required dynamic public init?(coder: Foundation.NSCoder)
|
|
202
|
-
@objc deinit
|
|
203
|
-
}
|
|
204
|
-
@_hasMissingDesignatedInitializers @objcMembers public class WebViewHelper {
|
|
205
|
-
@objc public static func getBrowserInfo(view: UIKit.UIView, handler: @escaping (_ data: Swift.String) -> Swift.Void)
|
|
206
|
-
@objc deinit
|
|
207
|
-
}
|
|
208
138
|
@objc public class PayEngine : ObjectiveC.NSObject {
|
|
209
139
|
@objc public init(config: PayEngineSDK.PEConfig)
|
|
210
140
|
@objc public static func setThemeMode(_ themMode: PayEngineSDK.PEThemeMode)
|
|
211
|
-
@objc public func createComponent(name: Swift.String, props: [Swift.String : Swift.String]) -> PayEngineSDK.PEComponent
|
|
212
141
|
@objc public func createSecureView(additionalFields: [PayEngineSDK.PEField]?, completion: @escaping (PayEngineSDK.ICardNumberView) -> Swift.Void)
|
|
213
142
|
@objc public func createBankAccountView(additionalFields: [PayEngineSDK.PEField]?, completion: @escaping (PayEngineSDK.IBankAccountView) -> Swift.Void)
|
|
214
143
|
@objc public func getBrowserInfo(view: UIKit.UIView, handler: @escaping (_ data: Swift.String) -> Swift.Void)
|
|
@@ -222,10 +151,9 @@ public struct ApplePayConfigDataResponse : Swift.Codable {
|
|
|
222
151
|
public class func getCurrentVersionString() -> Swift.String?
|
|
223
152
|
@objc deinit
|
|
224
153
|
}
|
|
225
|
-
|
|
226
|
-
public
|
|
227
|
-
public func
|
|
228
|
-
public init(from decoder: any Swift.Decoder) throws
|
|
154
|
+
extension PayEngineSDK.PayEngine {
|
|
155
|
+
public static func setFetchAccessTokenCallback(_ callback: @escaping (() throws -> any PayEngineSDK.PEAccessTokenRepresentable))
|
|
156
|
+
public static func logout(merchantId: Swift.String)
|
|
229
157
|
}
|
|
230
158
|
public enum PEKeyboardType {
|
|
231
159
|
case number
|
|
@@ -263,7 +191,6 @@ public enum PEKeyboardType {
|
|
|
263
191
|
case Visa
|
|
264
192
|
case VPay
|
|
265
193
|
public init?(rawValue: Swift.String)
|
|
266
|
-
public init?(applePayNetwork: PassKit.PKPaymentNetwork)
|
|
267
194
|
public typealias RawValue = Swift.String
|
|
268
195
|
public var rawValue: PayEngineSDK.ApplePayPaymentNetwork.RawValue {
|
|
269
196
|
get
|
|
@@ -287,16 +214,7 @@ extension UIKit.UIView {
|
|
|
287
214
|
extension UIKit.UIView {
|
|
288
215
|
@_Concurrency.MainActor @preconcurrency public func pinEdgesTo(to other: UIKit.UIView)
|
|
289
216
|
}
|
|
290
|
-
public struct MobilePaymentDataResponse : Swift.Codable {
|
|
291
|
-
public func encode(to encoder: any Swift.Encoder) throws
|
|
292
|
-
public init(from decoder: any Swift.Decoder) throws
|
|
293
|
-
}
|
|
294
|
-
public struct MobilePaymentDataApplePayResponse : Swift.Codable {
|
|
295
|
-
public func encode(to encoder: any Swift.Encoder) throws
|
|
296
|
-
public init(from decoder: any Swift.Decoder) throws
|
|
297
|
-
}
|
|
298
217
|
@_inheritsConvenienceInitializers @objc @_Concurrency.MainActor @preconcurrency public class ICardNumberView : UIKit.UIStackView {
|
|
299
|
-
@_Concurrency.MainActor @preconcurrency public func setup(vaultId: Swift.String, env: Swift.String, publicKey: Swift.String, additionalFields: [PayEngineSDK.PEField])
|
|
300
218
|
@_Concurrency.MainActor @preconcurrency public func createCard(merchantId: Swift.String?, completion: @escaping (Swift.Result<PayEngineSDK.PECard, any Swift.Error>) -> Swift.Void)
|
|
301
219
|
@_Concurrency.MainActor @preconcurrency public func createCard(merchantId: Swift.String?, additionalData: [Swift.String : Any], completion: @escaping (Swift.Result<PayEngineSDK.PECard, any Swift.Error>) -> Swift.Void)
|
|
302
220
|
@objc @_Concurrency.MainActor @preconcurrency public func createCard(merchantId: Swift.String?, additionalData: [Swift.String : Any], completion: @escaping (PayEngineSDK.PECard) -> Swift.Void, failure: @escaping (any Swift.Error) -> Swift.Void)
|
|
Binary file
|
|
Binary file
|
|
@@ -7,33 +7,9 @@
|
|
|
7
7
|
|
|
8
8
|
#import <Foundation/Foundation.h>
|
|
9
9
|
|
|
10
|
-
// Error Codes
|
|
11
|
-
typedef NS_ENUM(NSInteger, KDataCollectorErrorCode) {
|
|
12
|
-
|
|
13
|
-
KDataCollectorErrorCodeUnknown = 0,
|
|
14
|
-
|
|
15
|
-
// A system error occurred
|
|
16
|
-
KDataCollectorErrorCodeNSError,
|
|
17
|
-
|
|
18
|
-
// A required collector timed out
|
|
19
|
-
KDataCollectorErrorCodeTimeout,
|
|
20
|
-
|
|
21
|
-
// A bad parameter was passed into the data collector
|
|
22
|
-
KDataCollectorErrorCodeBadParameter,
|
|
23
|
-
|
|
24
|
-
// A network connection isn't available
|
|
25
|
-
KDataCollectorErrorCodeNoNetwork,
|
|
26
|
-
|
|
27
|
-
// An error occurred while validating a response from the server
|
|
28
|
-
KDataCollectorErrorCodeResponseValidation,
|
|
29
|
-
};
|
|
30
|
-
|
|
31
10
|
NS_ASSUME_NONNULL_BEGIN
|
|
32
11
|
|
|
33
|
-
extern NSString *const KDataCollectorErrorDomain;
|
|
34
12
|
|
|
35
|
-
// Version of the Kount Data Collector SDK
|
|
36
|
-
extern NSString *const KDataCollectorVersion;
|
|
37
13
|
|
|
38
14
|
// Configuration settings for location collection
|
|
39
15
|
typedef NS_ENUM(NSInteger, KLocationCollectorConfig) {
|
|
@@ -49,11 +25,12 @@ typedef NS_ENUM(NSInteger, KLocationCollectorConfig) {
|
|
|
49
25
|
KLocationCollectorConfigSkip,
|
|
50
26
|
};
|
|
51
27
|
|
|
28
|
+
|
|
52
29
|
// Configuration settings Kount collection environment
|
|
53
30
|
typedef NS_ENUM(NSInteger, KEnvironment) {
|
|
54
31
|
|
|
55
32
|
// Unknown Environment
|
|
56
|
-
KEnvironmentUnknown = 0,
|
|
33
|
+
KEnvironmentUnknown = 0,
|
|
57
34
|
|
|
58
35
|
// Test Environment
|
|
59
36
|
KEnvironmentTest,
|
|
@@ -62,6 +39,8 @@ typedef NS_ENUM(NSInteger, KEnvironment) {
|
|
|
62
39
|
KEnvironmentProduction,
|
|
63
40
|
};
|
|
64
41
|
|
|
42
|
+
|
|
43
|
+
|
|
65
44
|
// KDataCollector enables you to collect device information for the given session
|
|
66
45
|
//
|
|
67
46
|
// First, configure the collector during the initialization of your application
|
|
@@ -12,26 +12,6 @@
|
|
|
12
12
|
#import "KDataCollector.h"
|
|
13
13
|
|
|
14
14
|
NS_ASSUME_NONNULL_BEGIN
|
|
15
|
-
// DMD-352: Device Collection Status
|
|
16
|
-
typedef NS_ENUM(NSInteger, KDataCollectorStatus) {
|
|
17
|
-
|
|
18
|
-
// A device data collection not started
|
|
19
|
-
KDataCollectorStatusNotStarted = 0,
|
|
20
|
-
|
|
21
|
-
// A device data collection started
|
|
22
|
-
KDataCollectorStatusStarted,
|
|
23
|
-
|
|
24
|
-
// A device data collection completed successfully
|
|
25
|
-
KDataCollectorStatusCompleted,
|
|
26
|
-
|
|
27
|
-
// A device data collection failed with error
|
|
28
|
-
KDataCollectorStatusFailedWithError,
|
|
29
|
-
|
|
30
|
-
// A device data collection failed without error
|
|
31
|
-
KDataCollectorStatusFailedWithOutError,
|
|
32
|
-
|
|
33
|
-
};
|
|
34
|
-
|
|
35
15
|
|
|
36
16
|
@interface KountAnalyticsViewController : UIViewController <UITextFieldDelegate, UITextViewDelegate, UISearchBarDelegate> {
|
|
37
17
|
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
//
|
|
2
|
+
// KountPrivate.h
|
|
3
|
+
// PayEngineSDK
|
|
4
|
+
//
|
|
5
|
+
// Created by Saim Irfan on 17/02/2025.
|
|
6
|
+
//
|
|
7
|
+
|
|
8
|
+
#ifndef KountPrivate_h
|
|
9
|
+
#define KountPrivate_h
|
|
10
|
+
|
|
11
|
+
extern NSString *const KDataCollectorErrorDomain;
|
|
12
|
+
|
|
13
|
+
// Version of the Kount Data Collector SDK
|
|
14
|
+
extern NSString *const KDataCollectorVersion;
|
|
15
|
+
|
|
16
|
+
// Error Codes
|
|
17
|
+
typedef NS_ENUM(NSInteger, KDataCollectorErrorCode) {
|
|
18
|
+
|
|
19
|
+
KDataCollectorErrorCodeUnknown = 0,
|
|
20
|
+
|
|
21
|
+
// A system error occurred
|
|
22
|
+
KDataCollectorErrorCodeNSError,
|
|
23
|
+
|
|
24
|
+
// A required collector timed out
|
|
25
|
+
KDataCollectorErrorCodeTimeout,
|
|
26
|
+
|
|
27
|
+
// A bad parameter was passed into the data collector
|
|
28
|
+
KDataCollectorErrorCodeBadParameter,
|
|
29
|
+
|
|
30
|
+
// A network connection isn't available
|
|
31
|
+
KDataCollectorErrorCodeNoNetwork,
|
|
32
|
+
|
|
33
|
+
// An error occurred while validating a response from the server
|
|
34
|
+
KDataCollectorErrorCodeResponseValidation,
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
// DMD-352: Device Collection Status
|
|
39
|
+
typedef NS_ENUM(NSInteger, KDataCollectorStatus) {
|
|
40
|
+
|
|
41
|
+
// A device data collection not started
|
|
42
|
+
KDataCollectorStatusNotStarted = 0,
|
|
43
|
+
|
|
44
|
+
// A device data collection started
|
|
45
|
+
KDataCollectorStatusStarted,
|
|
46
|
+
|
|
47
|
+
// A device data collection completed successfully
|
|
48
|
+
KDataCollectorStatusCompleted,
|
|
49
|
+
|
|
50
|
+
// A device data collection failed with error
|
|
51
|
+
KDataCollectorStatusFailedWithError,
|
|
52
|
+
|
|
53
|
+
// A device data collection failed without error
|
|
54
|
+
KDataCollectorStatusFailedWithOutError,
|
|
55
|
+
|
|
56
|
+
};
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
#endif /* KountPrivate_h */
|