react-native-payengine 1.0.5 → 2.0.2

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.
Files changed (242) hide show
  1. package/README.md +193 -111
  2. package/android/.gradle/6.1.1/executionHistory/executionHistory.lock +0 -0
  3. package/android/.gradle/{5.6.4 → 6.1.1}/fileHashes/fileHashes.bin +0 -0
  4. package/android/.gradle/6.1.1/fileHashes/fileHashes.lock +0 -0
  5. package/android/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
  6. package/android/.gradle/buildOutputCleanup/cache.properties +2 -2
  7. package/android/.gradle/buildOutputCleanup/outputFiles.bin +0 -0
  8. package/android/.gradle/checksums/checksums.lock +0 -0
  9. package/android/.gradle/checksums/md5-checksums.bin +0 -0
  10. package/android/.gradle/checksums/sha1-checksums.bin +0 -0
  11. package/android/.gradle/config.properties +2 -0
  12. package/android/.idea/caches/deviceStreaming.xml +318 -0
  13. package/android/.idea/compiler.xml +1 -1
  14. package/android/.idea/gradle.xml +2 -2
  15. package/android/.idea/kotlinc.xml +6 -0
  16. package/android/.idea/migrations.xml +10 -0
  17. package/android/.idea/misc.xml +1 -1
  18. package/android/build.gradle +42 -6
  19. package/android/gradle/wrapper/gradle-wrapper.properties +1 -1
  20. package/android/paymentsdk-debug.aar +0 -0
  21. package/android/paymentsdk-release.aar +0 -0
  22. package/android/src/legacy/AndroidManifest.xml +4 -0
  23. package/android/src/main/java/com/reactnativepayengine/GooglePayModule.java +196 -0
  24. package/android/src/main/java/com/reactnativepayengine/PayengineModule.java +1 -5
  25. package/android/src/main/java/com/reactnativepayengine/PayenginePackage.java +8 -33
  26. package/android/src/main/java/com/reactnativepayengine/util/MetricsUtil.kt +44 -0
  27. package/android/src/main/java/com/reactnativepayengine/util/PaymentsUtil.java +113 -0
  28. package/android/src/main/java/com/reactnativepayengine/v2/RNPEFraudAnalyticsApplication.java +55 -0
  29. package/android/src/main/java/com/reactnativepayengine/v2/RNPayEngineNative.kt +71 -0
  30. package/android/src/main/java/com/reactnativepayengine/v2/securefields/RNPEEvents.kt +8 -0
  31. package/android/src/main/java/com/reactnativepayengine/v2/securefields/RNPEField.kt +17 -0
  32. package/android/src/main/java/com/reactnativepayengine/v2/securefields/bankaccount/RNBankAccountViewManager.kt +103 -0
  33. package/android/src/main/java/com/reactnativepayengine/v2/securefields/bankaccount/RNPEBankAccountView.kt +77 -0
  34. package/android/src/main/java/com/reactnativepayengine/v2/securefields/creditcard/RNPECreditCardView.kt +77 -0
  35. package/android/src/main/java/com/reactnativepayengine/v2/securefields/creditcard/RNPECreditCardViewManager.kt +103 -0
  36. package/ios/PayEngineSDK.xcframework/Info.plist +44 -0
  37. package/ios/PayEngineSDK.xcframework/ios-arm64/PayEngineSDK.framework/Frameworks/libKountDataCollector.a +0 -0
  38. package/ios/PayEngineSDK.xcframework/ios-arm64/PayEngineSDK.framework/Headers/CustomWindow.h +25 -0
  39. package/ios/PayEngineSDK.xcframework/ios-arm64/PayEngineSDK.framework/Headers/KDataCollector.h +106 -0
  40. package/ios/PayEngineSDK.xcframework/ios-arm64/PayEngineSDK.framework/Headers/KountAnalyticsViewController.h +82 -0
  41. package/ios/PayEngineSDK.xcframework/ios-arm64/PayEngineSDK.framework/Headers/PayEngineSDK-Swift.h +622 -0
  42. package/ios/PayEngineSDK.xcframework/ios-arm64/PayEngineSDK.framework/Headers/PayEngineSDK.h +20 -0
  43. package/ios/PayEngineSDK.xcframework/ios-arm64/PayEngineSDK.framework/Headers/UIControl+CustomControl.h +33 -0
  44. package/ios/PayEngineSDK.xcframework/ios-arm64/PayEngineSDK.framework/Headers/UIViewController+TouchControl.h +27 -0
  45. package/ios/PayEngineSDK.xcframework/ios-arm64/PayEngineSDK.framework/Info.plist +0 -0
  46. package/ios/PayEngineSDK.xcframework/ios-arm64/PayEngineSDK.framework/Modules/PayEngineSDK.swiftmodule/arm64-apple-ios.abi.json +15143 -0
  47. package/ios/PayEngineSDK.xcframework/ios-arm64/PayEngineSDK.framework/Modules/PayEngineSDK.swiftmodule/arm64-apple-ios.private.swiftinterface +326 -0
  48. package/ios/PayEngineSDK.xcframework/ios-arm64/PayEngineSDK.framework/Modules/PayEngineSDK.swiftmodule/arm64-apple-ios.private.swiftinterface-e +326 -0
  49. package/ios/PayEngineSDK.xcframework/ios-arm64/PayEngineSDK.framework/Modules/PayEngineSDK.swiftmodule/arm64-apple-ios.swiftdoc +0 -0
  50. package/ios/PayEngineSDK.xcframework/ios-arm64/PayEngineSDK.framework/Modules/PayEngineSDK.swiftmodule/arm64-apple-ios.swiftinterface +326 -0
  51. package/ios/PayEngineSDK.xcframework/ios-arm64/PayEngineSDK.framework/Modules/PayEngineSDK.swiftmodule/arm64-apple-ios.swiftinterface-e +326 -0
  52. package/ios/PayEngineSDK.xcframework/ios-arm64/PayEngineSDK.framework/Modules/module.modulemap +11 -0
  53. package/ios/PayEngineSDK.xcframework/ios-arm64/PayEngineSDK.framework/PayEngineSDK +0 -0
  54. package/ios/PayEngineSDK.xcframework/ios-arm64/PayEngineSDK.framework/VGSCollectSDK_VGSCollectSDK.bundle/Assets.car +0 -0
  55. package/ios/PayEngineSDK.xcframework/ios-arm64/PayEngineSDK.framework/VGSCollectSDK_VGSCollectSDK.bundle/Info.plist +0 -0
  56. package/ios/PayEngineSDK.xcframework/ios-arm64/PayEngineSDK.framework/browserInfo.html +136 -0
  57. package/ios/PayEngineSDK.xcframework/ios-arm64/PayEngineSDK.framework/perform3ds.html +467 -0
  58. package/ios/PayEngineSDK.xcframework/ios-arm64_x86_64-simulator/PayEngineSDK.framework/Frameworks/libKountDataCollector.a +0 -0
  59. package/ios/PayEngineSDK.xcframework/ios-arm64_x86_64-simulator/PayEngineSDK.framework/Headers/CustomWindow.h +25 -0
  60. package/ios/PayEngineSDK.xcframework/ios-arm64_x86_64-simulator/PayEngineSDK.framework/Headers/KDataCollector.h +106 -0
  61. package/ios/PayEngineSDK.xcframework/ios-arm64_x86_64-simulator/PayEngineSDK.framework/Headers/KountAnalyticsViewController.h +82 -0
  62. package/ios/PayEngineSDK.xcframework/ios-arm64_x86_64-simulator/PayEngineSDK.framework/Headers/PayEngineSDK-Swift.h +1240 -0
  63. package/ios/PayEngineSDK.xcframework/ios-arm64_x86_64-simulator/PayEngineSDK.framework/Headers/PayEngineSDK.h +20 -0
  64. package/ios/PayEngineSDK.xcframework/ios-arm64_x86_64-simulator/PayEngineSDK.framework/Headers/UIControl+CustomControl.h +33 -0
  65. package/ios/PayEngineSDK.xcframework/ios-arm64_x86_64-simulator/PayEngineSDK.framework/Headers/UIViewController+TouchControl.h +27 -0
  66. package/ios/PayEngineSDK.xcframework/ios-arm64_x86_64-simulator/PayEngineSDK.framework/Info.plist +0 -0
  67. package/ios/PayEngineSDK.xcframework/ios-arm64_x86_64-simulator/PayEngineSDK.framework/Modules/PayEngineSDK.swiftmodule/arm64-apple-ios-simulator.abi.json +15143 -0
  68. package/ios/PayEngineSDK.xcframework/ios-arm64_x86_64-simulator/PayEngineSDK.framework/Modules/PayEngineSDK.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface +326 -0
  69. package/ios/PayEngineSDK.xcframework/ios-arm64_x86_64-simulator/PayEngineSDK.framework/Modules/PayEngineSDK.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface-e +326 -0
  70. package/ios/PayEngineSDK.xcframework/ios-arm64_x86_64-simulator/PayEngineSDK.framework/Modules/PayEngineSDK.swiftmodule/arm64-apple-ios-simulator.swiftdoc +0 -0
  71. package/ios/PayEngineSDK.xcframework/ios-arm64_x86_64-simulator/PayEngineSDK.framework/Modules/PayEngineSDK.swiftmodule/arm64-apple-ios-simulator.swiftinterface +326 -0
  72. package/ios/PayEngineSDK.xcframework/ios-arm64_x86_64-simulator/PayEngineSDK.framework/Modules/PayEngineSDK.swiftmodule/arm64-apple-ios-simulator.swiftinterface-e +326 -0
  73. package/ios/PayEngineSDK.xcframework/ios-arm64_x86_64-simulator/PayEngineSDK.framework/Modules/PayEngineSDK.swiftmodule/x86_64-apple-ios-simulator.abi.json +15143 -0
  74. package/ios/PayEngineSDK.xcframework/ios-arm64_x86_64-simulator/PayEngineSDK.framework/Modules/PayEngineSDK.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface +326 -0
  75. package/ios/PayEngineSDK.xcframework/ios-arm64_x86_64-simulator/PayEngineSDK.framework/Modules/PayEngineSDK.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface-e +326 -0
  76. package/ios/PayEngineSDK.xcframework/ios-arm64_x86_64-simulator/PayEngineSDK.framework/Modules/PayEngineSDK.swiftmodule/x86_64-apple-ios-simulator.swiftdoc +0 -0
  77. package/ios/PayEngineSDK.xcframework/ios-arm64_x86_64-simulator/PayEngineSDK.framework/Modules/PayEngineSDK.swiftmodule/x86_64-apple-ios-simulator.swiftinterface +326 -0
  78. package/ios/PayEngineSDK.xcframework/ios-arm64_x86_64-simulator/PayEngineSDK.framework/Modules/PayEngineSDK.swiftmodule/x86_64-apple-ios-simulator.swiftinterface-e +326 -0
  79. package/ios/PayEngineSDK.xcframework/ios-arm64_x86_64-simulator/PayEngineSDK.framework/Modules/module.modulemap +11 -0
  80. package/ios/PayEngineSDK.xcframework/ios-arm64_x86_64-simulator/PayEngineSDK.framework/PayEngineSDK +0 -0
  81. package/ios/PayEngineSDK.xcframework/ios-arm64_x86_64-simulator/PayEngineSDK.framework/VGSCollectSDK_VGSCollectSDK.bundle/Assets.car +0 -0
  82. package/ios/PayEngineSDK.xcframework/ios-arm64_x86_64-simulator/PayEngineSDK.framework/VGSCollectSDK_VGSCollectSDK.bundle/Info.plist +0 -0
  83. package/ios/PayEngineSDK.xcframework/ios-arm64_x86_64-simulator/PayEngineSDK.framework/browserInfo.html +136 -0
  84. package/ios/PayEngineSDK.xcframework/ios-arm64_x86_64-simulator/PayEngineSDK.framework/perform3ds.html +467 -0
  85. package/ios/Payengine.xcodeproj/project.pbxproj +30 -9
  86. package/ios/Payengine.xcodeproj/project.xcworkspace/xcuserdata/tringuyen.xcuserdatad/UserInterfaceState.xcuserstate +0 -0
  87. package/ios/Payengine.xcodeproj/xcuserdata/tringuyen.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist +4 -4
  88. package/ios/Payengine.xcworkspace/contents.xcworkspacedata +7 -0
  89. package/ios/Payengine.xcworkspace/xcuserdata/tringuyen.xcuserdatad/UserInterfaceState.xcuserstate +0 -0
  90. package/ios/Sources/Classes/ApplePay/RNPEApplePayButton.swift +111 -0
  91. package/ios/Sources/Classes/ApplePay/RNPEApplePayPaymentRequest.swift +43 -0
  92. package/ios/Sources/Classes/RNPEError.swift +12 -0
  93. package/ios/Sources/Classes/RNPEEventEmitter.swift +29 -0
  94. package/ios/Sources/Classes/RNPEUtils.swift +30 -0
  95. package/ios/Sources/Classes/RNPayEngineNative.swift +87 -0
  96. package/ios/Sources/Classes/SecureFields/RNPEBankAccountView.swift +130 -0
  97. package/ios/Sources/Classes/SecureFields/RNPECreditCardView.swift +129 -0
  98. package/ios/Sources/Classes/SecureFields/RNPEEvents.swift +15 -0
  99. package/ios/Sources/Classes/SecureFields/RNPEField.swift +26 -0
  100. package/ios/Sources/Payengine.m +73 -0
  101. package/ios/Sources/Payengine.swift +13 -0
  102. package/lib/commonjs/components/PayEngine.js +2 -123
  103. package/lib/commonjs/components/PayEngine.js.map +1 -1
  104. package/lib/commonjs/components/{SecureFields/VGS/CardHolderNameField.js → v2/ApplePay/PEApplePayButton.js} +38 -13
  105. package/lib/commonjs/components/v2/ApplePay/PEApplePayButton.js.map +1 -0
  106. package/lib/commonjs/components/v2/ApplePay/PEPaymentRequest.js +29 -0
  107. package/lib/commonjs/components/v2/ApplePay/PEPaymentRequest.js.map +1 -0
  108. package/lib/commonjs/components/v2/PayEngineNative.js +34 -0
  109. package/lib/commonjs/components/v2/PayEngineNative.js.map +1 -0
  110. package/lib/commonjs/components/{SecureFields/VGS/TextField.js → v2/PayEngineProvider.js} +28 -12
  111. package/lib/commonjs/components/v2/PayEngineProvider.js.map +1 -0
  112. package/lib/commonjs/components/v2/SecureFields/BankAccountView.js +89 -0
  113. package/lib/commonjs/components/v2/SecureFields/BankAccountView.js.map +1 -0
  114. package/lib/commonjs/components/v2/SecureFields/CreditCardView.js +90 -0
  115. package/lib/commonjs/components/v2/SecureFields/CreditCardView.js.map +1 -0
  116. package/lib/commonjs/components/v2/SecureFields/IPEField.js +6 -0
  117. package/lib/commonjs/components/v2/SecureFields/IPEField.js.map +1 -0
  118. package/lib/commonjs/components/v2/SecureFields/PEBankAccount.js +6 -0
  119. package/lib/commonjs/components/v2/SecureFields/PEBankAccount.js.map +1 -0
  120. package/lib/commonjs/components/v2/SecureFields/PECard.js +6 -0
  121. package/lib/commonjs/components/v2/SecureFields/PECard.js.map +1 -0
  122. package/lib/commonjs/components/v2/SecureFields/PEKeyboardType.js +18 -0
  123. package/lib/commonjs/components/v2/SecureFields/PEKeyboardType.js.map +1 -0
  124. package/lib/commonjs/index.js +73 -8
  125. package/lib/commonjs/index.js.map +1 -1
  126. package/lib/commonjs/interfaces/index.js +2 -0
  127. package/lib/commonjs/interfaces/index.js.map +1 -0
  128. package/lib/commonjs/utils/index.js +29 -45
  129. package/lib/commonjs/utils/index.js.map +1 -1
  130. package/lib/module/components/PayEngine.js +3 -118
  131. package/lib/module/components/PayEngine.js.map +1 -1
  132. package/lib/module/components/v2/ApplePay/PEApplePayButton.js +37 -0
  133. package/lib/module/components/v2/ApplePay/PEApplePayButton.js.map +1 -0
  134. package/lib/module/components/v2/ApplePay/PEPaymentRequest.js +20 -0
  135. package/lib/module/components/v2/ApplePay/PEPaymentRequest.js.map +1 -0
  136. package/lib/module/components/v2/PayEngineNative.js +23 -0
  137. package/lib/module/components/v2/PayEngineNative.js.map +1 -0
  138. package/lib/module/components/v2/PayEngineProvider.js +30 -0
  139. package/lib/module/components/v2/PayEngineProvider.js.map +1 -0
  140. package/lib/module/components/v2/SecureFields/BankAccountView.js +75 -0
  141. package/lib/module/components/v2/SecureFields/BankAccountView.js.map +1 -0
  142. package/lib/module/components/v2/SecureFields/CreditCardView.js +76 -0
  143. package/lib/module/components/v2/SecureFields/CreditCardView.js.map +1 -0
  144. package/lib/module/components/v2/SecureFields/IPEField.js +2 -0
  145. package/lib/module/components/v2/SecureFields/IPEField.js.map +1 -0
  146. package/lib/module/components/v2/SecureFields/PEBankAccount.js +2 -0
  147. package/lib/module/components/v2/SecureFields/PEBankAccount.js.map +1 -0
  148. package/lib/module/components/v2/SecureFields/PECard.js +2 -0
  149. package/lib/module/components/v2/SecureFields/PECard.js.map +1 -0
  150. package/lib/module/components/v2/SecureFields/PEKeyboardType.js +11 -0
  151. package/lib/module/components/v2/SecureFields/PEKeyboardType.js.map +1 -0
  152. package/lib/module/index.js +15 -6
  153. package/lib/module/index.js.map +1 -1
  154. package/lib/module/interfaces/index.js +2 -0
  155. package/lib/module/interfaces/index.js.map +1 -0
  156. package/lib/module/utils/index.js +20 -45
  157. package/lib/module/utils/index.js.map +1 -1
  158. package/lib/typescript/components/PayEngine.d.ts +1 -14
  159. package/lib/typescript/components/v2/ApplePay/PEApplePayButton.d.ts +12 -0
  160. package/lib/typescript/components/v2/ApplePay/PEPaymentRequest.d.ts +12 -0
  161. package/lib/typescript/components/v2/PayEngineNative.d.ts +5 -0
  162. package/lib/typescript/components/v2/PayEngineProvider.d.ts +8 -0
  163. package/lib/typescript/components/v2/SecureFields/BankAccountView.d.ts +14 -0
  164. package/lib/typescript/components/v2/SecureFields/CreditCardView.d.ts +14 -0
  165. package/lib/typescript/components/v2/SecureFields/IPEField.d.ts +10 -0
  166. package/lib/typescript/components/v2/SecureFields/PEBankAccount.d.ts +11 -0
  167. package/lib/typescript/components/v2/SecureFields/PECard.d.ts +13 -0
  168. package/lib/typescript/components/v2/SecureFields/PEKeyboardType.d.ts +7 -0
  169. package/lib/typescript/index.d.ts +13 -3
  170. package/lib/typescript/interfaces/index.d.ts +6 -0
  171. package/lib/typescript/utils/index.d.ts +7 -41
  172. package/package.json +17 -11
  173. package/react-native-payengine.podspec +3 -3
  174. package/src/components/LoadingIndicator.tsx +28 -0
  175. package/src/components/PayEngine.tsx +8 -0
  176. package/src/components/v2/ApplePay/PEApplePayButton.tsx +70 -0
  177. package/src/components/v2/ApplePay/PEPaymentRequest.ts +18 -0
  178. package/src/components/v2/PayEngineNative.tsx +20 -0
  179. package/src/components/v2/PayEngineProvider.tsx +30 -0
  180. package/src/components/v2/SecureFields/BankAccountView.tsx +95 -0
  181. package/src/components/v2/SecureFields/CreditCardView.tsx +96 -0
  182. package/src/components/v2/SecureFields/IPEField.ts +12 -0
  183. package/src/components/v2/SecureFields/PEBankAccount.ts +12 -0
  184. package/src/components/v2/SecureFields/PECard.ts +14 -0
  185. package/src/components/v2/SecureFields/PEKeyboardType.ts +8 -0
  186. package/src/index.tsx +62 -0
  187. package/src/interfaces/index.ts +6 -0
  188. package/src/utils/index.ts +79 -0
  189. package/android/.gradle/5.6.4/fileHashes/fileHashes.lock +0 -0
  190. package/android/src/main/java/com/reactnativepayengine/collect/VGSCollectModule.java +0 -148
  191. package/android/src/main/java/com/reactnativepayengine/collect/VGSCollectOnCreateViewInstanceListener.java +0 -6
  192. package/android/src/main/java/com/reactnativepayengine/collect/fields/VGSCVCField.java +0 -67
  193. package/android/src/main/java/com/reactnativepayengine/collect/fields/VGSCardHolderNameField.java +0 -53
  194. package/android/src/main/java/com/reactnativepayengine/collect/fields/VGSCardNumberField.java +0 -57
  195. package/android/src/main/java/com/reactnativepayengine/collect/fields/VGSExpDateField.java +0 -54
  196. package/android/src/main/java/com/reactnativepayengine/collect/fields/VGSTextField.java +0 -57
  197. package/android/src/main/java/com/reactnativepayengine/collect/fields/VGSZipCodeField.java +0 -62
  198. package/android/src/main/java/com/reactnativepayengine/util/ResourceUtil.java +0 -14
  199. package/ios/Payengine.m +0 -55
  200. package/ios/Payengine.swift +0 -637
  201. package/lib/commonjs/components/SecureFields/VGS/CVCField.js +0 -26
  202. package/lib/commonjs/components/SecureFields/VGS/CVCField.js.map +0 -1
  203. package/lib/commonjs/components/SecureFields/VGS/CardHolderNameField.js.map +0 -1
  204. package/lib/commonjs/components/SecureFields/VGS/CardNumberField.js +0 -26
  205. package/lib/commonjs/components/SecureFields/VGS/CardNumberField.js.map +0 -1
  206. package/lib/commonjs/components/SecureFields/VGS/CollectManager.js +0 -65
  207. package/lib/commonjs/components/SecureFields/VGS/CollectManager.js.map +0 -1
  208. package/lib/commonjs/components/SecureFields/VGS/ExpDateField.js +0 -26
  209. package/lib/commonjs/components/SecureFields/VGS/ExpDateField.js.map +0 -1
  210. package/lib/commonjs/components/SecureFields/VGS/TextField.js.map +0 -1
  211. package/lib/commonjs/components/SecureFields/VGS/ZipCodeField.js +0 -26
  212. package/lib/commonjs/components/SecureFields/VGS/ZipCodeField.js.map +0 -1
  213. package/lib/commonjs/components/SecureFields/index.js +0 -34
  214. package/lib/commonjs/components/SecureFields/index.js.map +0 -1
  215. package/lib/module/components/SecureFields/VGS/CVCField.js +0 -14
  216. package/lib/module/components/SecureFields/VGS/CVCField.js.map +0 -1
  217. package/lib/module/components/SecureFields/VGS/CardHolderNameField.js +0 -14
  218. package/lib/module/components/SecureFields/VGS/CardHolderNameField.js.map +0 -1
  219. package/lib/module/components/SecureFields/VGS/CardNumberField.js +0 -14
  220. package/lib/module/components/SecureFields/VGS/CardNumberField.js.map +0 -1
  221. package/lib/module/components/SecureFields/VGS/CollectManager.js +0 -50
  222. package/lib/module/components/SecureFields/VGS/CollectManager.js.map +0 -1
  223. package/lib/module/components/SecureFields/VGS/ExpDateField.js +0 -14
  224. package/lib/module/components/SecureFields/VGS/ExpDateField.js.map +0 -1
  225. package/lib/module/components/SecureFields/VGS/TextField.js +0 -17
  226. package/lib/module/components/SecureFields/VGS/TextField.js.map +0 -1
  227. package/lib/module/components/SecureFields/VGS/ZipCodeField.js +0 -14
  228. package/lib/module/components/SecureFields/VGS/ZipCodeField.js.map +0 -1
  229. package/lib/module/components/SecureFields/index.js +0 -17
  230. package/lib/module/components/SecureFields/index.js.map +0 -1
  231. package/lib/typescript/components/SecureFields/VGS/CVCField.d.ts +0 -10
  232. package/lib/typescript/components/SecureFields/VGS/CardHolderNameField.d.ts +0 -10
  233. package/lib/typescript/components/SecureFields/VGS/CardNumberField.d.ts +0 -10
  234. package/lib/typescript/components/SecureFields/VGS/CollectManager.d.ts +0 -12
  235. package/lib/typescript/components/SecureFields/VGS/ExpDateField.d.ts +0 -10
  236. package/lib/typescript/components/SecureFields/VGS/TextField.d.ts +0 -14
  237. package/lib/typescript/components/SecureFields/VGS/ZipCodeField.d.ts +0 -10
  238. package/lib/typescript/components/SecureFields/index.d.ts +0 -16
  239. /package/android/.gradle/{5.6.4 → 6.1.1}/fileChanges/last-build.bin +0 -0
  240. /package/android/.gradle/{5.6.4 → 6.1.1}/gc.properties +0 -0
  241. /package/android/{vgscollect-1.7.2-debug.aar → securefields-1.7.2-debug.aar} +0 -0
  242. /package/ios/{Payengine-Bridging-Header.h → Sources/Payengine-Bridging-Header.h} +0 -0
@@ -0,0 +1,622 @@
1
+ #if 0
2
+ #elif defined(__arm64__) && __arm64__
3
+ // Generated by Apple Swift version 5.9 (swiftlang-5.9.0.128.108 clang-1500.0.40.1)
4
+ #ifndef PAYENGINESDK_SWIFT_H
5
+ #define PAYENGINESDK_SWIFT_H
6
+ #pragma clang diagnostic push
7
+ #pragma clang diagnostic ignored "-Wgcc-compat"
8
+
9
+ #if !defined(__has_include)
10
+ # define __has_include(x) 0
11
+ #endif
12
+ #if !defined(__has_attribute)
13
+ # define __has_attribute(x) 0
14
+ #endif
15
+ #if !defined(__has_feature)
16
+ # define __has_feature(x) 0
17
+ #endif
18
+ #if !defined(__has_warning)
19
+ # define __has_warning(x) 0
20
+ #endif
21
+
22
+ #if __has_include(<swift/objc-prologue.h>)
23
+ # include <swift/objc-prologue.h>
24
+ #endif
25
+
26
+ #pragma clang diagnostic ignored "-Wauto-import"
27
+ #if defined(__OBJC__)
28
+ #include <Foundation/Foundation.h>
29
+ #endif
30
+ #if defined(__cplusplus)
31
+ #include <cstdint>
32
+ #include <cstddef>
33
+ #include <cstdbool>
34
+ #include <cstring>
35
+ #include <stdlib.h>
36
+ #include <new>
37
+ #include <type_traits>
38
+ #else
39
+ #include <stdint.h>
40
+ #include <stddef.h>
41
+ #include <stdbool.h>
42
+ #include <string.h>
43
+ #endif
44
+ #if defined(__cplusplus)
45
+ #if defined(__arm64e__) && __has_include(<ptrauth.h>)
46
+ # include <ptrauth.h>
47
+ #else
48
+ #pragma clang diagnostic push
49
+ #pragma clang diagnostic ignored "-Wreserved-macro-identifier"
50
+ # ifndef __ptrauth_swift_value_witness_function_pointer
51
+ # define __ptrauth_swift_value_witness_function_pointer(x)
52
+ # endif
53
+ # ifndef __ptrauth_swift_class_method_pointer
54
+ # define __ptrauth_swift_class_method_pointer(x)
55
+ # endif
56
+ #pragma clang diagnostic pop
57
+ #endif
58
+ #endif
59
+
60
+ #if !defined(SWIFT_TYPEDEFS)
61
+ # define SWIFT_TYPEDEFS 1
62
+ # if __has_include(<uchar.h>)
63
+ # include <uchar.h>
64
+ # elif !defined(__cplusplus)
65
+ typedef uint_least16_t char16_t;
66
+ typedef uint_least32_t char32_t;
67
+ # endif
68
+ typedef float swift_float2 __attribute__((__ext_vector_type__(2)));
69
+ typedef float swift_float3 __attribute__((__ext_vector_type__(3)));
70
+ typedef float swift_float4 __attribute__((__ext_vector_type__(4)));
71
+ typedef double swift_double2 __attribute__((__ext_vector_type__(2)));
72
+ typedef double swift_double3 __attribute__((__ext_vector_type__(3)));
73
+ typedef double swift_double4 __attribute__((__ext_vector_type__(4)));
74
+ typedef int swift_int2 __attribute__((__ext_vector_type__(2)));
75
+ typedef int swift_int3 __attribute__((__ext_vector_type__(3)));
76
+ typedef int swift_int4 __attribute__((__ext_vector_type__(4)));
77
+ typedef unsigned int swift_uint2 __attribute__((__ext_vector_type__(2)));
78
+ typedef unsigned int swift_uint3 __attribute__((__ext_vector_type__(3)));
79
+ typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4)));
80
+ #endif
81
+
82
+ #if !defined(SWIFT_PASTE)
83
+ # define SWIFT_PASTE_HELPER(x, y) x##y
84
+ # define SWIFT_PASTE(x, y) SWIFT_PASTE_HELPER(x, y)
85
+ #endif
86
+ #if !defined(SWIFT_METATYPE)
87
+ # define SWIFT_METATYPE(X) Class
88
+ #endif
89
+ #if !defined(SWIFT_CLASS_PROPERTY)
90
+ # if __has_feature(objc_class_property)
91
+ # define SWIFT_CLASS_PROPERTY(...) __VA_ARGS__
92
+ # else
93
+ # define SWIFT_CLASS_PROPERTY(...)
94
+ # endif
95
+ #endif
96
+ #if !defined(SWIFT_RUNTIME_NAME)
97
+ # if __has_attribute(objc_runtime_name)
98
+ # define SWIFT_RUNTIME_NAME(X) __attribute__((objc_runtime_name(X)))
99
+ # else
100
+ # define SWIFT_RUNTIME_NAME(X)
101
+ # endif
102
+ #endif
103
+ #if !defined(SWIFT_COMPILE_NAME)
104
+ # if __has_attribute(swift_name)
105
+ # define SWIFT_COMPILE_NAME(X) __attribute__((swift_name(X)))
106
+ # else
107
+ # define SWIFT_COMPILE_NAME(X)
108
+ # endif
109
+ #endif
110
+ #if !defined(SWIFT_METHOD_FAMILY)
111
+ # if __has_attribute(objc_method_family)
112
+ # define SWIFT_METHOD_FAMILY(X) __attribute__((objc_method_family(X)))
113
+ # else
114
+ # define SWIFT_METHOD_FAMILY(X)
115
+ # endif
116
+ #endif
117
+ #if !defined(SWIFT_NOESCAPE)
118
+ # if __has_attribute(noescape)
119
+ # define SWIFT_NOESCAPE __attribute__((noescape))
120
+ # else
121
+ # define SWIFT_NOESCAPE
122
+ # endif
123
+ #endif
124
+ #if !defined(SWIFT_RELEASES_ARGUMENT)
125
+ # if __has_attribute(ns_consumed)
126
+ # define SWIFT_RELEASES_ARGUMENT __attribute__((ns_consumed))
127
+ # else
128
+ # define SWIFT_RELEASES_ARGUMENT
129
+ # endif
130
+ #endif
131
+ #if !defined(SWIFT_WARN_UNUSED_RESULT)
132
+ # if __has_attribute(warn_unused_result)
133
+ # define SWIFT_WARN_UNUSED_RESULT __attribute__((warn_unused_result))
134
+ # else
135
+ # define SWIFT_WARN_UNUSED_RESULT
136
+ # endif
137
+ #endif
138
+ #if !defined(SWIFT_NORETURN)
139
+ # if __has_attribute(noreturn)
140
+ # define SWIFT_NORETURN __attribute__((noreturn))
141
+ # else
142
+ # define SWIFT_NORETURN
143
+ # endif
144
+ #endif
145
+ #if !defined(SWIFT_CLASS_EXTRA)
146
+ # define SWIFT_CLASS_EXTRA
147
+ #endif
148
+ #if !defined(SWIFT_PROTOCOL_EXTRA)
149
+ # define SWIFT_PROTOCOL_EXTRA
150
+ #endif
151
+ #if !defined(SWIFT_ENUM_EXTRA)
152
+ # define SWIFT_ENUM_EXTRA
153
+ #endif
154
+ #if !defined(SWIFT_CLASS)
155
+ # if __has_attribute(objc_subclassing_restricted)
156
+ # define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) __attribute__((objc_subclassing_restricted)) SWIFT_CLASS_EXTRA
157
+ # define SWIFT_CLASS_NAMED(SWIFT_NAME) __attribute__((objc_subclassing_restricted)) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA
158
+ # else
159
+ # define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA
160
+ # define SWIFT_CLASS_NAMED(SWIFT_NAME) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA
161
+ # endif
162
+ #endif
163
+ #if !defined(SWIFT_RESILIENT_CLASS)
164
+ # if __has_attribute(objc_class_stub)
165
+ # define SWIFT_RESILIENT_CLASS(SWIFT_NAME) SWIFT_CLASS(SWIFT_NAME) __attribute__((objc_class_stub))
166
+ # define SWIFT_RESILIENT_CLASS_NAMED(SWIFT_NAME) __attribute__((objc_class_stub)) SWIFT_CLASS_NAMED(SWIFT_NAME)
167
+ # else
168
+ # define SWIFT_RESILIENT_CLASS(SWIFT_NAME) SWIFT_CLASS(SWIFT_NAME)
169
+ # define SWIFT_RESILIENT_CLASS_NAMED(SWIFT_NAME) SWIFT_CLASS_NAMED(SWIFT_NAME)
170
+ # endif
171
+ #endif
172
+ #if !defined(SWIFT_PROTOCOL)
173
+ # define SWIFT_PROTOCOL(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA
174
+ # define SWIFT_PROTOCOL_NAMED(SWIFT_NAME) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA
175
+ #endif
176
+ #if !defined(SWIFT_EXTENSION)
177
+ # define SWIFT_EXTENSION(M) SWIFT_PASTE(M##_Swift_, __LINE__)
178
+ #endif
179
+ #if !defined(OBJC_DESIGNATED_INITIALIZER)
180
+ # if __has_attribute(objc_designated_initializer)
181
+ # define OBJC_DESIGNATED_INITIALIZER __attribute__((objc_designated_initializer))
182
+ # else
183
+ # define OBJC_DESIGNATED_INITIALIZER
184
+ # endif
185
+ #endif
186
+ #if !defined(SWIFT_ENUM_ATTR)
187
+ # if __has_attribute(enum_extensibility)
188
+ # define SWIFT_ENUM_ATTR(_extensibility) __attribute__((enum_extensibility(_extensibility)))
189
+ # else
190
+ # define SWIFT_ENUM_ATTR(_extensibility)
191
+ # endif
192
+ #endif
193
+ #if !defined(SWIFT_ENUM)
194
+ # define SWIFT_ENUM(_type, _name, _extensibility) enum _name : _type _name; enum SWIFT_ENUM_ATTR(_extensibility) SWIFT_ENUM_EXTRA _name : _type
195
+ # if __has_feature(generalized_swift_name)
196
+ # define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) enum _name : _type _name SWIFT_COMPILE_NAME(SWIFT_NAME); enum SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_ENUM_ATTR(_extensibility) SWIFT_ENUM_EXTRA _name : _type
197
+ # else
198
+ # define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) SWIFT_ENUM(_type, _name, _extensibility)
199
+ # endif
200
+ #endif
201
+ #if !defined(SWIFT_UNAVAILABLE)
202
+ # define SWIFT_UNAVAILABLE __attribute__((unavailable))
203
+ #endif
204
+ #if !defined(SWIFT_UNAVAILABLE_MSG)
205
+ # define SWIFT_UNAVAILABLE_MSG(msg) __attribute__((unavailable(msg)))
206
+ #endif
207
+ #if !defined(SWIFT_AVAILABILITY)
208
+ # define SWIFT_AVAILABILITY(plat, ...) __attribute__((availability(plat, __VA_ARGS__)))
209
+ #endif
210
+ #if !defined(SWIFT_WEAK_IMPORT)
211
+ # define SWIFT_WEAK_IMPORT __attribute__((weak_import))
212
+ #endif
213
+ #if !defined(SWIFT_DEPRECATED)
214
+ # define SWIFT_DEPRECATED __attribute__((deprecated))
215
+ #endif
216
+ #if !defined(SWIFT_DEPRECATED_MSG)
217
+ # define SWIFT_DEPRECATED_MSG(...) __attribute__((deprecated(__VA_ARGS__)))
218
+ #endif
219
+ #if !defined(SWIFT_DEPRECATED_OBJC)
220
+ # if __has_feature(attribute_diagnose_if_objc)
221
+ # define SWIFT_DEPRECATED_OBJC(Msg) __attribute__((diagnose_if(1, Msg, "warning")))
222
+ # else
223
+ # define SWIFT_DEPRECATED_OBJC(Msg) SWIFT_DEPRECATED_MSG(Msg)
224
+ # endif
225
+ #endif
226
+ #if defined(__OBJC__)
227
+ #if !defined(IBSegueAction)
228
+ # define IBSegueAction
229
+ #endif
230
+ #endif
231
+ #if !defined(SWIFT_EXTERN)
232
+ # if defined(__cplusplus)
233
+ # define SWIFT_EXTERN extern "C"
234
+ # else
235
+ # define SWIFT_EXTERN extern
236
+ # endif
237
+ #endif
238
+ #if !defined(SWIFT_CALL)
239
+ # define SWIFT_CALL __attribute__((swiftcall))
240
+ #endif
241
+ #if !defined(SWIFT_INDIRECT_RESULT)
242
+ # define SWIFT_INDIRECT_RESULT __attribute__((swift_indirect_result))
243
+ #endif
244
+ #if !defined(SWIFT_CONTEXT)
245
+ # define SWIFT_CONTEXT __attribute__((swift_context))
246
+ #endif
247
+ #if !defined(SWIFT_ERROR_RESULT)
248
+ # define SWIFT_ERROR_RESULT __attribute__((swift_error_result))
249
+ #endif
250
+ #if defined(__cplusplus)
251
+ # define SWIFT_NOEXCEPT noexcept
252
+ #else
253
+ # define SWIFT_NOEXCEPT
254
+ #endif
255
+ #if !defined(SWIFT_C_INLINE_THUNK)
256
+ # if __has_attribute(always_inline)
257
+ # if __has_attribute(nodebug)
258
+ # define SWIFT_C_INLINE_THUNK inline __attribute__((always_inline)) __attribute__((nodebug))
259
+ # else
260
+ # define SWIFT_C_INLINE_THUNK inline __attribute__((always_inline))
261
+ # endif
262
+ # else
263
+ # define SWIFT_C_INLINE_THUNK inline
264
+ # endif
265
+ #endif
266
+ #if defined(_WIN32)
267
+ #if !defined(SWIFT_IMPORT_STDLIB_SYMBOL)
268
+ # define SWIFT_IMPORT_STDLIB_SYMBOL __declspec(dllimport)
269
+ #endif
270
+ #else
271
+ #if !defined(SWIFT_IMPORT_STDLIB_SYMBOL)
272
+ # define SWIFT_IMPORT_STDLIB_SYMBOL
273
+ #endif
274
+ #endif
275
+ #if defined(__OBJC__)
276
+ #if __has_feature(objc_modules)
277
+ #if __has_warning("-Watimport-in-framework-header")
278
+ #pragma clang diagnostic ignored "-Watimport-in-framework-header"
279
+ #endif
280
+ @import CoreFoundation;
281
+ @import Foundation;
282
+ @import ObjectiveC;
283
+ @import PassKit;
284
+ @import UIKit;
285
+ @import WebKit;
286
+ #endif
287
+
288
+ #import <PayEngineSDK/PayEngineSDK.h>
289
+
290
+ #endif
291
+ #pragma clang diagnostic ignored "-Wproperty-attribute-mismatch"
292
+ #pragma clang diagnostic ignored "-Wduplicate-method-arg"
293
+ #if __has_warning("-Wpragma-clang-attribute")
294
+ # pragma clang diagnostic ignored "-Wpragma-clang-attribute"
295
+ #endif
296
+ #pragma clang diagnostic ignored "-Wunknown-pragmas"
297
+ #pragma clang diagnostic ignored "-Wnullability"
298
+ #pragma clang diagnostic ignored "-Wdollar-in-identifier-extension"
299
+
300
+ #if __has_attribute(external_source_symbol)
301
+ # pragma push_macro("any")
302
+ # undef any
303
+ # pragma clang attribute push(__attribute__((external_source_symbol(language="Swift", defined_in="PayEngineSDK",generated_declaration))), apply_to=any(function,enum,objc_interface,objc_category,objc_protocol))
304
+ # pragma pop_macro("any")
305
+ #endif
306
+
307
+ #if defined(__OBJC__)
308
+ typedef SWIFT_ENUM(NSInteger, ApplePayPaymentNetwork, open) {
309
+ ApplePayPaymentNetworkAmex = 0,
310
+ ApplePayPaymentNetworkCartesBancaires = 1,
311
+ ApplePayPaymentNetworkDiscover = 2,
312
+ ApplePayPaymentNetworkEftpos = 3,
313
+ ApplePayPaymentNetworkElectron = 4,
314
+ ApplePayPaymentNetworkElo = 5,
315
+ ApplePayPaymentNetworkIdCredit = 6,
316
+ ApplePayPaymentNetworkInterac = 7,
317
+ ApplePayPaymentNetworkJCB = 8,
318
+ ApplePayPaymentNetworkMada = 9,
319
+ ApplePayPaymentNetworkMaestro = 10,
320
+ ApplePayPaymentNetworkMasterCard = 11,
321
+ ApplePayPaymentNetworkPrivateLabel = 12,
322
+ ApplePayPaymentNetworkQuicPay = 13,
323
+ ApplePayPaymentNetworkSuica = 14,
324
+ ApplePayPaymentNetworkVisa = 15,
325
+ ApplePayPaymentNetworkVPay = 16,
326
+ };
327
+
328
+ @class PKPaymentSummaryItem;
329
+ @class NSString;
330
+
331
+ SWIFT_CLASS("_TtC12PayEngineSDK22ApplePayPaymentRequest")
332
+ @interface ApplePayPaymentRequest : NSObject
333
+ /// Creates a Apple Pay request that can be used afterards to make an apple pay request
334
+ /// <ul>
335
+ /// <li>
336
+ /// </li>
337
+ /// </ul>
338
+ /// \param currencyCode The currency code the transaction has default .USD
339
+ ///
340
+ /// \param var paymentItems What are the items you want to show in the apple pay sheet default []
341
+ ///
342
+ /// \param paymentAmount The total amount you want to collect
343
+ ///
344
+ - (void)buildWithPaymentItems:(NSArray<PKPaymentSummaryItem *> * _Nonnull)paymentItems paymentAmount:(double)paymentAmount currencyCode:(NSString * _Nonnull)currencyCode;
345
+ - (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
346
+ @end
347
+
348
+ typedef SWIFT_ENUM(NSInteger, ApplePayStatus, open) {
349
+ /// This means the current device/user has Apple pay activated and a card belongs to the given payment networks
350
+ ApplePayStatusEligible = 0,
351
+ /// This means the current device/user has Apple pay activated but has no card belongs to the given payment networks
352
+ ApplePayStatusNeedSetup = 1,
353
+ /// This means the current device/user cannot use Apple pay from Apple
354
+ ApplePayStatusNotEligible = 2,
355
+ };
356
+
357
+
358
+ SWIFT_CLASS("_TtC12PayEngineSDK15BankAccountData")
359
+ @interface BankAccountData : NSObject
360
+ @property (nonatomic, copy) NSString * _Nonnull routingNumber;
361
+ @property (nonatomic, copy) NSString * _Nonnull last4;
362
+ @property (nonatomic, copy) NSString * _Nonnull firstName;
363
+ @property (nonatomic, copy) NSString * _Nonnull lastName;
364
+ - (nullable instancetype)initWithRoutingNumber:(NSString * _Nonnull)routingNumber last4:(NSString * _Nonnull)last4 firstName:(NSString * _Nonnull)firstName lastName:(NSString * _Nonnull)lastName error:(NSError * _Nullable * _Nullable)error OBJC_DESIGNATED_INITIALIZER;
365
+ - (nonnull instancetype)init SWIFT_UNAVAILABLE;
366
+ + (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
367
+ @end
368
+
369
+ @class PEBankAccount;
370
+
371
+ SWIFT_CLASS("_TtC12PayEngineSDK19BankAccountResponse")
372
+ @interface BankAccountResponse : NSObject
373
+ - (nullable instancetype)initWithMessage:(NSString * _Nonnull)message data:(PEBankAccount * _Nonnull)data error:(NSError * _Nullable * _Nullable)error OBJC_DESIGNATED_INITIALIZER;
374
+ - (nonnull instancetype)init SWIFT_UNAVAILABLE;
375
+ + (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
376
+ @end
377
+
378
+
379
+ SWIFT_CLASS("_TtC12PayEngineSDK8CardData")
380
+ @interface CardData : NSObject
381
+ @property (nonatomic, copy) NSString * _Nonnull id;
382
+ @property (nonatomic, copy) NSString * _Nonnull brand;
383
+ @property (nonatomic, copy) NSString * _Nonnull last4;
384
+ @property (nonatomic) NSInteger expMonth;
385
+ @property (nonatomic) NSInteger expYear;
386
+ @property (nonatomic, copy) NSString * _Nonnull name;
387
+ @property (nonatomic, copy) NSString * _Nullable addressZip;
388
+ - (nullable instancetype)initWithId:(NSString * _Nonnull)id brand:(NSString * _Nonnull)brand last4:(NSString * _Nonnull)last4 expMonth:(NSInteger)expMonth expYear:(NSInteger)expYear name:(NSString * _Nonnull)name addressZip:(NSString * _Nullable)addressZip error:(NSError * _Nullable * _Nullable)error OBJC_DESIGNATED_INITIALIZER;
389
+ - (nonnull instancetype)init SWIFT_UNAVAILABLE;
390
+ + (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
391
+ @end
392
+
393
+ @class PECard;
394
+
395
+ SWIFT_CLASS("_TtC12PayEngineSDK12CardResponse")
396
+ @interface CardResponse : NSObject
397
+ - (nullable instancetype)initWithMessage:(NSString * _Nonnull)message data:(PECard * _Nonnull)data error:(NSError * _Nullable * _Nullable)error OBJC_DESIGNATED_INITIALIZER;
398
+ - (nonnull instancetype)init SWIFT_UNAVAILABLE;
399
+ + (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
400
+ @end
401
+
402
+
403
+ @class NSBundle;
404
+ @class NSCoder;
405
+
406
+ SWIFT_CLASS("_TtC12PayEngineSDK28FraudAnalyticsViewController")
407
+ @interface FraudAnalyticsViewController : KountAnalyticsViewController
408
+ - (nonnull instancetype)initWithNibName:(NSString * _Nullable)nibNameOrNil bundle:(NSBundle * _Nullable)nibBundleOrNil OBJC_DESIGNATED_INITIALIZER;
409
+ - (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)coder OBJC_DESIGNATED_INITIALIZER;
410
+ @end
411
+
412
+
413
+ SWIFT_CLASS("_TtC12PayEngineSDK16IBankAccountView")
414
+ @interface IBankAccountView : UIStackView
415
+ - (void)createBankAccountWithMerchantId:(NSString * _Nonnull)merchantId additionalData:(NSDictionary<NSString *, id> * _Nonnull)additionalData completion:(void (^ _Nonnull)(PEBankAccount * _Nonnull))completion failure:(void (^ _Nonnull)(NSError * _Nonnull))failure;
416
+ - (nonnull instancetype)initWithFrame:(CGRect)frame OBJC_DESIGNATED_INITIALIZER;
417
+ - (nonnull instancetype)initWithCoder:(NSCoder * _Nonnull)coder OBJC_DESIGNATED_INITIALIZER;
418
+ @end
419
+
420
+
421
+ SWIFT_CLASS("_TtC12PayEngineSDK15ICardNumberView")
422
+ @interface ICardNumberView : UIStackView
423
+ - (void)createCardWithMerchantId:(NSString * _Nonnull)merchantId additionalData:(NSDictionary<NSString *, id> * _Nonnull)additionalData completion:(void (^ _Nonnull)(PECard * _Nonnull))completion failure:(void (^ _Nonnull)(NSError * _Nonnull))failure;
424
+ - (nonnull instancetype)initWithFrame:(CGRect)frame OBJC_DESIGNATED_INITIALIZER;
425
+ - (nonnull instancetype)initWithCoder:(NSCoder * _Nonnull)coder OBJC_DESIGNATED_INITIALIZER;
426
+ @end
427
+
428
+ @protocol PEApplePayDelegate;
429
+ @class UIButton;
430
+
431
+ SWIFT_CLASS("_TtC12PayEngineSDK10PEApplePay")
432
+ @interface PEApplePay : NSObject
433
+ @property (nonatomic, strong) id <PEApplePayDelegate> _Nullable delegate;
434
+ - (UIButton * _Nullable)setupApplePayButtonFor:(ApplePayPaymentRequest * _Nonnull)paymentRequest type:(PKPaymentButtonType)type style:(PKPaymentButtonStyle)style SWIFT_WARN_UNUSED_RESULT;
435
+ - (BOOL)startApplePayPaymentAndReturnError:(NSError * _Nullable * _Nullable)error;
436
+ - (void)startApplePaySetup;
437
+ - (nonnull instancetype)init SWIFT_UNAVAILABLE;
438
+ + (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
439
+ @end
440
+
441
+ @class PKPaymentAuthorizationViewController;
442
+ @class PKPayment;
443
+
444
+ @interface PEApplePay (SWIFT_EXTENSION(PayEngineSDK)) <PKPaymentAuthorizationViewControllerDelegate>
445
+ - (void)paymentAuthorizationViewControllerDidFinish:(PKPaymentAuthorizationViewController * _Nonnull)controller;
446
+ - (void)paymentAuthorizationViewController:(PKPaymentAuthorizationViewController * _Nonnull)controller didAuthorizePayment:(PKPayment * _Nonnull)payment completion:(void (^ _Nonnull)(PKPaymentAuthorizationStatus))completion;
447
+ @end
448
+
449
+ enum PEApplePayResult : NSInteger;
450
+
451
+ SWIFT_PROTOCOL("_TtP12PayEngineSDK18PEApplePayDelegate_")
452
+ @protocol PEApplePayDelegate
453
+ - (void)paymentErrorWithError:(NSError * _Nonnull)error;
454
+ - (void)paymentSheetDidMDismiss;
455
+ - (void)paymentTokenDidReturnWithToken:(NSString * _Nonnull)token completion:(void (^ _Nonnull)(enum PEApplePayResult))completion;
456
+ - (void)paymentTokenNotAvailable;
457
+ @end
458
+
459
+ typedef SWIFT_ENUM(NSInteger, PEApplePayResult, open) {
460
+ PEApplePayResultSuccess = 0,
461
+ PEApplePayResultFailure = 1,
462
+ };
463
+
464
+
465
+ /// PayEngine Card object
466
+ SWIFT_CLASS("_TtC12PayEngineSDK13PEBankAccount")
467
+ @interface PEBankAccount : NSObject
468
+ @property (nonatomic, copy) NSString * _Nonnull token;
469
+ @property (nonatomic, strong) BankAccountData * _Nonnull bankAccountData;
470
+ - (nullable instancetype)initWithToken:(NSString * _Nonnull)token bankAccountData:(BankAccountData * _Nonnull)bankAccountData error:(NSError * _Nullable * _Nullable)error OBJC_DESIGNATED_INITIALIZER;
471
+ - (nonnull instancetype)init SWIFT_UNAVAILABLE;
472
+ + (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
473
+ @end
474
+
475
+
476
+ SWIFT_CLASS("_TtC12PayEngineSDK17PEBankAccountView")
477
+ @interface PEBankAccountView : IBankAccountView
478
+ - (nonnull instancetype)initWithFrame:(CGRect)frame SWIFT_UNAVAILABLE;
479
+ - (nonnull instancetype)initWithCoder:(NSCoder * _Nonnull)coder SWIFT_UNAVAILABLE;
480
+ - (void)didMoveToSuperview;
481
+ - (void)layoutSubviews;
482
+ @end
483
+
484
+
485
+ /// PayEngine Card object
486
+ SWIFT_CLASS("_TtC12PayEngineSDK6PECard")
487
+ @interface PECard : NSObject
488
+ @property (nonatomic, copy) NSString * _Nonnull token;
489
+ @property (nonatomic, strong) CardData * _Nonnull cardData;
490
+ - (nullable instancetype)initWithToken:(NSString * _Nonnull)token cardData:(CardData * _Nonnull)cardData error:(NSError * _Nullable * _Nullable)error OBJC_DESIGNATED_INITIALIZER;
491
+ - (nonnull instancetype)init SWIFT_UNAVAILABLE;
492
+ + (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
493
+ @end
494
+
495
+ @class PEConfig;
496
+ @class WKUserContentController;
497
+ @class WKScriptMessage;
498
+
499
+ /// PEComponent
500
+ SWIFT_CLASS("_TtC12PayEngineSDK11PEComponent")
501
+ @interface PEComponent : UIView <WKScriptMessageHandler>
502
+ - (nonnull instancetype)initWithFrame:(CGRect)frame SWIFT_UNAVAILABLE;
503
+ - (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)coder SWIFT_UNAVAILABLE;
504
+ - (void)didMoveToSuperview;
505
+ - (void)setupWithConfig:(PEConfig * _Nonnull)config componentName:(NSString * _Nonnull)componentName props:(NSDictionary<NSString *, NSString *> * _Nonnull)props;
506
+ - (void)pinToView:(UIView * _Nonnull)view;
507
+ - (void)registerEventWithName:(NSString * _Nonnull)name handler:(void (^ _Nonnull)(id _Nonnull))handler;
508
+ - (void)removeEventWithName:(NSString * _Nonnull)name;
509
+ - (void)userContentController:(WKUserContentController * _Nonnull)userContentController didReceiveScriptMessage:(WKScriptMessage * _Nonnull)message;
510
+ @end
511
+
512
+
513
+ /// PayEngine configuration
514
+ SWIFT_CLASS("_TtC12PayEngineSDK8PEConfig")
515
+ @interface PEConfig : NSObject
516
+ - (nonnull instancetype)initWithPublicKey:(NSString * _Nonnull)publicKey baseURL:(NSString * _Nullable)baseURL OBJC_DESIGNATED_INITIALIZER;
517
+ - (NSString * _Nonnull)getBaseURL SWIFT_WARN_UNUSED_RESULT;
518
+ - (BOOL)isProduction SWIFT_WARN_UNUSED_RESULT;
519
+ - (nonnull instancetype)init SWIFT_UNAVAILABLE;
520
+ + (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
521
+ @end
522
+
523
+
524
+ SWIFT_CLASS("_TtC12PayEngineSDK7PEField")
525
+ @interface PEField : NSObject
526
+ - (nonnull instancetype)init SWIFT_UNAVAILABLE;
527
+ + (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
528
+ @end
529
+
530
+
531
+ /// PEPaymentView
532
+ SWIFT_CLASS("_TtC12PayEngineSDK13PEPaymentView")
533
+ @interface PEPaymentView : ICardNumberView
534
+ - (nonnull instancetype)initWithFrame:(CGRect)frame SWIFT_UNAVAILABLE;
535
+ - (nonnull instancetype)initWithCoder:(NSCoder * _Nonnull)coder SWIFT_UNAVAILABLE;
536
+ - (void)didMoveToSuperview;
537
+ - (void)layoutSubviews;
538
+ - (void)setupWithVaultId:(NSString * _Nonnull)vaultId env:(NSString * _Nonnull)env publicKey:(NSString * _Nonnull)publicKey additionalFields:(NSArray<PEField *> * _Nonnull)additionalFields;
539
+ - (BOOL)validate SWIFT_WARN_UNUSED_RESULT;
540
+ - (void)showKeyboard;
541
+ @end
542
+
543
+ typedef SWIFT_ENUM(NSInteger, PEThemeMode, open) {
544
+ PEThemeModeSystem = 0,
545
+ PEThemeModeDark = 1,
546
+ PEThemeModeLight = 2,
547
+ };
548
+
549
+ @class ThreeDSResult;
550
+
551
+ /// PayEngine Main Class
552
+ SWIFT_CLASS("_TtC12PayEngineSDK9PayEngine")
553
+ @interface PayEngine : NSObject
554
+ /// Constructor
555
+ /// \param config PayEngine configuration
556
+ ///
557
+ - (nonnull instancetype)initWithConfig:(PEConfig * _Nonnull)config OBJC_DESIGNATED_INITIALIZER;
558
+ + (void)setThemeMode:(enum PEThemeMode)themMode;
559
+ - (PEComponent * _Nonnull)createComponentWithName:(NSString * _Nonnull)name props:(NSDictionary<NSString *, NSString *> * _Nonnull)props SWIFT_WARN_UNUSED_RESULT;
560
+ - (void)createSecureViewWithAdditionalFields:(NSArray<PEField *> * _Nullable)additionalFields completion:(void (^ _Nonnull)(ICardNumberView * _Nonnull))completion;
561
+ - (void)createBankAccountViewWithAdditionalFields:(NSArray<PEField *> * _Nullable)additionalFields completion:(void (^ _Nonnull)(IBankAccountView * _Nonnull))completion;
562
+ - (void)getBrowserInfoWithView:(UIView * _Nonnull)view handler:(void (^ _Nonnull)(NSString * _Nonnull))handler;
563
+ - (void)perform3DSFlowWithView:(UIView * _Nonnull)view threeDSData:(NSString * _Nonnull)threeDSData handler:(void (^ _Nonnull)(ThreeDSResult * _Nonnull))handler;
564
+ - (void)createFraudMonitorSessionWithMerchantId:(NSString * _Nonnull)merchantId completion:(void (^ _Nonnull)(NSString * _Nonnull))completion;
565
+ - (nonnull instancetype)init SWIFT_UNAVAILABLE;
566
+ + (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
567
+ @end
568
+
569
+
570
+ SWIFT_CLASS("_TtC12PayEngineSDK14ThreeDSMessage")
571
+ @interface ThreeDSMessage : NSObject
572
+ - (nullable instancetype)initWithType:(NSString * _Nonnull)type subtype:(NSString * _Nonnull)subtype data:(ThreeDSResult * _Nullable)data error:(NSError * _Nullable * _Nullable)error OBJC_DESIGNATED_INITIALIZER;
573
+ - (nonnull instancetype)init SWIFT_UNAVAILABLE;
574
+ + (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
575
+ @end
576
+
577
+ @class WKWebView;
578
+ @class WKNavigationAction;
579
+ @class WKNavigation;
580
+
581
+ SWIFT_CLASS("_TtC12PayEngineSDK12ThreeDSModal")
582
+ @interface ThreeDSModal : UIView <WKNavigationDelegate, WKScriptMessageHandler>
583
+ - (nonnull instancetype)initWithFrame:(CGRect)frame OBJC_DESIGNATED_INITIALIZER;
584
+ - (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)coder SWIFT_UNAVAILABLE;
585
+ - (void)setupWithConfig:(PEConfig * _Nonnull)config threeDSData:(NSString * _Nonnull)threeDSData handler:(void (^ _Nonnull)(ThreeDSResult * _Nonnull))handler;
586
+ - (void)setupWebView;
587
+ - (void)webView:(WKWebView * _Nonnull)webView decidePolicyForNavigationAction:(WKNavigationAction * _Nonnull)navigationAction decisionHandler:(void (^ _Nonnull)(WKNavigationActionPolicy))decisionHandler;
588
+ - (void)webView:(WKWebView * _Nonnull)webView didFinishNavigation:(WKNavigation * _Null_unspecified)navigation;
589
+ - (void)userContentController:(WKUserContentController * _Nonnull)userContentController didReceiveScriptMessage:(WKScriptMessage * _Nonnull)message;
590
+ @end
591
+
592
+
593
+ SWIFT_CLASS("_TtC12PayEngineSDK13ThreeDSResult")
594
+ @interface ThreeDSResult : NSObject
595
+ @property (nonatomic, copy) NSString * _Nullable message;
596
+ @property (nonatomic) BOOL success;
597
+ @property (nonatomic, copy) NSString * _Nullable transactionId;
598
+ - (nullable instancetype)initWithMessage:(NSString * _Nullable)message success:(BOOL)success transactionId:(NSString * _Nullable)transactionId error:(NSError * _Nullable * _Nullable)error OBJC_DESIGNATED_INITIALIZER;
599
+ - (nonnull instancetype)init SWIFT_UNAVAILABLE;
600
+ + (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
601
+ @end
602
+
603
+
604
+
605
+
606
+
607
+
608
+
609
+
610
+
611
+ #endif
612
+ #if __has_attribute(external_source_symbol)
613
+ # pragma clang attribute pop
614
+ #endif
615
+ #if defined(__cplusplus)
616
+ #endif
617
+ #pragma clang diagnostic pop
618
+ #endif
619
+
620
+ #else
621
+ #error unsupported Swift architecture
622
+ #endif
@@ -0,0 +1,20 @@
1
+ //
2
+ // PayEngine.h
3
+ // PayEngine
4
+ //
5
+ // Created by Rashid Kamran on 10/13/22.
6
+ //
7
+
8
+ #import <Foundation/Foundation.h>
9
+ #import "KDataCollector.h"
10
+ #import "KountAnalyticsViewController.h"
11
+
12
+ //! Project version number for PayEngine.
13
+ FOUNDATION_EXPORT double PayEngineVersionNumber;
14
+
15
+ //! Project version string for PayEngine.
16
+ FOUNDATION_EXPORT const unsigned char PayEngineVersionString[];
17
+
18
+ // In this header, you should import all the public headers of your framework using statements like #import <PayEngine/PublicHeader.h>
19
+
20
+
@@ -0,0 +1,33 @@
1
+ //
2
+ // UIControl+CustomControl.h
3
+ // TouchDemo
4
+ //
5
+ // Created by Astha Ameta on 19/08/20.
6
+ // Copyright © 2020 Kount Inc. All rights reserved.
7
+ //
8
+
9
+ #import <UIKit/UIKit.h>
10
+
11
+ @interface UIButton (CustomButton)
12
+
13
+ @end
14
+
15
+ @interface UISlider (CustomSlider)
16
+
17
+ @end
18
+
19
+ @interface UIStepper (CustomStepper)
20
+
21
+ @end
22
+
23
+ @interface UIPageControl (CustomPageControl)
24
+
25
+ @end
26
+
27
+ @interface UIColorWell (CustomColorWell)
28
+
29
+ @end
30
+
31
+ @interface UIScrollView (CustomScrollView)
32
+
33
+ @end