react-native-hyperpay-sdk 0.13.0 → 0.15.0

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 (285) hide show
  1. package/README.md +13 -0
  2. package/android/.gradle/7.4.2/checksums/checksums.lock +0 -0
  3. package/android/.gradle/{6.8/fileHashes/resourceHashesCache.bin → 7.4.2/checksums/md5-checksums.bin} +0 -0
  4. package/android/.gradle/{6.8/fileHashes/fileHashes.bin → 7.4.2/checksums/sha1-checksums.bin} +0 -0
  5. package/android/.gradle/7.4.2/dependencies-accessors/dependencies-accessors.lock +0 -0
  6. package/android/.gradle/{6.8 → 7.4.2/dependencies-accessors}/gc.properties +0 -0
  7. package/android/.gradle/7.4.2/executionHistory/executionHistory.lock +0 -0
  8. package/android/.gradle/{6.8 → 7.4.2}/fileChanges/last-build.bin +0 -0
  9. package/android/.gradle/7.4.2/fileHashes/fileHashes.lock +0 -0
  10. package/android/.gradle/{7.1.1/dependencies-accessors → 7.4.2}/gc.properties +0 -0
  11. package/android/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
  12. package/android/.gradle/buildOutputCleanup/cache.properties +2 -2
  13. package/ios/HyperPay.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +8 -0
  14. package/ios/HyperPay.xcodeproj/project.xcworkspace/xcuserdata/r.mabrouk.xcuserdatad/UserInterfaceState.xcuserstate +0 -0
  15. package/ios/HyperPay.xcodeproj/xcuserdata/r.mabrouk.xcuserdatad/xcschemes/xcschememanagement.plist +14 -0
  16. package/lib/typescript/PaymentStatus.d.ts +39 -0
  17. package/package.json +1 -1
  18. package/react-native-hyperpay-sdk.podspec +3 -3
  19. package/src/index.tsx +18 -4
  20. package/src/paymentStatus/groups.ts +37 -0
  21. package/src/paymentStatus/index.ts +21 -0
  22. package/src/paymentStatus/paymentStatus.ts +3106 -0
  23. package/src/paymentStatus/script.js +16 -0
  24. package/src/paymentStatus/status.json +2460 -0
  25. package/OPPWAMobile.framework/.DS_Store +0 -0
  26. package/OPPWAMobile.framework/Headers/OPPAlipayPaymentParams.h +0 -49
  27. package/OPPWAMobile.framework/Headers/OPPApplePayPaymentParams.h +0 -64
  28. package/OPPWAMobile.framework/Headers/OPPApplePayRequestStatus.h +0 -117
  29. package/OPPWAMobile.framework/Headers/OPPBankAccount.h +0 -58
  30. package/OPPWAMobile.framework/Headers/OPPBankAccountPaymentParams.h +0 -171
  31. package/OPPWAMobile.framework/Headers/OPPCard.h +0 -68
  32. package/OPPWAMobile.framework/Headers/OPPCardPaymentParams.h +0 -251
  33. package/OPPWAMobile.framework/Headers/OPPCheckoutInfo.h +0 -130
  34. package/OPPWAMobile.framework/Headers/OPPCheckoutPaymentMethod.h +0 -51
  35. package/OPPWAMobile.framework/Headers/OPPCheckoutProvider.h +0 -197
  36. package/OPPWAMobile.framework/Headers/OPPCheckoutSettings.h +0 -185
  37. package/OPPWAMobile.framework/Headers/OPPCheckoutTheme.h +0 -268
  38. package/OPPWAMobile.framework/Headers/OPPChinaUnionPayPaymentParams.h +0 -62
  39. package/OPPWAMobile.framework/Headers/OPPErrors.h +0 -183
  40. package/OPPWAMobile.framework/Headers/OPPIkanoOiPaymentParams.h +0 -74
  41. package/OPPWAMobile.framework/Headers/OPPMBWayPaymentParams.h +0 -66
  42. package/OPPWAMobile.framework/Headers/OPPPayPalPaymentParams.h +0 -48
  43. package/OPPWAMobile.framework/Headers/OPPPaymentBrandsConfig.h +0 -56
  44. package/OPPWAMobile.framework/Headers/OPPPaymentButton.h +0 -79
  45. package/OPPWAMobile.framework/Headers/OPPPaymentParams.h +0 -100
  46. package/OPPWAMobile.framework/Headers/OPPPaymentParamsBrand.h +0 -57
  47. package/OPPWAMobile.framework/Headers/OPPPaymentProvider.h +0 -132
  48. package/OPPWAMobile.framework/Headers/OPPSecurityPolicy.h +0 -87
  49. package/OPPWAMobile.framework/Headers/OPPToken.h +0 -95
  50. package/OPPWAMobile.framework/Headers/OPPTokenPaymentParams.h +0 -180
  51. package/OPPWAMobile.framework/Headers/OPPTransaction.h +0 -77
  52. package/OPPWAMobile.framework/Headers/OPPWAMobile.h +0 -48
  53. package/OPPWAMobile.framework/OPPWAMobile +0 -0
  54. package/OPPWAMobile.framework/Resources/.DS_Store +0 -0
  55. package/OPPWAMobile.framework/Resources/Klarna.json +0 -67
  56. package/OPPWAMobile.framework/Resources/OPPBrandCollectionViewCell.nib +0 -0
  57. package/OPPWAMobile.framework/Resources/OPPCardDetailsViewController.nib +0 -0
  58. package/OPPWAMobile.framework/Resources/OPPCardsTableViewCell.nib +0 -0
  59. package/OPPWAMobile.framework/Resources/OPPCheckoutTextFieldView.nib +0 -0
  60. package/OPPWAMobile.framework/Resources/OPPChinaUnionPayDetailsViewController.nib +0 -0
  61. package/OPPWAMobile.framework/Resources/OPPDirectDebitDetailsViewController.nib +0 -0
  62. package/OPPWAMobile.framework/Resources/OPPGiropayDetailsViewController.nib +0 -0
  63. package/OPPWAMobile.framework/Resources/OPPIkanoDetailsViewController.nib +0 -0
  64. package/OPPWAMobile.framework/Resources/OPPKlarnaDetailsViewController.nib +0 -0
  65. package/OPPWAMobile.framework/Resources/OPPKlarnaTableViewCell.nib +0 -0
  66. package/OPPWAMobile.framework/Resources/OPPListDetailsViewController.nib +0 -0
  67. package/OPPWAMobile.framework/Resources/OPPMBWAYDetailsViewController.nib +0 -0
  68. package/OPPWAMobile.framework/Resources/OPPPaymentFormHeaderView.nib +0 -0
  69. package/OPPWAMobile.framework/Resources/OPPPaymentProcessingViewController.nib +0 -0
  70. package/OPPWAMobile.framework/Resources/OPPPaymentSchemeTableViewCell.nib +0 -0
  71. package/OPPWAMobile.framework/Resources/OPPPaymentSchemeViewController.nib +0 -0
  72. package/OPPWAMobile.framework/Resources/OPPStorePaymentDetailsView.nib +0 -0
  73. package/OPPWAMobile.framework/Resources/OPPTokenCollectionViewCell.nib +0 -0
  74. package/OPPWAMobile.framework/Resources/OPPTokensTableViewCell.nib +0 -0
  75. package/OPPWAMobile.framework/Resources/OPPTotalAmountView.nib/objects-11.0+.nib +0 -0
  76. package/OPPWAMobile.framework/Resources/OPPTotalAmountView.nib/runtime.nib +0 -0
  77. package/OPPWAMobile.framework/Resources/alipay.png +0 -0
  78. package/OPPWAMobile.framework/Resources/alipay@2x.png +0 -0
  79. package/OPPWAMobile.framework/Resources/alipay@3x.png +0 -0
  80. package/OPPWAMobile.framework/Resources/amex.png +0 -0
  81. package/OPPWAMobile.framework/Resources/amex@2x.png +0 -0
  82. package/OPPWAMobile.framework/Resources/amex@3x.png +0 -0
  83. package/OPPWAMobile.framework/Resources/applepay.png +0 -0
  84. package/OPPWAMobile.framework/Resources/applepay@2x.png +0 -0
  85. package/OPPWAMobile.framework/Resources/applepay@3x.png +0 -0
  86. package/OPPWAMobile.framework/Resources/ar.lproj/OPPCheckout.strings +0 -89
  87. package/OPPWAMobile.framework/Resources/arrow_down.png +0 -0
  88. package/OPPWAMobile.framework/Resources/arrow_up.png +0 -0
  89. package/OPPWAMobile.framework/Resources/boleto.png +0 -0
  90. package/OPPWAMobile.framework/Resources/boleto@2x.png +0 -0
  91. package/OPPWAMobile.framework/Resources/boleto@3x.png +0 -0
  92. package/OPPWAMobile.framework/Resources/ca.lproj/OPPCheckout.strings +0 -90
  93. package/OPPWAMobile.framework/Resources/camera_icon.png +0 -0
  94. package/OPPWAMobile.framework/Resources/camera_icon@2x.png +0 -0
  95. package/OPPWAMobile.framework/Resources/camera_icon@3x.png +0 -0
  96. package/OPPWAMobile.framework/Resources/card.png +0 -0
  97. package/OPPWAMobile.framework/Resources/card@2x.png +0 -0
  98. package/OPPWAMobile.framework/Resources/card@3x.png +0 -0
  99. package/OPPWAMobile.framework/Resources/cartebleue.png +0 -0
  100. package/OPPWAMobile.framework/Resources/cartebleue@2x.png +0 -0
  101. package/OPPWAMobile.framework/Resources/cartebleue@3x.png +0 -0
  102. package/OPPWAMobile.framework/Resources/dankort.png +0 -0
  103. package/OPPWAMobile.framework/Resources/dankort@2x.png +0 -0
  104. package/OPPWAMobile.framework/Resources/dankort@3x.png +0 -0
  105. package/OPPWAMobile.framework/Resources/de.lproj/OPPCheckout.strings +0 -99
  106. package/OPPWAMobile.framework/Resources/diners.png +0 -0
  107. package/OPPWAMobile.framework/Resources/diners@2x.png +0 -0
  108. package/OPPWAMobile.framework/Resources/diners@3x.png +0 -0
  109. package/OPPWAMobile.framework/Resources/directdebit_sepa.png +0 -0
  110. package/OPPWAMobile.framework/Resources/directdebit_sepa@2x.png +0 -0
  111. package/OPPWAMobile.framework/Resources/directdebit_sepa@3x.png +0 -0
  112. package/OPPWAMobile.framework/Resources/discover.png +0 -0
  113. package/OPPWAMobile.framework/Resources/discover@2x.png +0 -0
  114. package/OPPWAMobile.framework/Resources/discover@3x.png +0 -0
  115. package/OPPWAMobile.framework/Resources/en.lproj/OPPCheckout.strings +0 -145
  116. package/OPPWAMobile.framework/Resources/es.lproj/OPPCheckout.strings +0 -92
  117. package/OPPWAMobile.framework/Resources/eu-ES.lproj/OPPCheckout.strings +0 -92
  118. package/OPPWAMobile.framework/Resources/fr-CA.lproj/OPPCheckout.strings +0 -93
  119. package/OPPWAMobile.framework/Resources/fr.lproj/OPPCheckout.strings +0 -93
  120. package/OPPWAMobile.framework/Resources/giropay.png +0 -0
  121. package/OPPWAMobile.framework/Resources/giropay@2x.png +0 -0
  122. package/OPPWAMobile.framework/Resources/giropay@3x.png +0 -0
  123. package/OPPWAMobile.framework/Resources/gl-ES.lproj/OPPCheckout.strings +0 -92
  124. package/OPPWAMobile.framework/Resources/ideal.png +0 -0
  125. package/OPPWAMobile.framework/Resources/ideal@2x.png +0 -0
  126. package/OPPWAMobile.framework/Resources/ideal@3x.png +0 -0
  127. package/OPPWAMobile.framework/Resources/it.lproj/OPPCheckout.strings +0 -94
  128. package/OPPWAMobile.framework/Resources/ja.lproj/OPPCheckout.strings +0 -74
  129. package/OPPWAMobile.framework/Resources/jcb.png +0 -0
  130. package/OPPWAMobile.framework/Resources/jcb@2x.png +0 -0
  131. package/OPPWAMobile.framework/Resources/jcb@3x.png +0 -0
  132. package/OPPWAMobile.framework/Resources/klarna.png +0 -0
  133. package/OPPWAMobile.framework/Resources/klarna@2x.png +0 -0
  134. package/OPPWAMobile.framework/Resources/klarna@3x.png +0 -0
  135. package/OPPWAMobile.framework/Resources/klarna_detail_logo.png +0 -0
  136. package/OPPWAMobile.framework/Resources/klarna_detail_logo@2x.png +0 -0
  137. package/OPPWAMobile.framework/Resources/klarna_detail_logo@3x.png +0 -0
  138. package/OPPWAMobile.framework/Resources/klarna_nl_agreement.png +0 -0
  139. package/OPPWAMobile.framework/Resources/klarna_nl_agreement@2x.png +0 -0
  140. package/OPPWAMobile.framework/Resources/klarna_nl_agreement@3x.png +0 -0
  141. package/OPPWAMobile.framework/Resources/klarna_payments_billpay.png +0 -0
  142. package/OPPWAMobile.framework/Resources/klarna_payments_billpay@2x.png +0 -0
  143. package/OPPWAMobile.framework/Resources/klarna_payments_billpay@3x.png +0 -0
  144. package/OPPWAMobile.framework/Resources/klarna_payments_paylater.png +0 -0
  145. package/OPPWAMobile.framework/Resources/klarna_payments_paylater@2x.png +0 -0
  146. package/OPPWAMobile.framework/Resources/klarna_payments_paylater@3x.png +0 -0
  147. package/OPPWAMobile.framework/Resources/klarna_payments_sliceit.png +0 -0
  148. package/OPPWAMobile.framework/Resources/klarna_payments_sliceit@2x.png +0 -0
  149. package/OPPWAMobile.framework/Resources/klarna_payments_sliceit@3x.png +0 -0
  150. package/OPPWAMobile.framework/Resources/mada.png +0 -0
  151. package/OPPWAMobile.framework/Resources/mada@2x.png +0 -0
  152. package/OPPWAMobile.framework/Resources/mada@3x.png +0 -0
  153. package/OPPWAMobile.framework/Resources/maestro.png +0 -0
  154. package/OPPWAMobile.framework/Resources/maestro@2x.png +0 -0
  155. package/OPPWAMobile.framework/Resources/maestro@3x.png +0 -0
  156. package/OPPWAMobile.framework/Resources/master.png +0 -0
  157. package/OPPWAMobile.framework/Resources/master@2x.png +0 -0
  158. package/OPPWAMobile.framework/Resources/master@3x.png +0 -0
  159. package/OPPWAMobile.framework/Resources/masterdebit.png +0 -0
  160. package/OPPWAMobile.framework/Resources/masterdebit@2x.png +0 -0
  161. package/OPPWAMobile.framework/Resources/masterdebit@3x.png +0 -0
  162. package/OPPWAMobile.framework/Resources/masterpass.png +0 -0
  163. package/OPPWAMobile.framework/Resources/masterpass@2x.png +0 -0
  164. package/OPPWAMobile.framework/Resources/masterpass@3x.png +0 -0
  165. package/OPPWAMobile.framework/Resources/nl.lproj/OPPCheckout.strings +0 -91
  166. package/OPPWAMobile.framework/Resources/paydirekt.png +0 -0
  167. package/OPPWAMobile.framework/Resources/paydirekt@2x.png +0 -0
  168. package/OPPWAMobile.framework/Resources/paydirekt@3x.png +0 -0
  169. package/OPPWAMobile.framework/Resources/paypal.png +0 -0
  170. package/OPPWAMobile.framework/Resources/paypal@2x.png +0 -0
  171. package/OPPWAMobile.framework/Resources/paypal@3x.png +0 -0
  172. package/OPPWAMobile.framework/Resources/paysafecard.png +0 -0
  173. package/OPPWAMobile.framework/Resources/paysafecard@2x.png +0 -0
  174. package/OPPWAMobile.framework/Resources/paysafecard@3x.png +0 -0
  175. package/OPPWAMobile.framework/Resources/paytrail.png +0 -0
  176. package/OPPWAMobile.framework/Resources/paytrail@2x.png +0 -0
  177. package/OPPWAMobile.framework/Resources/paytrail@3x.png +0 -0
  178. package/OPPWAMobile.framework/Resources/pf_karte_direct.png +0 -0
  179. package/OPPWAMobile.framework/Resources/pf_karte_direct@2x.png +0 -0
  180. package/OPPWAMobile.framework/Resources/pf_karte_direct@3x.png +0 -0
  181. package/OPPWAMobile.framework/Resources/przelewy.png +0 -0
  182. package/OPPWAMobile.framework/Resources/przelewy@2x.png +0 -0
  183. package/OPPWAMobile.framework/Resources/przelewy@3x.png +0 -0
  184. package/OPPWAMobile.framework/Resources/pt.lproj/OPPCheckout.strings +0 -91
  185. package/OPPWAMobile.framework/Resources/ratenkauf.png +0 -0
  186. package/OPPWAMobile.framework/Resources/ratenkauf@2x.png +0 -0
  187. package/OPPWAMobile.framework/Resources/ratenkauf@3x.png +0 -0
  188. package/OPPWAMobile.framework/Resources/ru.lproj/OPPCheckout.strings +0 -91
  189. package/OPPWAMobile.framework/Resources/sibs_multibanco.png +0 -0
  190. package/OPPWAMobile.framework/Resources/sibs_multibanco@2x.png +0 -0
  191. package/OPPWAMobile.framework/Resources/sibs_multibanco@3x.png +0 -0
  192. package/OPPWAMobile.framework/Resources/sofortueberweisung.png +0 -0
  193. package/OPPWAMobile.framework/Resources/sofortueberweisung@2x.png +0 -0
  194. package/OPPWAMobile.framework/Resources/sofortueberweisung@3x.png +0 -0
  195. package/OPPWAMobile.framework/Resources/th.lproj/OPPCheckout.strings +0 -91
  196. package/OPPWAMobile.framework/Resources/trustly.png +0 -0
  197. package/OPPWAMobile.framework/Resources/trustly@2x.png +0 -0
  198. package/OPPWAMobile.framework/Resources/trustly@3x.png +0 -0
  199. package/OPPWAMobile.framework/Resources/unionpay.png +0 -0
  200. package/OPPWAMobile.framework/Resources/unionpay@2x.png +0 -0
  201. package/OPPWAMobile.framework/Resources/unionpay@3x.png +0 -0
  202. package/OPPWAMobile.framework/Resources/version.plist +0 -0
  203. package/OPPWAMobile.framework/Resources/visa.png +0 -0
  204. package/OPPWAMobile.framework/Resources/visa@2x.png +0 -0
  205. package/OPPWAMobile.framework/Resources/visa@3x.png +0 -0
  206. package/OPPWAMobile.framework/Resources/visadebit.png +0 -0
  207. package/OPPWAMobile.framework/Resources/visadebit@2x.png +0 -0
  208. package/OPPWAMobile.framework/Resources/visadebit@3x.png +0 -0
  209. package/OPPWAMobile.framework/Resources/visaelectron.png +0 -0
  210. package/OPPWAMobile.framework/Resources/visaelectron@2x.png +0 -0
  211. package/OPPWAMobile.framework/Resources/visaelectron@3x.png +0 -0
  212. package/OPPWAMobile.framework/Resources/yandex.png +0 -0
  213. package/OPPWAMobile.framework/Resources/yandex@2x.png +0 -0
  214. package/OPPWAMobile.framework/Resources/yandex@3x.png +0 -0
  215. package/OPPWAMobile.framework/Resources/zh-Hans.lproj/OPPCheckout.strings +0 -92
  216. package/OPPWAMobile.framework/Versions/.DS_Store +0 -0
  217. package/OPPWAMobile.framework/Versions/2.47.0/.DS_Store +0 -0
  218. package/OPPWAMobile.framework/Versions/2.47.0/Headers/OPPAlipayPaymentParams.h +0 -49
  219. package/OPPWAMobile.framework/Versions/2.47.0/Headers/OPPApplePayPaymentParams.h +0 -64
  220. package/OPPWAMobile.framework/Versions/2.47.0/Headers/OPPApplePayRequestStatus.h +0 -117
  221. package/OPPWAMobile.framework/Versions/2.47.0/Headers/OPPBankAccount.h +0 -58
  222. package/OPPWAMobile.framework/Versions/2.47.0/Headers/OPPBankAccountPaymentParams.h +0 -171
  223. package/OPPWAMobile.framework/Versions/2.47.0/Headers/OPPCard.h +0 -68
  224. package/OPPWAMobile.framework/Versions/2.47.0/Headers/OPPCardPaymentParams.h +0 -251
  225. package/OPPWAMobile.framework/Versions/2.47.0/Headers/OPPCheckoutInfo.h +0 -130
  226. package/OPPWAMobile.framework/Versions/2.47.0/Headers/OPPCheckoutPaymentMethod.h +0 -51
  227. package/OPPWAMobile.framework/Versions/2.47.0/Headers/OPPCheckoutProvider.h +0 -197
  228. package/OPPWAMobile.framework/Versions/2.47.0/Headers/OPPCheckoutSettings.h +0 -185
  229. package/OPPWAMobile.framework/Versions/2.47.0/Headers/OPPCheckoutTheme.h +0 -268
  230. package/OPPWAMobile.framework/Versions/2.47.0/Headers/OPPChinaUnionPayPaymentParams.h +0 -62
  231. package/OPPWAMobile.framework/Versions/2.47.0/Headers/OPPErrors.h +0 -183
  232. package/OPPWAMobile.framework/Versions/2.47.0/Headers/OPPIkanoOiPaymentParams.h +0 -74
  233. package/OPPWAMobile.framework/Versions/2.47.0/Headers/OPPMBWayPaymentParams.h +0 -66
  234. package/OPPWAMobile.framework/Versions/2.47.0/Headers/OPPPayPalPaymentParams.h +0 -48
  235. package/OPPWAMobile.framework/Versions/2.47.0/Headers/OPPPaymentBrandsConfig.h +0 -56
  236. package/OPPWAMobile.framework/Versions/2.47.0/Headers/OPPPaymentButton.h +0 -79
  237. package/OPPWAMobile.framework/Versions/2.47.0/Headers/OPPPaymentParams.h +0 -100
  238. package/OPPWAMobile.framework/Versions/2.47.0/Headers/OPPPaymentParamsBrand.h +0 -57
  239. package/OPPWAMobile.framework/Versions/2.47.0/Headers/OPPPaymentProvider.h +0 -132
  240. package/OPPWAMobile.framework/Versions/2.47.0/Headers/OPPSecurityPolicy.h +0 -87
  241. package/OPPWAMobile.framework/Versions/2.47.0/Headers/OPPToken.h +0 -95
  242. package/OPPWAMobile.framework/Versions/2.47.0/Headers/OPPTokenPaymentParams.h +0 -180
  243. package/OPPWAMobile.framework/Versions/2.47.0/Headers/OPPTransaction.h +0 -77
  244. package/OPPWAMobile.framework/Versions/2.47.0/Headers/OPPWAMobile.h +0 -48
  245. package/OPPWAMobile.framework/Versions/2.47.0/OPPWAMobile +0 -0
  246. package/OPPWAMobile.framework/Versions/2.47.0/Resources/Info.plist +0 -0
  247. package/OPPWAMobile.framework/Versions/Current/.DS_Store +0 -0
  248. package/OPPWAMobile.framework/Versions/Current/Headers/OPPAlipayPaymentParams.h +0 -49
  249. package/OPPWAMobile.framework/Versions/Current/Headers/OPPApplePayPaymentParams.h +0 -64
  250. package/OPPWAMobile.framework/Versions/Current/Headers/OPPApplePayRequestStatus.h +0 -117
  251. package/OPPWAMobile.framework/Versions/Current/Headers/OPPBankAccount.h +0 -58
  252. package/OPPWAMobile.framework/Versions/Current/Headers/OPPBankAccountPaymentParams.h +0 -171
  253. package/OPPWAMobile.framework/Versions/Current/Headers/OPPCard.h +0 -68
  254. package/OPPWAMobile.framework/Versions/Current/Headers/OPPCardPaymentParams.h +0 -251
  255. package/OPPWAMobile.framework/Versions/Current/Headers/OPPCheckoutInfo.h +0 -130
  256. package/OPPWAMobile.framework/Versions/Current/Headers/OPPCheckoutPaymentMethod.h +0 -51
  257. package/OPPWAMobile.framework/Versions/Current/Headers/OPPCheckoutProvider.h +0 -197
  258. package/OPPWAMobile.framework/Versions/Current/Headers/OPPCheckoutSettings.h +0 -185
  259. package/OPPWAMobile.framework/Versions/Current/Headers/OPPCheckoutTheme.h +0 -268
  260. package/OPPWAMobile.framework/Versions/Current/Headers/OPPChinaUnionPayPaymentParams.h +0 -62
  261. package/OPPWAMobile.framework/Versions/Current/Headers/OPPErrors.h +0 -183
  262. package/OPPWAMobile.framework/Versions/Current/Headers/OPPIkanoOiPaymentParams.h +0 -74
  263. package/OPPWAMobile.framework/Versions/Current/Headers/OPPMBWayPaymentParams.h +0 -66
  264. package/OPPWAMobile.framework/Versions/Current/Headers/OPPPayPalPaymentParams.h +0 -48
  265. package/OPPWAMobile.framework/Versions/Current/Headers/OPPPaymentBrandsConfig.h +0 -56
  266. package/OPPWAMobile.framework/Versions/Current/Headers/OPPPaymentButton.h +0 -79
  267. package/OPPWAMobile.framework/Versions/Current/Headers/OPPPaymentParams.h +0 -100
  268. package/OPPWAMobile.framework/Versions/Current/Headers/OPPPaymentParamsBrand.h +0 -57
  269. package/OPPWAMobile.framework/Versions/Current/Headers/OPPPaymentProvider.h +0 -132
  270. package/OPPWAMobile.framework/Versions/Current/Headers/OPPSecurityPolicy.h +0 -87
  271. package/OPPWAMobile.framework/Versions/Current/Headers/OPPToken.h +0 -95
  272. package/OPPWAMobile.framework/Versions/Current/Headers/OPPTokenPaymentParams.h +0 -180
  273. package/OPPWAMobile.framework/Versions/Current/Headers/OPPTransaction.h +0 -77
  274. package/OPPWAMobile.framework/Versions/Current/Headers/OPPWAMobile.h +0 -48
  275. package/OPPWAMobile.framework/Versions/Current/OPPWAMobile +0 -0
  276. package/OPPWAMobile.framework/Versions/Current/Resources/Info.plist +0 -0
  277. package/android/.gradle/6.8/executionHistory/executionHistory.bin +0 -0
  278. package/android/.gradle/6.8/executionHistory/executionHistory.lock +0 -0
  279. package/android/.gradle/6.8/fileHashes/fileHashes.lock +0 -0
  280. package/android/.gradle/6.8/javaCompile/javaCompile.lock +0 -0
  281. package/android/.gradle/7.1.1/dependencies-accessors/dependencies-accessors.lock +0 -0
  282. package/android/.gradle/7.1.1/executionHistory/executionHistory.lock +0 -0
  283. package/android/.gradle/7.1.1/fileChanges/last-build.bin +0 -0
  284. package/android/.gradle/7.1.1/fileHashes/fileHashes.lock +0 -0
  285. package/android/.gradle/7.1.1/gc.properties +0 -0
@@ -1,117 +0,0 @@
1
- //
2
- // Copyright (c) 2019 by ACI Worldwide, Inc.
3
- // All rights reserved.
4
- //
5
- // This software is the confidential and proprietary information
6
- // of ACI Worldwide Inc ("Confidential Information"). You shall
7
- // not disclose such Confidential Information and shall use it
8
- // only in accordance with the terms of the license agreement
9
- // you entered with ACI Worldwide Inc.
10
- //
11
-
12
- @import Foundation;
13
- @import PassKit;
14
-
15
- NS_ASSUME_NONNULL_BEGIN
16
-
17
- /**
18
- Class that reports the status code and errors that you return when a payment is authorized.
19
- */
20
- @interface OPPApplePayRequestAuthorizationResult : NSObject
21
-
22
- /// @name Initialization
23
-
24
- /**
25
- Initializes the result with the status code and list of errors.
26
- @param status Payment authorization general status.
27
- @param errors List of errors in the Apple Pay form (available for iOS 11 and higher).
28
- */
29
- - (instancetype)initWithStatus:(PKPaymentAuthorizationStatus)status
30
- errors:(nullable NSArray<NSError *> *)errors NS_DESIGNATED_INITIALIZER;
31
-
32
- /// @name Properties
33
-
34
- /**
35
- Payment authorization general status.
36
- */
37
- @property (nonatomic) PKPaymentAuthorizationStatus status;
38
-
39
- /**
40
- Any errors that applied. These errors will be displayed to the user to correct (available for iOS 11 and higher).
41
- Errors should be ordered from most to least serious.
42
- See `PKError` for specific `NSError` keys to use to enable rich error handling.
43
- */
44
- @property (null_resettable, nonatomic, copy) NSArray<NSError *> *errors;
45
-
46
- @end
47
-
48
-
49
- /**
50
- Base class for updating the payment request after the shopper makes changes on the payment form.
51
- */
52
- @interface OPPApplePayRequestUpdate : NSObject
53
-
54
- /// @name Initialization
55
-
56
- /**
57
- Initializes a payment request update with the given list of summary items.
58
- @param paymentSummaryItems The new payment summary items to update the payment request with.
59
- */
60
- - (instancetype)initWithPaymentSummaryItems:(NSArray<PKPaymentSummaryItem *> *)paymentSummaryItems NS_DESIGNATED_INITIALIZER;
61
-
62
- /// @name Properties
63
-
64
- /**
65
- The status of the payment request update.
66
- Set `PKPaymentAuthorizationStatusSuccess` for a successful update, and `PKPaymentAuthorizationStatusFailure` if you were unable to process the required changes.
67
- `PKPaymentAuthorizationStatusSuccess` by default.
68
- */
69
- @property (nonatomic) PKPaymentAuthorizationStatus status;
70
-
71
- /**
72
- The new payment summary items to update the payment request with.
73
- */
74
- @property (nonatomic, copy) NSArray<PKPaymentSummaryItem *> *paymentSummaryItems;
75
-
76
- @end
77
-
78
- /**
79
- Class for updating the payment request after the shipping contact information changed.
80
- */
81
- @interface OPPApplePayRequestShippingContactUpdate : OPPApplePayRequestUpdate
82
-
83
- /// @name Initialization
84
-
85
- /**
86
- Initializes a payment request update with provided errors, payment summary items and shipping methods.
87
- @param errors List of errors in the shipping contact information (available for iOS 11 and higher). See `PKError` for specific `NSError` keys to use.
88
- @param paymentSummaryItems The new payment summary items to update the payment request with.
89
- @param shippingMethods The new shipping methods to update the payment request with.
90
- */
91
- - (instancetype)initWithErrors:(nullable NSArray<NSError *> *)errors
92
- paymentSummaryItems:(NSArray<PKPaymentSummaryItem *> *)paymentSummaryItems
93
- shippingMethods:(NSArray<PKShippingMethod *> *)shippingMethods NS_DESIGNATED_INITIALIZER;
94
-
95
- /// @name Properties
96
-
97
- /**
98
- The new shipping methods to update the payment request with.
99
- */
100
- @property (nonatomic, copy) NSArray<PKShippingMethod *> *shippingMethods;
101
-
102
- /**
103
- List of errors in the shipping contact information (available for iOS 11 and higher).
104
- See `PKError` for specific `NSError` keys to use.
105
- */
106
- @property (null_resettable, nonatomic, copy) NSArray<NSError *> *errors;
107
-
108
- @end
109
-
110
- /**
111
- Class for updating the payment request after the shipping method changed.
112
- */
113
- @interface OPPApplePayRequestShippingMethodUpdate : OPPApplePayRequestUpdate
114
-
115
- @end
116
-
117
- NS_ASSUME_NONNULL_END
@@ -1,58 +0,0 @@
1
- //
2
- // Copyright (c) 2019 by ACI Worldwide, Inc.
3
- // All rights reserved.
4
- //
5
- // This software is the confidential and proprietary information
6
- // of ACI Worldwide Inc ("Confidential Information"). You shall
7
- // not disclose such Confidential Information and shall use it
8
- // only in accordance with the terms of the license agreement
9
- // you entered with ACI Worldwide Inc.
10
- //
11
-
12
- #import <Foundation/Foundation.h>
13
-
14
- /**
15
- Class to encapsulate shopper’s bank account details that have been tokenized.
16
- */
17
-
18
- NS_ASSUME_NONNULL_BEGIN
19
- @interface OPPBankAccount : NSObject
20
-
21
- /// @name Properties
22
-
23
- /** The name of the bank account holder. */
24
- @property (nonatomic, copy) NSString *holder;
25
-
26
- /** The IBAN (International Bank Account Number) associated with the bank account. */
27
- @property (nonatomic, copy) NSString *IBAN;
28
-
29
- /// @name Initialization
30
-
31
- /// :nodoc:
32
- - (instancetype)init NS_UNAVAILABLE;
33
-
34
- /**
35
- Creates an `OPPBankAccount` object from the JSON.
36
- @param JSON A dictionary with parameters received from the Server.
37
- @return Returns an `OPPBankAccount` object, or `nil` if JSON contains invalid values.
38
- */
39
- + (nullable instancetype)bankAccountFromJSON:(NSDictionary *)JSON;
40
-
41
- /**
42
- Creates an `OPPBankAccount` object with the provided values.
43
- @param holder The name of the bank account holder.
44
- @param IBAN The IBAN (International Bank Account Number) associated with the bank account.
45
- @return Returns an `OPPBankAccount` object, or `nil` if parameters are empty.
46
- */
47
- + (nullable instancetype)bankAccountWithHolder:(NSString *)holder IBAN:(NSString *)IBAN;
48
-
49
- /**
50
- Creates an `OPPBankAccount` object with the provided values.
51
- @param holder The name of the bank account holder.
52
- @param IBAN The IBAN (International Bank Account Number) associated with the bank account.
53
- @return Returns an `OPPBankAccount` object, or `nil` if parameters are empty.
54
- */
55
- - (nullable instancetype)initWithHolder:(NSString *)holder IBAN:(NSString *)IBAN NS_DESIGNATED_INITIALIZER;
56
-
57
- @end
58
- NS_ASSUME_NONNULL_END
@@ -1,171 +0,0 @@
1
- //
2
- // Copyright (c) 2019 by ACI Worldwide, Inc.
3
- // All rights reserved.
4
- //
5
- // This software is the confidential and proprietary information
6
- // of ACI Worldwide Inc ("Confidential Information"). You shall
7
- // not disclose such Confidential Information and shall use it
8
- // only in accordance with the terms of the license agreement
9
- // you entered with ACI Worldwide Inc.
10
- //
11
-
12
- #import "OPPPaymentParams.h"
13
-
14
- /** Class to encapsulate all necessary transaction parameters for performing a bank transfer transaction. */
15
-
16
- NS_ASSUME_NONNULL_BEGIN
17
- @interface OPPBankAccountPaymentParams : OPPPaymentParams
18
-
19
- /// @name Initialization
20
-
21
- /// :nodoc:
22
- - (instancetype)initWithCheckoutID:(NSString *)checkoutID paymentBrand:(NSString *)paymentBrand error:(NSError * _Nullable __autoreleasing *)error NS_UNAVAILABLE;
23
-
24
- /**
25
- Creates an object representing a SEPA direct debit transaction.
26
-
27
- @param checkoutID The checkout ID of the transaction. Must be not `nil` or empty.
28
- @param holder The name of the bank account holder.
29
- @param IBAN The IBAN (International Bank Account Number) associated with the bank account.
30
- @param tokenizationEnabled If `YES`, the payment information will be stored for future use.
31
- @param error The error that occurred while validating payment parameters. See code attribute (`OPPErrorCode`) and `NSLocalizedDescription` to identify the reason of failure.
32
- @return Returns an object representing a SEPA direct debit transaction, and `nil` if parameters are invalid.
33
- */
34
- + (nullable instancetype)directDebitSEPAPaymentParamsWithCheckoutID:(NSString *)checkoutID holder:(NSString *)holder IBAN:(NSString *)IBAN tokenizationEnabled:(BOOL)tokenizationEnabled error:(NSError **)error;
35
-
36
- /**
37
- Creates an object representing a SOFORT banking transaction.
38
-
39
- @param checkoutID The checkout ID of the transaction. Must be not `nil` or empty.
40
- @param country The country code of the bank account (ISO 3166-1).
41
- @param error The error that occurred while validating payment parameters. See code attribute (`OPPErrorCode`) and `NSLocalizedDescription` to identify the reason of failure.
42
- @return Returns an object representing a SOFORT banking transaction, and `nil` if parameters are invalid.
43
- */
44
- + (nullable instancetype)sofortBankingPaymentParamsWithCheckoutID:(NSString *)checkoutID country:(NSString *)country error:(NSError **)error;
45
-
46
- /**
47
- Creates an object representing an IDEAL transaction.
48
-
49
- @param checkoutID The checkout ID of the transaction. Must be not `nil` or empty.
50
- @param bankName The name of the bank which holds the account.
51
- @param error The error that occurred while validating payment parameters. See code attribute (`OPPErrorCode`) and `NSLocalizedDescription` to identify the reason of failure.
52
- @return Returns an object representing an IDEAL transaction, and `nil` if parameters are invalid.
53
- */
54
- + (nullable instancetype)idealPaymentParamsWithCheckoutID:(NSString *)checkoutID bankName:(NSString *)bankName error:(NSError **)error;
55
-
56
- /**
57
- Creates an object representing a Giropay transaction.
58
-
59
- @param checkoutID The checkout ID of the transaction. Must be not `nil` or empty.
60
- @param BIC The BIC (Bank Identifier Code (SWIFT)) number of the bank account. Either the bankCode or the BIC are required.
61
- @param bankCode The code associated with the bank account. Either the bankCode or the BIC are required.
62
- @param IBAN The IBAN (International Bank Account Number) associated with the bank account.
63
- @param accountNumber The account number of the bank account.
64
- @param error The error that occurred while validating payment parameters. See code attribute (`OPPErrorCode`) and `NSLocalizedDescription` to identify the reason of failure.
65
- @return Returns an object representing a Giropay transaction, and `nil` if parameters are invalid.
66
- */
67
- + (nullable instancetype)giropayPaymentParamsWithCheckoutID:(nullable NSString *)checkoutID BIC:(nullable NSString *)BIC bankCode:(nullable NSString *)bankCode IBAN:(nullable NSString *)IBAN accountNumber:(nullable NSString *)accountNumber error:(NSError **)error;
68
-
69
- /// @name Properties
70
-
71
- /** The name of the bank account holder. */
72
- @property (nonatomic, copy, readonly) NSString *holder;
73
-
74
- /** The IBAN (International Bank Account Number) associated with the bank account. */
75
- @property (nonatomic, copy, readonly) NSString *IBAN;
76
-
77
- /** The account number of the bank account. Either the account number or the IBAN are required. */
78
- @property (nonatomic, copy, readonly) NSString *accountNumber;
79
-
80
- /** The country code of the bank account (ISO 3166-1). */
81
- @property (nonatomic, copy, readonly) NSString *country;
82
-
83
- /** The name of the bank which holds the account. */
84
- @property (nonatomic, copy, readonly) NSString *bankName;
85
-
86
- /** The BIC (Bank Identifier Code (SWIFT)) number of the bank account. Either the bankCode or the BIC are required. */
87
- @property (nonatomic, copy, readonly) NSString *BIC;
88
-
89
- /** The code associated with the bank account. Either the bankCode or the BIC are required. */
90
- @property (nonatomic, copy, readonly) NSString *bankCode;
91
-
92
- /** Default is `NO`. If `YES`, the payment information will be stored for future use. */
93
- @property (nonatomic, readonly, getter=isTokenizationEnabled) BOOL tokenizationEnabled;
94
-
95
- /// @name Validation methods
96
-
97
- /**
98
- Checks if the bank account holder name is filled with sufficient data to perform a transaction.
99
-
100
- @param holder The name of the bank account holder.
101
- @return `YES` if the holder name contains more than 4 characters, up to 128 characters.
102
- */
103
- + (BOOL)isHolderValid:(NSString *)holder;
104
-
105
- /**
106
- Checks if the IBAN is valid.
107
- The first two 2 characters specify the country code as of ISO 3166-1 alpha-2. Only letters.
108
- The next 2 characters specify the check digits for a sanity check. Only digits.
109
- The remaining characters up to 27 characters specify the Basic Bank Account Number (“BBAN”). Both letters & digits allowed.
110
-
111
- @param IBAN International Bank Account Number.
112
- @return `YES` if the IBAN meets the criteria described above.
113
- */
114
- + (BOOL)isIBANValid:(NSString *)IBAN;
115
-
116
- /**
117
- Checks if the account number is valid.
118
-
119
- @param accountNumber The account number of the bank account.
120
- @return `YES` if the account number is valid.
121
- */
122
- + (BOOL)isAccountNumberValid:(NSString *)accountNumber;
123
-
124
- /**
125
- Checks if the country code matches ISO 3166-1 two-letter standard.
126
-
127
- @param country The country of the bank account.
128
- @return `YES` if the country code matches ISO 3166-1 two-letter standard.
129
- */
130
- + (BOOL)isCountryValid:(NSString *)country;
131
-
132
- /**
133
- Checks if the name of the bank is valid.
134
-
135
- @param bankName The name of the bank which holds the account.
136
- @return `YES` if the name of the bank is valid.
137
- */
138
- + (BOOL)isBankNameValid:(NSString *)bankName;
139
-
140
- /**
141
- Checks if the BIC is valid.
142
-
143
- @param BIC The BIC (Bank Identifier Code (SWIFT)) number of the bank account.
144
- @return `YES` if the BIC is valid.
145
- */
146
- + (BOOL)isBICValid:(NSString *)BIC;
147
-
148
- /**
149
- Checks if the bank code is valid.
150
-
151
- @param bankCode The code associated with the bank account.
152
- @return `YES` if the bank code is valid.
153
- */
154
- + (BOOL)isBankCodeValid:(NSString *)bankCode;
155
-
156
- @end
157
-
158
- /// Deprecated methods
159
- @interface OPPBankAccountPaymentParams (Deprecated)
160
- /**
161
- Creates an object representing a BOLETO banking transaction.
162
-
163
- @param checkoutID The checkout ID of the transaction. Must be not `nil` or empty.
164
- @param error The error that occurred while validating payment parameters. See code attribute (`OPPErrorCode`) and `NSLocalizedDescription` to identify the reason of failure.
165
- @return Returns an object representing a BOLETO banking transaction, and `nil` if parameters are invalid.
166
- @warning **Deprecated:** Use `OPPPaymentParams` class with payment brand 'BOLETO' instead
167
-
168
- */
169
- + (nullable instancetype)boletoPaymentParamsWithCheckoutID:(NSString *)checkoutID error:(NSError **)error DEPRECATED_MSG_ATTRIBUTE("- Use OPPPaymentParams class with payment brand 'BOLETO' instead.");
170
- @end
171
- NS_ASSUME_NONNULL_END
@@ -1,68 +0,0 @@
1
- //
2
- // Copyright (c) 2019 by ACI Worldwide, Inc.
3
- // All rights reserved.
4
- //
5
- // This software is the confidential and proprietary information
6
- // of ACI Worldwide Inc ("Confidential Information"). You shall
7
- // not disclose such Confidential Information and shall use it
8
- // only in accordance with the terms of the license agreement
9
- // you entered with ACI Worldwide Inc.
10
- //
11
-
12
- #import <Foundation/Foundation.h>
13
-
14
- /**
15
- Class to encapsulate shopper’s card details that have been tokenized.
16
- */
17
-
18
- NS_ASSUME_NONNULL_BEGIN
19
- @interface OPPCard : NSObject
20
-
21
- /// @name Properties
22
-
23
- /** Name of card holder. */
24
- @property (nonatomic, copy) NSString *holder;
25
-
26
- /** The last 4 digits of the card number. */
27
- @property (nonatomic, copy) NSString *last4Digits;
28
-
29
- /** The card’s expiration month. */
30
- @property (nonatomic, copy) NSString *expiryMonth;
31
-
32
- /** The card’s expiration year. */
33
- @property (nonatomic, copy) NSString *expiryYear;
34
-
35
- /// @name Initialization
36
-
37
- /// :nodoc:
38
- - (instancetype)init NS_UNAVAILABLE;
39
-
40
- /**
41
- Creates an `OPPCard` object from JSON.
42
- @param JSON A dictionary with parameters received from the Server.
43
- @return Returns an `OPPCard` object, or `nil` if JSON contains invalid values.
44
- */
45
- + (nullable instancetype)cardFromJSON:(NSDictionary *)JSON;
46
-
47
- /**
48
- Creates an `OPPCard` object with the provided values.
49
- @param holder Name of card holder.
50
- @param last4Digits The last 4 digits of the card number.
51
- @param expiryMonth The card’s expiration month.
52
- @param expiryYear The card’s expiration year.
53
- @return Returns an `OPPCard` object, or `nil` if parameters are empty.
54
- */
55
- + (nullable instancetype)cardWithHolder:(nullable NSString *)holder last4Digits:(NSString *)last4Digits expiryMonth:(NSString *)expiryMonth expiryYear:(NSString *)expiryYear;
56
-
57
- /**
58
- Creates an `OPPCard` object with the provided values.
59
- @param holder Name of card holder.
60
- @param last4Digits The last 4 digits of the card number.
61
- @param expiryMonth The card’s expiration month.
62
- @param expiryYear The card’s expiration year.
63
- @return Returns an `OPPCard` object, or `nil` if parameters are empty.
64
- */
65
- - (nullable instancetype)initWithHolder:(nullable NSString *)holder last4Digits:(NSString *)last4Digits expiryMonth:(NSString *)expiryMonth expiryYear:(NSString *)expiryYear NS_DESIGNATED_INITIALIZER;
66
-
67
- @end
68
- NS_ASSUME_NONNULL_END
@@ -1,251 +0,0 @@
1
- //
2
- // Copyright (c) 2019 by ACI Worldwide, Inc.
3
- // All rights reserved.
4
- //
5
- // This software is the confidential and proprietary information
6
- // of ACI Worldwide Inc ("Confidential Information"). You shall
7
- // not disclose such Confidential Information and shall use it
8
- // only in accordance with the terms of the license agreement
9
- // you entered with ACI Worldwide Inc.
10
- //
11
-
12
- @import Foundation;
13
- #import "OPPPaymentParams.h"
14
-
15
- /**
16
- Class to represent a set of card parameters needed for performing an e-commerce card transaction.
17
-
18
- It offers сonvenience methods for checking if the number is valid, i.e. if it passes the Luhn check and can be assigned to one of the major card companies.
19
-
20
- After getting an authorization for the transaction the parameters are masked in accordance to PCI PA DSS requirements.
21
- */
22
-
23
- NS_ASSUME_NONNULL_BEGIN
24
- @interface OPPCardPaymentParams : OPPPaymentParams
25
-
26
- /// @name Initialization
27
-
28
- /// :nodoc:
29
- - (instancetype)initWithCheckoutID:(NSString *)checkoutID paymentBrand:(NSString *)paymentBrand error:(NSError * _Nullable __autoreleasing *)error NS_UNAVAILABLE;
30
-
31
- /**
32
- Creates an object representing a card transaction.
33
-
34
- @param checkoutID The checkout ID of the transaction. Must be not `nil` or empty.
35
- @param paymentBrand The payment brand of the card.
36
- @param holder The name of the card holder.
37
- @param number The card number of the transaction.
38
- @param expiryYear The expiration year. It is expected in the format `YYYY`.
39
- @param expiryMonth The expiration month of the card. It is expected in the format `MM`.
40
- @param CVV The CVV code associated with the card. Set to `nil` if CVV is not required.
41
- @param error The error that occurred while validating payment parameters. See code attribute (`OPPErrorCode`) and `NSLocalizedDescription` to identify the reason of failure.
42
- @return Returns an object representing a card transaction, and `nil` if parameters are invalid.
43
- */
44
- + (nullable instancetype)cardPaymentParamsWithCheckoutID:(NSString *)checkoutID paymentBrand:(NSString *)paymentBrand holder:(nullable NSString *)holder number:(NSString *)number expiryMonth:(nullable NSString *)expiryMonth expiryYear:(nullable NSString *)expiryYear CVV:(nullable NSString *)CVV error:(NSError * _Nullable *)error;
45
-
46
- /**
47
- Creates an object representing a card transaction without specifying a brand.
48
- Use it only with BIP settings 'automatic brand detection' activated.
49
-
50
- @param checkoutID The checkout ID of the transaction. Must be not `nil` or empty.
51
- @param holder The name of the card holder.
52
- @param number The card number of the transaction.
53
- @param expiryYear The expiration year. It is expected in the format `YYYY`.
54
- @param expiryMonth The expiration month of the card. It is expected in the format `MM`.
55
- @param CVV The CVV code associated with the card. Set to `nil` if CVV is not required.
56
- @param error The error that occurred while validating payment parameters. See code attribute (`OPPErrorCode`) and `NSLocalizedDescription` to identify the reason of failure.
57
- @return Returns an object representing a card transaction, and `nil` if parameters are invalid.
58
- */
59
- + (nullable instancetype)cardPaymentParamsWithCheckoutID:(NSString *)checkoutID holder:(nullable NSString *)holder number:(NSString *)number expiryMonth:(nullable NSString *)expiryMonth expiryYear:(nullable NSString *)expiryYear CVV:(nullable NSString *)CVV error:(NSError * _Nullable *)error;
60
-
61
- /**
62
- Creates an object representing a card transaction.
63
- @param checkoutID The checkout ID of the transaction. Must be not `nil` or empty.
64
- @param paymentBrand The payment brand of the card.
65
- @param holder The name of the cardholder.
66
- @param number The card number of the transaction.
67
- @param expiryYear The expiration year. It is expected in the format `YYYY`.
68
- @param expiryMonth The expiration month of the card. It is expected in the format `MM`.
69
- @param CVV The CVV code associated with the card. Set to `nil` if CVV is not required.
70
- @param error The error that occurred while validating payment parameters. See code attribute (`OPPErrorCode`) and `NSLocalizedDescription` to identify the reason of failure.
71
- @return Returns an object representing a card transaction, and `nil` if parameters are invalid.
72
- */
73
- - (nullable instancetype)initWithCheckoutID:(NSString *)checkoutID paymentBrand:(NSString *)paymentBrand holder:(nullable NSString *)holder number:(NSString *)number expiryMonth:(nullable NSString *)expiryMonth expiryYear:(nullable NSString *)expiryYear CVV:(nullable NSString *)CVV error:(NSError * _Nullable *)error NS_DESIGNATED_INITIALIZER;
74
-
75
- /// @name Properties
76
-
77
- /** Holder of the card account. The length must be greater than 3 characters and less then 128 character. */
78
- @property (nonatomic, copy, readonly) NSString *holder;
79
-
80
- /** The card number. It may contain spaces `" "` and dashes `"-"`. */
81
- @property (nonatomic, copy, readonly) NSString *number;
82
-
83
- /** The card expiry month in the format `MM`. */
84
- @property (nonatomic, copy, readonly) NSString *expiryMonth;
85
-
86
- /** The card expiry year in the format `YYYY`. */
87
- @property (nonatomic, copy, readonly) NSString *expiryYear;
88
-
89
- /** The CVV code found on the card. This is needed for e-commerce transactions. */
90
- @property (nonatomic, copy, readonly) NSString *CVV;
91
-
92
- /** The customer's country code. */
93
- @property (nonatomic, copy) NSString *countryCode;
94
-
95
- /** The customer's mobile number. */
96
- @property (nonatomic, copy) NSString *mobilePhone;
97
-
98
- /** Default is `NO`. If `YES`, the payment information will be stored for future use. */
99
- @property (nonatomic, getter=isTokenizationEnabled) BOOL tokenizationEnabled;
100
-
101
- /** The number of installments the payment should be split into. */
102
- @property (nonatomic, copy) NSNumber *numberOfInstallments;
103
-
104
- /// @name Parameter Checks
105
-
106
- /**
107
- Checks if the holder name is filled with sufficient data to perform a transaction.
108
-
109
- @param holder Holder of the card account.
110
- @return `YES` if the holder name length greater than 3 characters and less than 128 character.
111
- */
112
- + (BOOL)isHolderValid:(NSString *)holder;
113
-
114
- /**
115
- Checks if the card number is filled with sufficient data to perform a transaction.
116
-
117
- @param number Card number.
118
- @param luhnCheck Set to `YES` if number should pass Luhn test http://en.wikipedia.org/wiki/Luhn_algorithm.
119
- @return `YES` if the number consists of 10-19 digits and passes luhn test, `NO` if it doesn't.
120
- */
121
- + (BOOL)isNumberValid:(NSString *)number luhnCheck:(BOOL)luhnCheck;
122
-
123
- /**
124
- Checks if the card expiry month is filled with sufficient data to perform a transaction.
125
-
126
- @param expiryMonth The expiry month of the card.
127
- @return `YES` if the card expiry month is in the format `MM`.
128
- */
129
- + (BOOL)isExpiryMonthValid:(NSString *)expiryMonth;
130
-
131
- /**
132
- Checks if the card expiry year is filled with sufficient data to perform a transaction.
133
-
134
- @param expiryYear The expiry year of the card.
135
- @return `YES` if the card expiry year is in the format `YYYY`.
136
- */
137
- + (BOOL)isExpiryYearValid:(NSString *)expiryYear;
138
-
139
- /**
140
- Checks if the country code is filled with sufficient data to perform a transaction.
141
-
142
- @param countryCode The country code.
143
- @return `YES` if the country code contains digits only.
144
- */
145
- + (BOOL)isCountryCodeValid:(NSString *)countryCode;
146
-
147
- /**
148
- Checks if the mobile phone is filled with sufficient data to perform a transaction.
149
-
150
- @param mobilePhone The mobile phone number.
151
- @return `YES` if the mobile phone number contains digits only.
152
- */
153
- + (BOOL)isMobilePhoneValid:(NSString *)mobilePhone;
154
-
155
- /**
156
- Checks if the month and year have been set and whether or not card is expired.
157
-
158
- @param month The expiry month of the card.
159
- @param year The expiry year of the card.
160
- @return `YES` if the month or the year is expired. `NO` if the card is not expired yet.
161
- */
162
- + (BOOL)isExpiredWithExpiryMonth:(NSString *)month andYear:(NSString *)year;
163
-
164
- /**
165
- Checks if the card CVV is filled with sufficient data to perform a transaction.
166
-
167
- @param CVV The card security code or CVV.
168
- @return `YES` if 3,4-digit number is provided.
169
- */
170
- + (BOOL)isCvvValid:(NSString *)CVV;
171
-
172
- @end
173
-
174
- /// Deprecated methods
175
- @interface OPPCardPaymentParams (Deprecated)
176
-
177
- /**
178
- Creates an object representing a card transaction.
179
-
180
- @param checkoutID The checkout ID of the transaction. Must be not `nil` or empty.
181
- @param brand The brand of the card.
182
- @param holder The name of the card holder.
183
- @param number The card number of the transaction.
184
- @param expiryYear The expiration year. It is expected in the format `YYYY`.
185
- @param expiryMonth The expiration month of the card. It is expected in the format `MM`.
186
- @param CVV The CVV code associated with the card. Set to `nil` if CVV is not required.
187
- @param error The error that occurred while validating payment parameters. See code attribute (`OPPErrorCode`) and `NSLocalizedDescription` to identify the reason of failure.
188
- @return Returns an object representing a card transaction, and `nil` if parameters are invalid.
189
- @warning **Deprecated:** Use `+cardPaymentParamsWithCheckoutID:paymentBrand:holder:number:expiryMonth:expiryYear:CVV:error:` instead.
190
- */
191
- + (nullable instancetype)cardPaymentParamsWithCheckoutID:(NSString *)checkoutID brand:(OPPPaymentParamsBrand)brand holder:(NSString *)holder number:(NSString *)number expiryMonth:(NSString *)expiryMonth expiryYear:(NSString *)expiryYear CVV:(nullable NSString *)CVV error:(NSError **)error DEPRECATED_MSG_ATTRIBUTE("- Use +cardPaymentParamsWithCheckoutID:paymentBrand:holder:number:expiryMonth:expiryYear:CVV:error: instead.");
192
-
193
- /**
194
- Creates an object representing a card transaction.
195
-
196
- @param checkoutID The checkout ID of the transaction. Must be not `nil` or empty.
197
- @param brand The brand of the card.
198
- @param holder The name of the cardholder.
199
- @param number The card number of the transaction.
200
- @param expiryYear The expiration year. It is expected in the format `YYYY`.
201
- @param expiryMonth The expiration month of the card. It is expected in the format `MM`.
202
- @param CVV The CVV code associated with the card. Set to `nil` if CVV is not required.
203
- @param error The error that occurred while validating payment parameters. See code attribute (`OPPErrorCode`) and `NSLocalizedDescription` to identify the reason of failure.
204
- @return Returns an object representing a card transaction, and `nil` if parameters are invalid.
205
- @warning **Deprecated:** Use `-initWithCheckoutID:paymentBrand:holder:number:expiryMonth:expiryYear:CVV:error:` instead.
206
- */
207
- - (nullable instancetype)initWithCheckoutID:(NSString *)checkoutID brand:(OPPPaymentParamsBrand)brand holder:(NSString *)holder number:(NSString *)number expiryMonth:(NSString *)expiryMonth expiryYear:(NSString *)expiryYear CVV:(nullable NSString *)CVV error:(NSError **)error DEPRECATED_MSG_ATTRIBUTE("- Use -initWithCheckoutID:paymentBrand:holder:number:expiryMonth:expiryYear:CVV:error: instead.");
208
-
209
- /**
210
- Checks if the number passes the Luhn Test http://en.wikipedia.org/wiki/Luhn_algorithm.
211
-
212
- @param number Card number.
213
- @param brand The brand of the card.
214
- @return `YES` if the number passes the Luhn test and brand check, `NO` if it doesn't.
215
- @warning **Deprecated:** Use `+isNumberValid:luhnCheck:` instead.
216
- */
217
- + (BOOL)isNumberValid:(nonnull NSString *)number forBrand:(OPPPaymentParamsBrand)brand DEPRECATED_MSG_ATTRIBUTE("- Use +isNumberValid:luhnCheck: instead.");
218
-
219
- /**
220
- Checks if the card CVV is filled with sufficient data to perform a transaction.
221
-
222
- @param CVV The card security code or CVV.
223
- @param brand The brand of the card.
224
- @return `YES` if the card CVV length greater than 3 characters and less than 4 characters depends on card brand.
225
- @warning **Deprecated:** Use `+isCvvValid:` instead.
226
- */
227
- + (BOOL)isCvvValid:(NSString *)CVV forBrand:(OPPPaymentParamsBrand)brand DEPRECATED_MSG_ATTRIBUTE("- Use +isCvvValid: instead.");
228
-
229
- /**
230
- Checks if the card CVV is filled with sufficient data to perform a transaction.
231
-
232
- @param CVV The card security code or CVV.
233
- @param paymentBrand The payment brand of the card.
234
- @return `YES` if the card CVV length greater than 3 characters and less than 4 characters depends on card brand.
235
- @warning **Deprecated:** Use `+isCvvValid:` instead.
236
- */
237
- + (BOOL)isCvvValid:(NSString *)CVV forPaymentBrand:(NSString *)paymentBrand DEPRECATED_MSG_ATTRIBUTE("- Use +isCvvValid: instead.");
238
-
239
- /**
240
- Checks if the number passes the Luhn Test http://en.wikipedia.org/wiki/Luhn_algorithm
241
-
242
- @param number Card number.
243
- @param paymentBrand The payment brand of the card.
244
- @return `YES` if the number passes the Luhn test and brand check, `NO` if it doesn't.
245
- @warning **Deprecated:** Use `+isNumberValid:luhnCheck:` instead.
246
- */
247
- + (BOOL)isNumberValid:(NSString *)number forPaymentBrand:(NSString *)paymentBrand DEPRECATED_MSG_ATTRIBUTE("- Use +isNumberValid:luhnCheck: instead.");
248
-
249
-
250
- @end
251
- NS_ASSUME_NONNULL_END