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,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
@@ -1,130 +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
- @class OPPToken;
14
- @class OPPPaymentBrandsConfig;
15
-
16
- /** Class to encapsulate the parameters related to the checkout. */
17
-
18
- NS_ASSUME_NONNULL_BEGIN
19
- @interface OPPCheckoutInfo : NSObject
20
-
21
- /// @name Properties
22
-
23
- /** The amount of the transaction in the specified currency. */
24
- @property (nonatomic) NSDecimalNumber *amount;
25
-
26
- /** ISO 4217 currency code. */
27
- @property (nonatomic, copy) NSString *currencyCode;
28
-
29
- /** Tokens related to the checkout. */
30
- @property (nonatomic, copy, nullable) NSArray<OPPToken *> *tokens;
31
-
32
- /** Brand configuration parameters from the Server. */
33
- @property (nonatomic, nullable) OPPPaymentBrandsConfig *paymentBrandsConfig;
34
-
35
- /** The endpoint where the transaction will be sent to. */
36
- @property (nonatomic, copy) NSString *endpoint;
37
-
38
- /** Relative path to get status of transaction. */
39
- @property (nonatomic, copy) NSString *resourcePath;
40
-
41
- /** The merchant IDs related to Klarna Invoice and Klarna Installments. */
42
- @property (nonatomic, copy, nullable) NSArray<NSString *> *klarnaMerchantIDs;
43
-
44
- /** Shows if ReD Shield Device Id collecting is enabled or disabled. */
45
- @property (nonatomic) BOOL collectRedShieldDeviceId;
46
-
47
- /// @name Initialization
48
-
49
- /**
50
- Creates checkout info object from the JSON that can be received from the Server by checkout ID.
51
- @param JSON A dictionary with parameters received from the Server.
52
- @param error An error if JSON is invalid.
53
- @return Returns an `OPPCheckoutInfo` object, or `nil` if JSON is invalid.
54
- */
55
- + (nullable instancetype)checkoutInfoFromJSON:(NSDictionary *)JSON error:(NSError * _Nullable *)error;
56
-
57
- /**
58
- Creates checkout info object with the provided values.
59
- @param amount The amount of the transaction in the specified currency.
60
- @param currencyCode ISO 4217 currency code.
61
- @param tokens Tokens related to the checkout.
62
- @param paymentBrandsConfig Brand configuration parameters from the Server.
63
- @param klarnaMerchantIDs Klarna merchant IDs.
64
- @return an `OPPCheckoutInfo` object, or `nil` if parameters are invalid.
65
- */
66
- + (nullable instancetype)checkoutInfoWithAmount:(NSDecimalNumber *)amount
67
- currencyCode:(NSString *)currencyCode
68
- tokens:(nullable NSArray<OPPToken *> *)tokens
69
- paymentBrandsConfig:(nullable OPPPaymentBrandsConfig *)paymentBrandsConfig
70
- klarnaMerchantIDs:(nullable NSArray<NSString *> *)klarnaMerchantIDs;
71
-
72
- /**
73
- Creates checkout info object with the provided values.
74
- @param amount The amount of the transaction in the specified currency.
75
- @param currencyCode ISO 4217 currency code.
76
- @param tokens Tokens related to the checkout.
77
- @param paymentBrandsConfig Brand configuration parameters from the Server.
78
- @param klarnaMerchantIDs Klarna merchant IDs.
79
- @return an `OPPCheckoutInfo` object, or `nil` if parameters are invalid.
80
- */
81
- - (nullable instancetype)initWithAmount:(NSDecimalNumber *)amount
82
- currencyCode:(NSString *)currencyCode
83
- tokens:(nullable NSArray<OPPToken *> *)tokens
84
- paymentBrandsConfig:(nullable OPPPaymentBrandsConfig *)paymentBrandsConfig
85
- klarnaMerchantIDs:(nullable NSArray<NSString *> *)klarnaMerchantIDs;
86
-
87
- @end
88
-
89
- /// Deprecated methods
90
- @interface OPPCheckoutInfo (Deprecated)
91
-
92
- /**
93
- Creates checkout info object with the provided values.
94
- @param amount The amount of the transaction in the specified currency.
95
- @param currencyCode ISO 4217 currency code.
96
- @param tokens Tokens related to the checkout.
97
- @param paymentBrandsConfig Brand configuration parameters from the Server.
98
- @return an `OPPCheckoutInfo` object, or `nil` if parameters are invalid.
99
-
100
- @warning **Deprecated:** Use `+checkoutInfoWithAmount:currencyCode:tokens:paymentBrandsConfig:klarnaMerchantIDs:` instead.
101
- */
102
- + (nullable instancetype)checkoutInfoWithAmount:(NSDecimalNumber *)amount
103
- currencyCode:(NSString *)currencyCode
104
- tokens:(nullable NSArray<OPPToken *> *)tokens
105
- paymentBrandsConfig:(nullable OPPPaymentBrandsConfig *)paymentBrandsConfig DEPRECATED_MSG_ATTRIBUTE("- Use +checkoutInfoWithAmount:currencyCode:tokens:paymentBrandsConfig:klarnaMerchantIDs: instead.");
106
-
107
- /**
108
- Creates checkout info object with the provided values.
109
- @param amount The amount of the transaction in the specified currency.
110
- @param currencyCode ISO 4217 currency code.
111
- @param tokens Tokens related to the checkout.
112
- @param paymentBrandsConfig Brand configuration parameters from the Server.
113
- @return an `OPPCheckoutInfo` object, or `nil` if parameters are invalid.
114
- @warning **Deprecated:** Use `-initWithAmount:currencyCode:tokens:paymentBrandsConfig:klarnaMerchantIDs:` instead.
115
- */
116
- - (nullable instancetype)initWithAmount:(NSDecimalNumber *)amount
117
- currencyCode:(NSString *)currencyCode
118
- tokens:(nullable NSArray<OPPToken *> *)tokens
119
- paymentBrandsConfig:(nullable OPPPaymentBrandsConfig *)paymentBrandsConfig DEPRECATED_MSG_ATTRIBUTE("- Use -initWithAmount:currencyCode:tokens:paymentBrandsConfig:klarnaMerchantIDs: instead.");
120
-
121
- /**
122
- Creates checkout info object from the JSON that can be received from the Server by checkout ID.
123
- @param JSON A dictionary with parameters received from the Server.
124
- @return Returns an `OPPCheckoutInfo` object, or `nil` if JSON is invalid.
125
- @warning **Deprecated:** Use `+checkoutInfoFromJSON:error:` instead
126
- */
127
- + (nullable instancetype)checkoutInfoFromJSON:(NSDictionary *)JSON DEPRECATED_MSG_ATTRIBUTE("- Use +checkoutInfoFromJSON:error: instead.");
128
-
129
- @end
130
- NS_ASSUME_NONNULL_END
@@ -1,51 +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
- __deprecated_msg("The OPPCheckoutPaymentMethod class is formally deprecated. Use string values for the payment brands.")
13
- /**
14
- An enumeration for the possible payment methods.
15
-
16
- @warning **Deprecated:** The `OPPCheckoutPaymentMethod` class is formally deprecated. Use string values for the payment brands.
17
- */
18
- typedef NS_ENUM(NSInteger, OPPCheckoutPaymentMethod) {
19
- /// VISA payment system.
20
- OPPCheckoutPaymentMethodVISA __deprecated_enum_msg("The attribute is no longer used. Please use string value \"VISA\" instead of."),
21
- /// MasterCard payment system.
22
- OPPCheckoutPaymentMethodMasterCard __deprecated_enum_msg("The attribute is no longer used. Please use string value \"MASTER\" instead of."),
23
- /// AMEX payment system.
24
- OPPCheckoutPaymentMethodAMEX __deprecated_enum_msg("The attribute is no longer used. Please use string value \"AMEX\" instead of."),
25
- /// Diners Club payment system.
26
- OPPCheckoutPaymentMethodDinersClub __deprecated_enum_msg("The attribute is no longer used. Please use string value \"DINERS\" instead of."),
27
- /// Discover payment system.
28
- OPPCheckoutPaymentMethodDiscover __deprecated_enum_msg("The attribute is no longer used. Please use string value \"DISCOVER\" instead of."),
29
- /// UnionPay payment system.
30
- OPPCheckoutPaymentMethodUnionPay __deprecated_enum_msg("The attribute is no longer used. Please use string value \"UNIONPAY\" instead of."),
31
- /// JCB payment system.
32
- OPPCheckoutPaymentMethodJCB __deprecated_enum_msg("The attribute is no longer used. Please use string value \"JCB\" instead of."),
33
- /// SEPA Direct Debit payment system.
34
- OPPCheckoutPaymentMethodDirectDebitSEPA __deprecated_enum_msg("The attribute is no longer used. Please use string value \"DIRECTDEBIT_SEPA\" instead of."),
35
- /// BOLETO payment system.
36
- OPPCheckoutPaymentMethodBOLETO __deprecated_enum_msg("The attribute is no longer used. Please use string value \"BOLETO\" instead of."),
37
- /// Apple Pay payment system.
38
- OPPCheckoutPaymentMethodApplePay __deprecated_enum_msg("The attribute is no longer used. Please use string value \"APPLEPAY\" instead of."),
39
- /// SOFORT Banking payment system.
40
- OPPCheckoutPaymentMethodSOFORTBanking __deprecated_enum_msg("The attribute is no longer used. Please use string value \"SOFORTUEBERWEISUNG\" instead of."),
41
- /// PayPal payment system.
42
- OPPCheckoutPaymentMethodPayPal __deprecated_enum_msg("The attribute is no longer used. Please use string value \"PAYPAL\" instead of."),
43
- /// Alipay payment system.
44
- OPPCheckoutPaymentMethodAlipay __deprecated_enum_msg("The attribute is no longer used. Please use string value \"ALIPAY\" instead of."),
45
- /// China UnionPay (UPOP) payment system.
46
- OPPCheckoutPaymentMethodChinaUnionPay __deprecated_enum_msg("The attribute is no longer used. Please use string value \"CHINAUNIONPAY\" instead of."),
47
- /// IDEAL payment system.
48
- OPPCheckoutPaymentMethodIDEAL __deprecated_enum_msg("The attribute is no longer used. Please use string value \"IDEAL\" instead of."),
49
- /// Unsupported payment system.
50
- OPPCheckoutPaymentMethodUnsupported __deprecated_enum_msg("The attribute is no longer used.")
51
- };
@@ -1,197 +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
- @class OPPPaymentProvider;
15
- @class OPPTransaction;
16
- @class OPPCheckoutSettings;
17
- @class OPPCheckoutProvider;
18
- @class OPPApplePayRequestAuthorizationResult;
19
- @class OPPApplePayRequestShippingContactUpdate;
20
- @class OPPApplePayRequestShippingMethodUpdate;
21
- @protocol OPPCheckoutProviderDelegate;
22
- #import "OPPCheckoutPaymentMethod.h"
23
-
24
- NS_ASSUME_NONNULL_BEGIN
25
-
26
- /**
27
- A protocol for additional checkout callbacks.
28
- */
29
- @protocol OPPCheckoutProviderDelegate <NSObject>
30
- @optional
31
-
32
- /// @name Validation methods
33
-
34
- /**
35
- Called before submitting a transaction to the Server.
36
- Use this callback to recreate checkout for specific payment brand or abort transaction.
37
- @param checkoutProvider The instance of `OPPCheckoutProvider` that is calling delegate method.
38
- @param transaction The transaction with masked sensitive data.
39
- @param completion The completion block you should call to continue submitting transaction or abort it. In case of abortion checkout will be closed with error `OPPErrorCodeTransactionAborted`.
40
- */
41
- - (void)checkoutProvider:(OPPCheckoutProvider *)checkoutProvider continueSubmitting:(OPPTransaction *)transaction completion:(void (^)(NSString * _Nullable checkoutID, BOOL abort))completion;
42
-
43
- /**
44
- Called when card holder text field was changed or pressed Pay button on the payment detail view.
45
- Use this callback to override the internal card holder validation.
46
- @param checkoutProvider The instance of `OPPCheckoutProvider` that is calling delegate method.
47
- @param cardHolder The card holder value.
48
- @return `YES` if the card holder is valid, otherwise `NO`.
49
- */
50
- - (BOOL)checkoutProvider:(OPPCheckoutProvider *)checkoutProvider validateCardHolder:(nullable NSString *)cardHolder;
51
-
52
- /// @name Safari services methods
53
-
54
- /**
55
- Called when the user taps the 'Done' button on SFSafariViewController.
56
- @param checkoutProvider The instance of `OPPCheckoutProvider` that is calling delegate method.
57
- */
58
- - (void)checkoutProviderDidFinishSafariViewController:(OPPCheckoutProvider *)checkoutProvider;
59
-
60
- /// @name Apple Pay methods
61
-
62
- /**
63
- Called when a new shipping method was selected.
64
- The delegate must invoke the completion block with an updated array of `PKPaymentSummaryItem` objects.
65
- @param checkoutProvider The instance of `OPPCheckoutProvider` that is calling delegate method.
66
- @param shippingMethod The shipping method for this transaction.
67
- @param completion The completion block you should call to update the shipping costs based on the shipping method.
68
- */
69
- - (void)checkoutProvider:(OPPCheckoutProvider *)checkoutProvider applePayDidSelectShippingMethod:(PKShippingMethod *)shippingMethod handler:(void (^)(OPPApplePayRequestShippingMethodUpdate *update))completion;
70
-
71
- /**
72
- Called when a new shipping address was selected.
73
- The delegate must invoke the completion block with an updated array of `PKPaymentSummaryItem` objects.
74
- @param checkoutProvider The instance of `OPPCheckoutProvider` that is calling delegate method.
75
- @param contact The contact information needed for shipping.
76
- @param completion The completion block you should call to update the shipping address.
77
- */
78
- - (void)checkoutProvider:(OPPCheckoutProvider *)checkoutProvider applePayDidSelectShippingContact:(PKContact *)contact handler:(void (^)(OPPApplePayRequestShippingContactUpdate *update))completion;
79
-
80
-
81
- /**
82
- Called when the payment request was authorized.
83
- The delegate must invoke the completion block with an appropriate authorization status.
84
- @param checkoutProvider The instance of `OPPCheckoutProvider` that is calling delegate method.
85
- @param payment The result of authorizing a payment request and contains payment information, encrypted in the payment token.
86
- @param completion The completion block you should call with an appropriate authorization status.
87
- */
88
- - (void)checkoutProvider:(OPPCheckoutProvider *)checkoutProvider applePayDidAuthorizePayment:(PKPayment *)payment handler:(void (^)(OPPApplePayRequestAuthorizationResult *result))completion;
89
-
90
- @end
91
-
92
-
93
- /**
94
- Abstract class for displaying an in-App payment page.
95
- */
96
- @interface OPPCheckoutProvider : NSObject
97
-
98
- /// @name Properties
99
-
100
- /**
101
- Checkout provider delegate.
102
- */
103
- @property (nonatomic, weak) id<OPPCheckoutProviderDelegate> delegate;
104
-
105
- /// @name Initialization
106
-
107
- /**
108
- Factory method to generate an `OPPCheckoutProvider` used for displaying an in-App payment pages.
109
- @param provider The OPPPaymentProvider which is used for performing the transaction once all the data from the user is collected.
110
- @param checkoutID The checkout Id of the transaction. Must be not `nil` or empty.
111
- @param settings The `OPPCheckoutSettings` used for these payment pages. These settings are provided to customize the appearance and functionality of the payment pages. If `nil`, default settings will be created.
112
-
113
- @return Returns an `OPPCheckoutProvider` for displaying in-App payment pages. Returns `nil` if `provider` or `checkoutID` are not set.
114
- */
115
- + (nullable instancetype)checkoutProviderWithPaymentProvider:(OPPPaymentProvider *)provider checkoutID:(NSString *)checkoutID settings:(nullable OPPCheckoutSettings *)settings;
116
-
117
- /**
118
- Designated initializer method to generate an `OPPCheckoutProvider` used for displaying an in-App payment pages.
119
- @param provider The OPPPaymentProvider which is used for performing the transaction once all the data from the user is collected.
120
- @param checkoutID The checkout Id of the transaction. Must be not `nil` or empty.
121
- @param settings The `OPPCheckoutSettings` used for these payment pages. These settings are provided to customize the appearance and functionality of the payment pages. If `nil`, default settings will be created.
122
- @return Returns an `OPPCheckoutProvider` for displaying in-App payment pages. Returns `nil` if `provider` or `checkoutID` are not set.
123
- */
124
- - (nullable instancetype)initWithPaymentProvider:(OPPPaymentProvider *)provider checkoutID:(NSString *)checkoutID settings:(nullable OPPCheckoutSettings *)settings;
125
-
126
- /// @name Presenting checkout
127
-
128
- /**
129
- Opens an in-App payment page for collecting user input and submitting a transaction. First the list of payment methods from the checkout settings will be displayed.
130
- @param completionHandler A block executed when the transaction is completed. You need to send the request to your server to get the transaction status.
131
- @param cancelHandler A block executed if the user closes the payment page prematurely.
132
- */
133
- - (void)presentCheckoutForSubmittingTransactionCompletionHandler:(void (^)(OPPTransaction * _Nullable transaction, NSError * _Nullable error))completionHandler
134
- cancelHandler:(void (^ _Nullable )(void))cancelHandler;
135
-
136
- /**
137
- Opens an in-App payment page for collecting user input and submitting a transaction.
138
- Payment form for the choosen payment method will be opened. If no user input is required in app (e.g. PayPal), shopper will be redirected directly to the issuer web page.
139
- @param paymentBrand The payment brand for transaction.
140
- @param loadingHandler A block executed whenever SDK sends request to the server or receives the response. You can start or stop loading animation based on `inProgress` parameter.
141
- @param completionHandler A block executed when the transaction is completed. You need to send the request to your server to get the transaction status.
142
- @param cancelHandler A block executed if the user closes the payment page prematurely.
143
- */
144
- - (void)presentCheckoutWithPaymentBrand:(NSString *)paymentBrand
145
- loadingHandler:(void (^ _Nullable )(BOOL inProgress))loadingHandler
146
- completionHandler:(void (^)(OPPTransaction * _Nullable transaction, NSError * _Nullable error))completionHandler
147
- cancelHandler:(void (^ _Nullable )(void))cancelHandler;
148
-
149
- /**
150
- Closes the in-App payment page. The delegate is not informed if this method is being called.
151
- @param animated Specifies whether the payment page should be dismissed using an animation or immediately without an animation.
152
- @param completion The completion handler, if provided, will be invoked after the checkout screen will be dismissed.
153
- */
154
- - (void)dismissCheckoutAnimated:(BOOL)animated completion: (void (^ __nullable)(void))completion;
155
-
156
- @end
157
-
158
- /// Deprecated methods
159
- @interface OPPCheckoutProvider (Deprecated)
160
-
161
- /**
162
- Opens an in-App payment page for collecting user input and submitting a transaction. First the list of payment methods from the checkout settings will be displayed.
163
- @param completionHandler A block executed when the transaction is completed. You need to send the request to your server to get the transaction status.
164
- @param paymentBrandSelectedHandler A block executed when the shopper selected payment brand. You need to obtain a new checkout Id if the selected payment brand requires another payment type and return the value to SDK or `nil` in case of error using completion block.
165
- @param cancelHandler A block executed if the user closes the payment page prematurely.
166
- @warning **Deprecated:** Use `-presentCheckoutForSubmittingTransactionCompletionHandler:cancelHandler:` instead. Use `-[OPPCheckoutProviderDelegate checkoutProvider:continueSubmitting:completion:]` instead of implementing `paymentBrandSelectedHandler`.
167
- */
168
- - (void)presentCheckoutForSubmittingTransactionCompletionHandler:(void (^)(OPPTransaction * _Nullable transaction, NSError * _Nullable error))completionHandler
169
- paymentBrandSelectedHandler:(void (^ _Nullable )(NSString * _Nonnull paymentBrand, void (^completion)(NSString * _Nullable checkoutID)))paymentBrandSelectedHandler
170
- cancelHandler:(void (^ _Nullable )(void))cancelHandler DEPRECATED_MSG_ATTRIBUTE("- Use -presentCheckoutForSubmittingTransactionCompletionHandler:cancelHandler: instead.");
171
-
172
- /**
173
- Opens an in-App payment page for collecting user input and submitting a transaction. First the list of payment methods from the checkout settings will be displayed.
174
- @param completionHandler A block executed when the transaction is completed. You need to send the request to your server to get the transaction status.
175
- @param paymentMethodSelectedHandler A block executed when the shopper selected payment brand. You need to obtain a new checkout Id if the selected payment brand requires another payment type and return the value to SDK or `nil` in case of error using completion block.
176
- @param cancelHandler A block executed if the user closes the payment page prematurely.
177
- @warning **Deprecated:** Use `-presentCheckoutForSubmittingTransactionCompletionHandler:paymentBrandSelectedHandler:cancelHandler:` instead
178
- */
179
- - (void)presentCheckoutForSubmittingTransactionCompletionHandler:(void (^)(OPPTransaction * _Nullable transaction, NSError * _Nullable error))completionHandler
180
- paymentMethodSelectedHandler:(void (^ _Nullable )(OPPCheckoutPaymentMethod paymentMethod, void (^completion)(NSString * _Nullable checkoutID)))paymentMethodSelectedHandler
181
- cancelHandler:(void (^ _Nullable )(void))cancelHandler DEPRECATED_MSG_ATTRIBUTE("- Use -presentCheckoutForSubmittingTransactionCompletionHandler:paymentBrandSelectedHandler:cancelHandler: instead.");
182
-
183
- /**
184
- Opens an in-App payment page for collecting user input and submitting a transaction.
185
- Payment form for the choosen payment method will be opened. If no user input is required in app (e.g. PayPal), shopper will be redirected directly to the issuer web page.
186
- @param paymentMethod The payment method for transaction.
187
- @param loadingHandler A block executed whenever SDK sends request to the server or receives the response. You can start or stop loading animation based on inProgress parameter.
188
- @param completionHandler A block executed when the transaction is completed. You need to send the request to your server to get the transaction status.
189
- @param cancelHandler A block executed if the user closes the payment page prematurely.
190
- @warning **Deprecated:** Use `-presentCheckoutWithPaymentBrand:loadingHandler:completionHandler:cancelHandler:` instead
191
- */
192
- - (void)presentCheckoutWithPaymentMethod:(OPPCheckoutPaymentMethod)paymentMethod
193
- loadingHandler:(void (^ _Nullable )(BOOL inProgress))loadingHandler
194
- completionHandler:(void (^)(OPPTransaction * _Nullable transaction, NSError * _Nullable error))completionHandler
195
- cancelHandler:(void (^ _Nullable )(void))cancelHandler DEPRECATED_MSG_ATTRIBUTE("- Use -presentCheckoutWithPaymentBrand:loadingHandler:completionHandler:cancelHandler: instead.");
196
- @end
197
- NS_ASSUME_NONNULL_END