react-native-hyperpay-sdk 0.1.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 (323) hide show
  1. package/LICENSE +21 -0
  2. package/OPPWAMobile-Resources.bundle/Info.plist +0 -0
  3. package/OPPWAMobile-Resources.bundle/Klarna.json +67 -0
  4. package/OPPWAMobile-Resources.bundle/OPPBrandCollectionViewCell.nib +0 -0
  5. package/OPPWAMobile-Resources.bundle/OPPCardDetailsViewController.nib +0 -0
  6. package/OPPWAMobile-Resources.bundle/OPPCardsTableViewCell.nib +0 -0
  7. package/OPPWAMobile-Resources.bundle/OPPCheckoutTextFieldView.nib +0 -0
  8. package/OPPWAMobile-Resources.bundle/OPPChinaUnionPayDetailsViewController.nib +0 -0
  9. package/OPPWAMobile-Resources.bundle/OPPDirectDebitDetailsViewController.nib +0 -0
  10. package/OPPWAMobile-Resources.bundle/OPPGiropayDetailsViewController.nib +0 -0
  11. package/OPPWAMobile-Resources.bundle/OPPIkanoDetailsViewController.nib +0 -0
  12. package/OPPWAMobile-Resources.bundle/OPPKlarnaDetailsViewController.nib +0 -0
  13. package/OPPWAMobile-Resources.bundle/OPPKlarnaTableViewCell.nib +0 -0
  14. package/OPPWAMobile-Resources.bundle/OPPListDetailsViewController.nib +0 -0
  15. package/OPPWAMobile-Resources.bundle/OPPMBWAYDetailsViewController.nib +0 -0
  16. package/OPPWAMobile-Resources.bundle/OPPPaymentFormHeaderView.nib +0 -0
  17. package/OPPWAMobile-Resources.bundle/OPPPaymentProcessingViewController.nib +0 -0
  18. package/OPPWAMobile-Resources.bundle/OPPPaymentSchemeTableViewCell.nib +0 -0
  19. package/OPPWAMobile-Resources.bundle/OPPPaymentSchemeViewController.nib +0 -0
  20. package/OPPWAMobile-Resources.bundle/OPPStorePaymentDetailsView.nib +0 -0
  21. package/OPPWAMobile-Resources.bundle/OPPTokenCollectionViewCell.nib +0 -0
  22. package/OPPWAMobile-Resources.bundle/OPPTokensTableViewCell.nib +0 -0
  23. package/OPPWAMobile-Resources.bundle/OPPTotalAmountView.nib/objects-11.0+.nib +0 -0
  24. package/OPPWAMobile-Resources.bundle/OPPTotalAmountView.nib/runtime.nib +0 -0
  25. package/OPPWAMobile-Resources.bundle/alipay.png +0 -0
  26. package/OPPWAMobile-Resources.bundle/alipay@2x.png +0 -0
  27. package/OPPWAMobile-Resources.bundle/alipay@3x.png +0 -0
  28. package/OPPWAMobile-Resources.bundle/amex.png +0 -0
  29. package/OPPWAMobile-Resources.bundle/amex@2x.png +0 -0
  30. package/OPPWAMobile-Resources.bundle/amex@3x.png +0 -0
  31. package/OPPWAMobile-Resources.bundle/applepay.png +0 -0
  32. package/OPPWAMobile-Resources.bundle/applepay@2x.png +0 -0
  33. package/OPPWAMobile-Resources.bundle/applepay@3x.png +0 -0
  34. package/OPPWAMobile-Resources.bundle/ar.lproj/OPPCheckout.strings +89 -0
  35. package/OPPWAMobile-Resources.bundle/arrow_down.png +0 -0
  36. package/OPPWAMobile-Resources.bundle/arrow_up.png +0 -0
  37. package/OPPWAMobile-Resources.bundle/boleto.png +0 -0
  38. package/OPPWAMobile-Resources.bundle/boleto@2x.png +0 -0
  39. package/OPPWAMobile-Resources.bundle/boleto@3x.png +0 -0
  40. package/OPPWAMobile-Resources.bundle/ca.lproj/OPPCheckout.strings +90 -0
  41. package/OPPWAMobile-Resources.bundle/camera_icon.png +0 -0
  42. package/OPPWAMobile-Resources.bundle/camera_icon@2x.png +0 -0
  43. package/OPPWAMobile-Resources.bundle/camera_icon@3x.png +0 -0
  44. package/OPPWAMobile-Resources.bundle/card.png +0 -0
  45. package/OPPWAMobile-Resources.bundle/card@2x.png +0 -0
  46. package/OPPWAMobile-Resources.bundle/card@3x.png +0 -0
  47. package/OPPWAMobile-Resources.bundle/cartebleue.png +0 -0
  48. package/OPPWAMobile-Resources.bundle/cartebleue@2x.png +0 -0
  49. package/OPPWAMobile-Resources.bundle/cartebleue@3x.png +0 -0
  50. package/OPPWAMobile-Resources.bundle/dankort.png +0 -0
  51. package/OPPWAMobile-Resources.bundle/dankort@2x.png +0 -0
  52. package/OPPWAMobile-Resources.bundle/dankort@3x.png +0 -0
  53. package/OPPWAMobile-Resources.bundle/de.lproj/OPPCheckout.strings +99 -0
  54. package/OPPWAMobile-Resources.bundle/diners.png +0 -0
  55. package/OPPWAMobile-Resources.bundle/diners@2x.png +0 -0
  56. package/OPPWAMobile-Resources.bundle/diners@3x.png +0 -0
  57. package/OPPWAMobile-Resources.bundle/directdebit_sepa.png +0 -0
  58. package/OPPWAMobile-Resources.bundle/directdebit_sepa@2x.png +0 -0
  59. package/OPPWAMobile-Resources.bundle/directdebit_sepa@3x.png +0 -0
  60. package/OPPWAMobile-Resources.bundle/discover.png +0 -0
  61. package/OPPWAMobile-Resources.bundle/discover@2x.png +0 -0
  62. package/OPPWAMobile-Resources.bundle/discover@3x.png +0 -0
  63. package/OPPWAMobile-Resources.bundle/en.lproj/OPPCheckout.strings +145 -0
  64. package/OPPWAMobile-Resources.bundle/es.lproj/OPPCheckout.strings +92 -0
  65. package/OPPWAMobile-Resources.bundle/eu-ES.lproj/OPPCheckout.strings +92 -0
  66. package/OPPWAMobile-Resources.bundle/fr-CA.lproj/OPPCheckout.strings +93 -0
  67. package/OPPWAMobile-Resources.bundle/fr.lproj/OPPCheckout.strings +93 -0
  68. package/OPPWAMobile-Resources.bundle/giropay.png +0 -0
  69. package/OPPWAMobile-Resources.bundle/giropay@2x.png +0 -0
  70. package/OPPWAMobile-Resources.bundle/giropay@3x.png +0 -0
  71. package/OPPWAMobile-Resources.bundle/gl-ES.lproj/OPPCheckout.strings +92 -0
  72. package/OPPWAMobile-Resources.bundle/ideal.png +0 -0
  73. package/OPPWAMobile-Resources.bundle/ideal@2x.png +0 -0
  74. package/OPPWAMobile-Resources.bundle/ideal@3x.png +0 -0
  75. package/OPPWAMobile-Resources.bundle/it.lproj/OPPCheckout.strings +94 -0
  76. package/OPPWAMobile-Resources.bundle/ja.lproj/OPPCheckout.strings +74 -0
  77. package/OPPWAMobile-Resources.bundle/jcb.png +0 -0
  78. package/OPPWAMobile-Resources.bundle/jcb@2x.png +0 -0
  79. package/OPPWAMobile-Resources.bundle/jcb@3x.png +0 -0
  80. package/OPPWAMobile-Resources.bundle/klarna.png +0 -0
  81. package/OPPWAMobile-Resources.bundle/klarna@2x.png +0 -0
  82. package/OPPWAMobile-Resources.bundle/klarna@3x.png +0 -0
  83. package/OPPWAMobile-Resources.bundle/klarna_detail_logo.png +0 -0
  84. package/OPPWAMobile-Resources.bundle/klarna_detail_logo@2x.png +0 -0
  85. package/OPPWAMobile-Resources.bundle/klarna_detail_logo@3x.png +0 -0
  86. package/OPPWAMobile-Resources.bundle/klarna_nl_agreement.png +0 -0
  87. package/OPPWAMobile-Resources.bundle/klarna_nl_agreement@2x.png +0 -0
  88. package/OPPWAMobile-Resources.bundle/klarna_nl_agreement@3x.png +0 -0
  89. package/OPPWAMobile-Resources.bundle/klarna_payments_billpay.png +0 -0
  90. package/OPPWAMobile-Resources.bundle/klarna_payments_billpay@2x.png +0 -0
  91. package/OPPWAMobile-Resources.bundle/klarna_payments_billpay@3x.png +0 -0
  92. package/OPPWAMobile-Resources.bundle/klarna_payments_paylater.png +0 -0
  93. package/OPPWAMobile-Resources.bundle/klarna_payments_paylater@2x.png +0 -0
  94. package/OPPWAMobile-Resources.bundle/klarna_payments_paylater@3x.png +0 -0
  95. package/OPPWAMobile-Resources.bundle/klarna_payments_sliceit.png +0 -0
  96. package/OPPWAMobile-Resources.bundle/klarna_payments_sliceit@2x.png +0 -0
  97. package/OPPWAMobile-Resources.bundle/klarna_payments_sliceit@3x.png +0 -0
  98. package/OPPWAMobile-Resources.bundle/mada.png +0 -0
  99. package/OPPWAMobile-Resources.bundle/mada@2x.png +0 -0
  100. package/OPPWAMobile-Resources.bundle/mada@3x.png +0 -0
  101. package/OPPWAMobile-Resources.bundle/maestro.png +0 -0
  102. package/OPPWAMobile-Resources.bundle/maestro@2x.png +0 -0
  103. package/OPPWAMobile-Resources.bundle/maestro@3x.png +0 -0
  104. package/OPPWAMobile-Resources.bundle/master.png +0 -0
  105. package/OPPWAMobile-Resources.bundle/master@2x.png +0 -0
  106. package/OPPWAMobile-Resources.bundle/master@3x.png +0 -0
  107. package/OPPWAMobile-Resources.bundle/masterdebit.png +0 -0
  108. package/OPPWAMobile-Resources.bundle/masterdebit@2x.png +0 -0
  109. package/OPPWAMobile-Resources.bundle/masterdebit@3x.png +0 -0
  110. package/OPPWAMobile-Resources.bundle/masterpass.png +0 -0
  111. package/OPPWAMobile-Resources.bundle/masterpass@2x.png +0 -0
  112. package/OPPWAMobile-Resources.bundle/masterpass@3x.png +0 -0
  113. package/OPPWAMobile-Resources.bundle/nl.lproj/OPPCheckout.strings +91 -0
  114. package/OPPWAMobile-Resources.bundle/paydirekt.png +0 -0
  115. package/OPPWAMobile-Resources.bundle/paydirekt@2x.png +0 -0
  116. package/OPPWAMobile-Resources.bundle/paydirekt@3x.png +0 -0
  117. package/OPPWAMobile-Resources.bundle/paypal.png +0 -0
  118. package/OPPWAMobile-Resources.bundle/paypal@2x.png +0 -0
  119. package/OPPWAMobile-Resources.bundle/paypal@3x.png +0 -0
  120. package/OPPWAMobile-Resources.bundle/paysafecard.png +0 -0
  121. package/OPPWAMobile-Resources.bundle/paysafecard@2x.png +0 -0
  122. package/OPPWAMobile-Resources.bundle/paysafecard@3x.png +0 -0
  123. package/OPPWAMobile-Resources.bundle/paytrail.png +0 -0
  124. package/OPPWAMobile-Resources.bundle/paytrail@2x.png +0 -0
  125. package/OPPWAMobile-Resources.bundle/paytrail@3x.png +0 -0
  126. package/OPPWAMobile-Resources.bundle/pf_karte_direct.png +0 -0
  127. package/OPPWAMobile-Resources.bundle/pf_karte_direct@2x.png +0 -0
  128. package/OPPWAMobile-Resources.bundle/pf_karte_direct@3x.png +0 -0
  129. package/OPPWAMobile-Resources.bundle/przelewy.png +0 -0
  130. package/OPPWAMobile-Resources.bundle/przelewy@2x.png +0 -0
  131. package/OPPWAMobile-Resources.bundle/przelewy@3x.png +0 -0
  132. package/OPPWAMobile-Resources.bundle/pt.lproj/OPPCheckout.strings +91 -0
  133. package/OPPWAMobile-Resources.bundle/ratenkauf.png +0 -0
  134. package/OPPWAMobile-Resources.bundle/ratenkauf@2x.png +0 -0
  135. package/OPPWAMobile-Resources.bundle/ratenkauf@3x.png +0 -0
  136. package/OPPWAMobile-Resources.bundle/ru.lproj/OPPCheckout.strings +91 -0
  137. package/OPPWAMobile-Resources.bundle/sibs_multibanco.png +0 -0
  138. package/OPPWAMobile-Resources.bundle/sibs_multibanco@2x.png +0 -0
  139. package/OPPWAMobile-Resources.bundle/sibs_multibanco@3x.png +0 -0
  140. package/OPPWAMobile-Resources.bundle/sofortueberweisung.png +0 -0
  141. package/OPPWAMobile-Resources.bundle/sofortueberweisung@2x.png +0 -0
  142. package/OPPWAMobile-Resources.bundle/sofortueberweisung@3x.png +0 -0
  143. package/OPPWAMobile-Resources.bundle/th.lproj/OPPCheckout.strings +91 -0
  144. package/OPPWAMobile-Resources.bundle/trustly.png +0 -0
  145. package/OPPWAMobile-Resources.bundle/trustly@2x.png +0 -0
  146. package/OPPWAMobile-Resources.bundle/trustly@3x.png +0 -0
  147. package/OPPWAMobile-Resources.bundle/unionpay.png +0 -0
  148. package/OPPWAMobile-Resources.bundle/unionpay@2x.png +0 -0
  149. package/OPPWAMobile-Resources.bundle/unionpay@3x.png +0 -0
  150. package/OPPWAMobile-Resources.bundle/version.plist +0 -0
  151. package/OPPWAMobile-Resources.bundle/visa.png +0 -0
  152. package/OPPWAMobile-Resources.bundle/visa@2x.png +0 -0
  153. package/OPPWAMobile-Resources.bundle/visa@3x.png +0 -0
  154. package/OPPWAMobile-Resources.bundle/visadebit.png +0 -0
  155. package/OPPWAMobile-Resources.bundle/visadebit@2x.png +0 -0
  156. package/OPPWAMobile-Resources.bundle/visadebit@3x.png +0 -0
  157. package/OPPWAMobile-Resources.bundle/visaelectron.png +0 -0
  158. package/OPPWAMobile-Resources.bundle/visaelectron@2x.png +0 -0
  159. package/OPPWAMobile-Resources.bundle/visaelectron@3x.png +0 -0
  160. package/OPPWAMobile-Resources.bundle/yandex.png +0 -0
  161. package/OPPWAMobile-Resources.bundle/yandex@2x.png +0 -0
  162. package/OPPWAMobile-Resources.bundle/yandex@3x.png +0 -0
  163. package/OPPWAMobile-Resources.bundle/zh-Hans.lproj/OPPCheckout.strings +92 -0
  164. package/OPPWAMobile.framework/.DS_Store +0 -0
  165. package/OPPWAMobile.framework/Headers/OPPAlipayPaymentParams.h +49 -0
  166. package/OPPWAMobile.framework/Headers/OPPApplePayPaymentParams.h +64 -0
  167. package/OPPWAMobile.framework/Headers/OPPApplePayRequestStatus.h +117 -0
  168. package/OPPWAMobile.framework/Headers/OPPBankAccount.h +58 -0
  169. package/OPPWAMobile.framework/Headers/OPPBankAccountPaymentParams.h +171 -0
  170. package/OPPWAMobile.framework/Headers/OPPCard.h +68 -0
  171. package/OPPWAMobile.framework/Headers/OPPCardPaymentParams.h +251 -0
  172. package/OPPWAMobile.framework/Headers/OPPCheckoutInfo.h +130 -0
  173. package/OPPWAMobile.framework/Headers/OPPCheckoutPaymentMethod.h +51 -0
  174. package/OPPWAMobile.framework/Headers/OPPCheckoutProvider.h +197 -0
  175. package/OPPWAMobile.framework/Headers/OPPCheckoutSettings.h +185 -0
  176. package/OPPWAMobile.framework/Headers/OPPCheckoutTheme.h +268 -0
  177. package/OPPWAMobile.framework/Headers/OPPChinaUnionPayPaymentParams.h +62 -0
  178. package/OPPWAMobile.framework/Headers/OPPErrors.h +183 -0
  179. package/OPPWAMobile.framework/Headers/OPPIkanoOiPaymentParams.h +74 -0
  180. package/OPPWAMobile.framework/Headers/OPPMBWayPaymentParams.h +66 -0
  181. package/OPPWAMobile.framework/Headers/OPPPayPalPaymentParams.h +48 -0
  182. package/OPPWAMobile.framework/Headers/OPPPaymentBrandsConfig.h +56 -0
  183. package/OPPWAMobile.framework/Headers/OPPPaymentButton.h +79 -0
  184. package/OPPWAMobile.framework/Headers/OPPPaymentParams.h +100 -0
  185. package/OPPWAMobile.framework/Headers/OPPPaymentParamsBrand.h +57 -0
  186. package/OPPWAMobile.framework/Headers/OPPPaymentProvider.h +132 -0
  187. package/OPPWAMobile.framework/Headers/OPPSecurityPolicy.h +87 -0
  188. package/OPPWAMobile.framework/Headers/OPPToken.h +95 -0
  189. package/OPPWAMobile.framework/Headers/OPPTokenPaymentParams.h +180 -0
  190. package/OPPWAMobile.framework/Headers/OPPTransaction.h +77 -0
  191. package/OPPWAMobile.framework/Headers/OPPWAMobile.h +48 -0
  192. package/OPPWAMobile.framework/OPPWAMobile +0 -0
  193. package/OPPWAMobile.framework/Resources/Info.plist +0 -0
  194. package/OPPWAMobile.framework/Versions/.DS_Store +0 -0
  195. package/OPPWAMobile.framework/Versions/2.47.0/.DS_Store +0 -0
  196. package/OPPWAMobile.framework/Versions/2.47.0/Headers/OPPAlipayPaymentParams.h +49 -0
  197. package/OPPWAMobile.framework/Versions/2.47.0/Headers/OPPApplePayPaymentParams.h +64 -0
  198. package/OPPWAMobile.framework/Versions/2.47.0/Headers/OPPApplePayRequestStatus.h +117 -0
  199. package/OPPWAMobile.framework/Versions/2.47.0/Headers/OPPBankAccount.h +58 -0
  200. package/OPPWAMobile.framework/Versions/2.47.0/Headers/OPPBankAccountPaymentParams.h +171 -0
  201. package/OPPWAMobile.framework/Versions/2.47.0/Headers/OPPCard.h +68 -0
  202. package/OPPWAMobile.framework/Versions/2.47.0/Headers/OPPCardPaymentParams.h +251 -0
  203. package/OPPWAMobile.framework/Versions/2.47.0/Headers/OPPCheckoutInfo.h +130 -0
  204. package/OPPWAMobile.framework/Versions/2.47.0/Headers/OPPCheckoutPaymentMethod.h +51 -0
  205. package/OPPWAMobile.framework/Versions/2.47.0/Headers/OPPCheckoutProvider.h +197 -0
  206. package/OPPWAMobile.framework/Versions/2.47.0/Headers/OPPCheckoutSettings.h +185 -0
  207. package/OPPWAMobile.framework/Versions/2.47.0/Headers/OPPCheckoutTheme.h +268 -0
  208. package/OPPWAMobile.framework/Versions/2.47.0/Headers/OPPChinaUnionPayPaymentParams.h +62 -0
  209. package/OPPWAMobile.framework/Versions/2.47.0/Headers/OPPErrors.h +183 -0
  210. package/OPPWAMobile.framework/Versions/2.47.0/Headers/OPPIkanoOiPaymentParams.h +74 -0
  211. package/OPPWAMobile.framework/Versions/2.47.0/Headers/OPPMBWayPaymentParams.h +66 -0
  212. package/OPPWAMobile.framework/Versions/2.47.0/Headers/OPPPayPalPaymentParams.h +48 -0
  213. package/OPPWAMobile.framework/Versions/2.47.0/Headers/OPPPaymentBrandsConfig.h +56 -0
  214. package/OPPWAMobile.framework/Versions/2.47.0/Headers/OPPPaymentButton.h +79 -0
  215. package/OPPWAMobile.framework/Versions/2.47.0/Headers/OPPPaymentParams.h +100 -0
  216. package/OPPWAMobile.framework/Versions/2.47.0/Headers/OPPPaymentParamsBrand.h +57 -0
  217. package/OPPWAMobile.framework/Versions/2.47.0/Headers/OPPPaymentProvider.h +132 -0
  218. package/OPPWAMobile.framework/Versions/2.47.0/Headers/OPPSecurityPolicy.h +87 -0
  219. package/OPPWAMobile.framework/Versions/2.47.0/Headers/OPPToken.h +95 -0
  220. package/OPPWAMobile.framework/Versions/2.47.0/Headers/OPPTokenPaymentParams.h +180 -0
  221. package/OPPWAMobile.framework/Versions/2.47.0/Headers/OPPTransaction.h +77 -0
  222. package/OPPWAMobile.framework/Versions/2.47.0/Headers/OPPWAMobile.h +48 -0
  223. package/OPPWAMobile.framework/Versions/2.47.0/OPPWAMobile +0 -0
  224. package/OPPWAMobile.framework/Versions/2.47.0/Resources/Info.plist +0 -0
  225. package/OPPWAMobile.framework/Versions/Current/.DS_Store +0 -0
  226. package/OPPWAMobile.framework/Versions/Current/Headers/OPPAlipayPaymentParams.h +49 -0
  227. package/OPPWAMobile.framework/Versions/Current/Headers/OPPApplePayPaymentParams.h +64 -0
  228. package/OPPWAMobile.framework/Versions/Current/Headers/OPPApplePayRequestStatus.h +117 -0
  229. package/OPPWAMobile.framework/Versions/Current/Headers/OPPBankAccount.h +58 -0
  230. package/OPPWAMobile.framework/Versions/Current/Headers/OPPBankAccountPaymentParams.h +171 -0
  231. package/OPPWAMobile.framework/Versions/Current/Headers/OPPCard.h +68 -0
  232. package/OPPWAMobile.framework/Versions/Current/Headers/OPPCardPaymentParams.h +251 -0
  233. package/OPPWAMobile.framework/Versions/Current/Headers/OPPCheckoutInfo.h +130 -0
  234. package/OPPWAMobile.framework/Versions/Current/Headers/OPPCheckoutPaymentMethod.h +51 -0
  235. package/OPPWAMobile.framework/Versions/Current/Headers/OPPCheckoutProvider.h +197 -0
  236. package/OPPWAMobile.framework/Versions/Current/Headers/OPPCheckoutSettings.h +185 -0
  237. package/OPPWAMobile.framework/Versions/Current/Headers/OPPCheckoutTheme.h +268 -0
  238. package/OPPWAMobile.framework/Versions/Current/Headers/OPPChinaUnionPayPaymentParams.h +62 -0
  239. package/OPPWAMobile.framework/Versions/Current/Headers/OPPErrors.h +183 -0
  240. package/OPPWAMobile.framework/Versions/Current/Headers/OPPIkanoOiPaymentParams.h +74 -0
  241. package/OPPWAMobile.framework/Versions/Current/Headers/OPPMBWayPaymentParams.h +66 -0
  242. package/OPPWAMobile.framework/Versions/Current/Headers/OPPPayPalPaymentParams.h +48 -0
  243. package/OPPWAMobile.framework/Versions/Current/Headers/OPPPaymentBrandsConfig.h +56 -0
  244. package/OPPWAMobile.framework/Versions/Current/Headers/OPPPaymentButton.h +79 -0
  245. package/OPPWAMobile.framework/Versions/Current/Headers/OPPPaymentParams.h +100 -0
  246. package/OPPWAMobile.framework/Versions/Current/Headers/OPPPaymentParamsBrand.h +57 -0
  247. package/OPPWAMobile.framework/Versions/Current/Headers/OPPPaymentProvider.h +132 -0
  248. package/OPPWAMobile.framework/Versions/Current/Headers/OPPSecurityPolicy.h +87 -0
  249. package/OPPWAMobile.framework/Versions/Current/Headers/OPPToken.h +95 -0
  250. package/OPPWAMobile.framework/Versions/Current/Headers/OPPTokenPaymentParams.h +180 -0
  251. package/OPPWAMobile.framework/Versions/Current/Headers/OPPTransaction.h +77 -0
  252. package/OPPWAMobile.framework/Versions/Current/Headers/OPPWAMobile.h +48 -0
  253. package/OPPWAMobile.framework/Versions/Current/OPPWAMobile +0 -0
  254. package/OPPWAMobile.framework/Versions/Current/Resources/Info.plist +0 -0
  255. package/README.md +27 -0
  256. package/android/.DS_Store +0 -0
  257. package/android/.gradle/6.8/executionHistory/executionHistory.bin +0 -0
  258. package/android/.gradle/6.8/executionHistory/executionHistory.lock +0 -0
  259. package/android/.gradle/6.8/fileChanges/last-build.bin +0 -0
  260. package/android/.gradle/6.8/fileHashes/fileHashes.bin +0 -0
  261. package/android/.gradle/6.8/fileHashes/fileHashes.lock +0 -0
  262. package/android/.gradle/6.8/fileHashes/resourceHashesCache.bin +0 -0
  263. package/android/.gradle/6.8/gc.properties +0 -0
  264. package/android/.gradle/6.8/javaCompile/javaCompile.lock +0 -0
  265. package/android/.gradle/7.1.1/dependencies-accessors/dependencies-accessors.lock +0 -0
  266. package/android/.gradle/7.1.1/dependencies-accessors/gc.properties +0 -0
  267. package/android/.gradle/7.1.1/executionHistory/executionHistory.lock +0 -0
  268. package/android/.gradle/7.1.1/fileChanges/last-build.bin +0 -0
  269. package/android/.gradle/7.1.1/fileHashes/fileHashes.lock +0 -0
  270. package/android/.gradle/7.1.1/gc.properties +0 -0
  271. package/android/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
  272. package/android/.gradle/buildOutputCleanup/cache.properties +2 -0
  273. package/android/.gradle/checksums/checksums.lock +0 -0
  274. package/android/.gradle/checksums/md5-checksums.bin +0 -0
  275. package/android/.gradle/checksums/sha1-checksums.bin +0 -0
  276. package/android/.gradle/configuration-cache/gc.properties +0 -0
  277. package/android/.gradle/vcs-1/gc.properties +0 -0
  278. package/android/.idea/.gitignore +3 -0
  279. package/android/.idea/compiler.xml +6 -0
  280. package/android/.idea/gradle.xml +19 -0
  281. package/android/.idea/jarRepositories.xml +40 -0
  282. package/android/.idea/libraries/Gradle____oppwa_mobile_2_44_0_oppwa_mobile_2_44_0_aar.xml +11 -0
  283. package/android/.idea/libraries/Gradle__com_android_support_appcompat_v7_23_0_1_aar.xml +18 -0
  284. package/android/.idea/libraries/Gradle__com_android_support_recyclerview_v7_23_0_1_aar.xml +15 -0
  285. package/android/.idea/libraries/Gradle__com_android_support_support_annotations_23_0_1.xml +13 -0
  286. package/android/.idea/libraries/Gradle__com_android_support_support_v4_23_0_1_aar.xml +19 -0
  287. package/android/.idea/libraries/Gradle__com_facebook_fresco_drawee_0_8_1_aar.xml +15 -0
  288. package/android/.idea/libraries/Gradle__com_facebook_fresco_fbcore_0_8_1_aar.xml +15 -0
  289. package/android/.idea/libraries/Gradle__com_facebook_fresco_fresco_0_8_1_aar.xml +15 -0
  290. package/android/.idea/libraries/Gradle__com_facebook_fresco_imagepipeline_0_8_1_aar.xml +15 -0
  291. package/android/.idea/libraries/Gradle__com_facebook_fresco_imagepipeline_okhttp_0_8_1_aar.xml +15 -0
  292. package/android/.idea/libraries/Gradle__com_facebook_react_react_native_0_20_1_aar.xml +19 -0
  293. package/android/.idea/libraries/Gradle__com_facebook_stetho_stetho_1_2_0.xml +13 -0
  294. package/android/.idea/libraries/Gradle__com_facebook_stetho_stetho_okhttp_1_2_0.xml +13 -0
  295. package/android/.idea/libraries/Gradle__com_fasterxml_jackson_core_jackson_core_2_2_3.xml +13 -0
  296. package/android/.idea/libraries/Gradle__com_google_code_findbugs_jsr305_3_0_0.xml +13 -0
  297. package/android/.idea/libraries/Gradle__com_nineoldandroids_library_2_4_0.xml +13 -0
  298. package/android/.idea/libraries/Gradle__com_parse_bolts_bolts_android_1_1_4.xml +13 -0
  299. package/android/.idea/libraries/Gradle__com_squareup_okhttp_okhttp_2_5_0.xml +13 -0
  300. package/android/.idea/libraries/Gradle__com_squareup_okhttp_okhttp_ws_2_5_0.xml +13 -0
  301. package/android/.idea/libraries/Gradle__com_squareup_okio_okio_1_6_0.xml +13 -0
  302. package/android/.idea/libraries/Gradle__commons_cli_commons_cli_1_2.xml +13 -0
  303. package/android/.idea/libraries/Gradle__org_webkit_android_jsc_r174650_aar.xml +11 -0
  304. package/android/.idea/misc.xml +9 -0
  305. package/android/.idea/modules/android.iml +66 -0
  306. package/android/.idea/modules.xml +8 -0
  307. package/android/.idea/vcs.xml +6 -0
  308. package/android/build.gradle +62 -0
  309. package/android/local.properties +8 -0
  310. package/android/oppwa.mobile-2.44.0/.DS_Store +0 -0
  311. package/android/oppwa.mobile-2.44.0/.project +17 -0
  312. package/android/oppwa.mobile-2.44.0/.settings/org.eclipse.buildship.core.prefs +2 -0
  313. package/android/oppwa.mobile-2.44.0/oppwa.mobile-3.14.0-release.aar +0 -0
  314. package/android/src/main/AndroidManifest.xml +4 -0
  315. package/android/src/main/java/com/reactnativehyperpay/HyperPayModule.java +34 -0
  316. package/android/src/main/java/com/reactnativehyperpay/HyperPayPackage.java +28 -0
  317. package/ios/HyperPay.h +11 -0
  318. package/ios/HyperPay.m +95 -0
  319. package/ios/HyperPay.xcodeproj/project.pbxproj +282 -0
  320. package/ios/HyperPay.xcodeproj/project.xcworkspace/contents.xcworkspacedata +4 -0
  321. package/package.json +148 -0
  322. package/react-native-hyperpay.podspec +20 -0
  323. package/src/index.tsx +22 -0
@@ -0,0 +1,62 @@
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
+ /**
15
+ Class to encapsulate all necessary transaction parameters for performing a China UnionPay (UPOP) transaction.
16
+ */
17
+
18
+ NS_ASSUME_NONNULL_BEGIN
19
+ @interface OPPChinaUnionPayPaymentParams : OPPPaymentParams
20
+
21
+ /// @name Initialization
22
+
23
+ /// :nodoc:
24
+ - (instancetype)initWithCheckoutID:(NSString *)checkoutID paymentBrand:(NSString *)paymentBrand error:(NSError * _Nullable __autoreleasing *)error NS_UNAVAILABLE;
25
+
26
+ /**
27
+ Creates an object representing a China UnionPay transaction.
28
+
29
+ @param checkoutID The checkout ID of the transaction. Must be not `nil` or empty.
30
+ @param holder Holder of the card account.
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 China UnionPay transaction.
33
+ */
34
+ + (nullable instancetype)chinaUnionPayPaymentParamsWithCheckoutID:(NSString *)checkoutID holder:(nullable NSString *)holder error:(NSError **)error;
35
+
36
+ /**
37
+ Creates an object representing a China UnionPay transaction.
38
+
39
+ @param checkoutID The checkout ID of the transaction. Must be not `nil` or empty.
40
+ @param holder Holder of the card account.
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 China UnionPay transaction.
43
+ */
44
+ - (nullable instancetype)initWithCheckoutID:(NSString *)checkoutID holder:(nullable NSString *)holder error:(NSError **)error NS_DESIGNATED_INITIALIZER;
45
+
46
+ /// @name Properties
47
+
48
+ /** Holder of the account. The length must be greater than 3 characters and less then 128 character. */
49
+ @property (nonatomic, copy, readonly) NSString *holder;
50
+
51
+ /// @name Parameter Checks
52
+
53
+ /**
54
+ Checks if the holder name is filled with sufficient data to perform a transaction.
55
+
56
+ @param holder Holder of the card account.
57
+ @return `YES` if the holder name length greater than 3 characters and less than 128 character.
58
+ */
59
+ + (BOOL)isHolderValid:(NSString *)holder;
60
+
61
+ @end
62
+ NS_ASSUME_NONNULL_END
@@ -0,0 +1,183 @@
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
+ /// An enumeration for the various types of error that resulted in an operation's failure.
15
+ typedef NS_ENUM(NSInteger, OPPErrorCode) {
16
+ /// Unsupported transaction payment params.
17
+ OPPErrorCodePaymentParamsUnsupported = 1000,
18
+ /// Transaction checkoud ID is not valid.
19
+ OPPErrorCodePaymentParamsCheckoutIDInvalid = 1010,
20
+ /// Brand doesn't match payment params class.
21
+ OPPErrorCodePaymentParamsBrandInvalid = 1011,
22
+ /// The token identifier is invalid. Must be alpha-numeric string of length 32.
23
+ OPPErrorCodePaymentParamsTokenIDInvalid = 1090,
24
+ /// Tokenization is not supported for chosen payment brand.
25
+ OPPErrorCodePaymentParamsTokenizationUnsupported = 1091,
26
+
27
+ /// Holder must at least contain first and last name.
28
+ OPPErrorCodeCardHolderInvalid = 1110,
29
+ /// Invalid card number. Does not pass the Luhn check.
30
+ OPPErrorCodeCardNumberInvalid = 1111,
31
+ /// Unsupported card brand.
32
+ OPPErrorCodeCardBrandInvalid = 1112,
33
+ /// Month must be in the format MM.
34
+ OPPErrorCodeCardMonthInvalidFormat = 1113,
35
+ /// Year must be in the format YYYY.
36
+ OPPErrorCodeCardYearInvalidFormat = 1114,
37
+ /// Card is expired.
38
+ OPPErrorCodeCardExpired = 1115,
39
+ /// CVV invalid. Must be three or four digits.
40
+ OPPErrorCodeCardCVVInvalid = 1116,
41
+
42
+ /// Holder of the bank account is not valid.
43
+ OPPErrorCodeBankAccountHolderInvalid = 1130,
44
+ /// IBAN is not valid.
45
+ OPPErrorCodeBankAccountIBANInvalid = 1131,
46
+ /// The country code of the bank is invalid. Should match ISO 3166-1 two-letter standard.
47
+ OPPErrorCodeBankAccountCountryInvalid = 1132,
48
+ /// The name of the bank which holds the account is invalid.
49
+ OPPErrorCodeBankAccountBankNameInvalid = 1133,
50
+ /// The BIC (Bank Identifier Code (SWIFT)) number of the bank account is invalid.
51
+ OPPErrorCodeBankAccountBICInvalid = 1134,
52
+ /// The code associated with the bank account is invalid.
53
+ OPPErrorCodeBankAccountBankCodeInvalid = 1135,
54
+ /// The account number of the bank account is invalid.
55
+ OPPErrorCodeBankAccountNumberInvalid = 1136,
56
+
57
+ /// The Apple Pay payment token data is invalid. To perform this type of transaction a valid payment token data is needed.
58
+ OPPErrorCodeApplePayTokenDataInvalid = 1150,
59
+
60
+ /// The phone number is not valid.
61
+ OPPErrorCodePhoneNumberInvalid = 1160,
62
+ /// The country code is not valid.
63
+ OPPErrorCodeCountryCodeInvalid = 1161,
64
+ /// The email is not valid.
65
+ OPPErrorCodeEmailInvalid = 1162,
66
+ /// The national identifier is not valid.
67
+ OPPErrorCodeNationalIdentifierInvalid = 1163,
68
+
69
+ /// Checkout info cannot be loaded.
70
+ OPPErrorCodeCheckoutInfoCannotBeLoaded = 2000,
71
+ /// There are no available payment methods in checkout.
72
+ OPPErrorCodeNoAvailablePaymentMethods = 2001,
73
+ /// Payment method is not available.
74
+ OPPErrorCodePaymentMethodNotAvailable = 2002,
75
+ /// The transaction was aborted.
76
+ OPPErrorCodeTransactionAborted = 2003,
77
+ /// Brand validation rules cannot be loaded from.
78
+ OPPErrorCodeBrandValidationCannotBeLoaded = 2004,
79
+
80
+ /// The transaction was declined. Please contact the system administrator of the merchant server to get the reason of failure.
81
+ OPPErrorCodeTransactionProcessingFailure = 2010,
82
+ /// The сheckout configuration is not valid.
83
+ OPPErrorCodeInvalidCheckoutConfiguration = 2020,
84
+
85
+ /// Unexpected connection error. Please contact the system administrator of the server.
86
+ OPPErrorCodeConnectionFailure = 3000,
87
+
88
+ /// Invalid input parameters for the request.
89
+ OPPErrorCodeRequestParametersInvalid = 3001,
90
+
91
+ /// Invalid response from the Server.
92
+ OPPErrorCodeServerResponseInvalid = 3002,
93
+
94
+ /// File loaded from resources does not have valid checksum. Make sure you installed the framework correctly and no one has been tampering with the application.
95
+ OPPErrorCodeSecurityXMLManipulation = 4000,
96
+
97
+ /// Invalid framework version. Versions of base and extension frameworks are not matching.
98
+ OPPErrorCodeFrameworkVersionInvalid = 5000
99
+ };
100
+
101
+ /**
102
+ Contains all error messages and codes that returned by SDK methods.
103
+
104
+ To retrieve the return code ([OPPErrorCode](../Constants/OPPErrorCode.html )) use the code attribute of the `NSError` object:
105
+
106
+ error.code;
107
+
108
+ To retrieve the error description look to localized description:
109
+
110
+ (NSString *)error.localizedDescription;
111
+
112
+ ## User info dictionary keys
113
+
114
+ This key may exist in the user info dictionary, in addition to those defined for `NSError`.
115
+
116
+ NSString *const OPPErrorTransactionFailureDetailsKey
117
+
118
+ ### Constants
119
+
120
+ `OPPErrorTransactionFailureDetailsKey`
121
+ The corresponding value is an `NSDictionary` containing the detail transaction failure information.
122
+
123
+ ##Error codes
124
+ Below you can find all currently supported error codes. See also separate page with `OPPErrorCode` enum definition.
125
+ ###Payment params errors:
126
+ - 1000: Unsupported transaction payment params.
127
+ - 1010: Transaction checkoud ID is not valid.
128
+ - 1011: Brand doesn't match payment params class.
129
+ - 1090: The token identifier is invalid. Must be alpha-numeric string of length 32.
130
+ - 1091: Tokenization is not supported for chosen payment brand.
131
+
132
+ ###Card errors:
133
+ - 1110: Holder must at least contain first and last name.
134
+ - 1111: Invalid card number. Does not pass the Luhn check.
135
+ - 1112: Unsupported card brand.
136
+ - 1113: Month must be in the format MM.
137
+ - 1114: Year must be in the format YYYY.
138
+ - 1115: Card is expired.
139
+ - 1116: CVV invalid. Must be three or four digits.
140
+
141
+ ###Bank account errors:
142
+ - 1130: Holder of the bank account is not valid.
143
+ - 1131: IBAN is not valid.
144
+ - 1132: The country code of the bank is invalid. Should match ISO 3166-1 two-letter standard.
145
+ - 1133: The name of the bank which holds the account is invalid.
146
+ - 1134: The BIC (Bank Identifier Code (SWIFT)) number of the bank account is invalid.
147
+ - 1135: The code associated with the bank account is invalid.
148
+ - 1136: The account number of the bank account is invalid.
149
+
150
+ ###Apple Pay errors:
151
+ - 1150: The Apple Pay payment token data is invalid. To perform this type of transaction a valid payment token data is needed.
152
+
153
+ ###Transaction errors:
154
+ - 2000: Checkout info cannot be loaded.
155
+ - 2001: There are no available payment methods in checkout.
156
+ - 2002: Payment method is not available.
157
+ - 2003: The transaction was aborted.
158
+ - 2004: Brand validation rules cannot be loaded from.
159
+
160
+ - 2010: The transaction was declined. Please contact the system administrator of the merchant server to get the reason of failure.
161
+ - 2020: The сheckout configuration is not valid.
162
+
163
+ ###Request errors:
164
+ - 3000: Unexpected connection error. Please contact the system administrator of the server.
165
+ - 3001: Invalid input parameters for the request.
166
+ - 3002: Invalid response from the Server.
167
+
168
+ ###Security errors:
169
+ - 4000: File loaded from resources does not have valid checksum. Make sure you installed the framework correctly and no one has been tampering with the application.
170
+
171
+ ###Linking errors:
172
+ - 5000: Invalid framework version. Versions of base and extension frameworks are not matching.
173
+ */
174
+
175
+ @interface OPPErrors : NSObject
176
+
177
+ /** The error domain for specific errors associated with the ready-to-use UI or SDK API. */
178
+ FOUNDATION_EXPORT NSString *const OPPErrorDomain;
179
+
180
+ /** The corresponding value is the `error.userInfo` dictionary containing the detail transaction failure information. */
181
+ FOUNDATION_EXPORT NSString *const OPPErrorTransactionFailureDetailsKey;
182
+
183
+ @end
@@ -0,0 +1,74 @@
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
+ /**
15
+ Class to encapsulate all necessary transaction parameters for performing an Ikano transaction.
16
+ */
17
+
18
+ NS_ASSUME_NONNULL_BEGIN
19
+ @interface OPPIkanoOiPaymentParams : OPPPaymentParams
20
+
21
+ /// @name Initialization
22
+
23
+ /// :nodoc:
24
+ - (instancetype)initWithCheckoutID:(NSString *)checkoutID
25
+ paymentBrand:(NSString *)paymentBrand
26
+ error:(NSError * _Nullable __autoreleasing *)error NS_UNAVAILABLE;
27
+
28
+ /**
29
+ Creates an object representing an Ikano transaction.
30
+
31
+ @param checkoutID The checkout ID of the transaction. Must be not `nil` or empty.
32
+ @param paymentBrand IKANOOI_SE, IKANOOI_NO or IKANOOI_FI is expected.
33
+ @param nationalIdentifier National identifier of the account.
34
+ @param error The error that occurred while validating payment parameters. See code attribute (`OPPErrorCode`) and `NSLocalizedDescription` to identify the reason of failure.
35
+ @return Returns an object representing an Ikano transaction.
36
+ */
37
+ + (nullable instancetype)ikanoOiPaymentParamsWithCheckoutID:(NSString *)checkoutID
38
+ paymentBrand:(NSString *)paymentBrand
39
+ nationalIdentifier:(NSString *)nationalIdentifier
40
+ error:(NSError **)error;
41
+
42
+ /**
43
+ Creates an object representing an Ikano transaction.
44
+
45
+ @param checkoutID The checkout ID of the transaction. Must be not `nil` or empty.
46
+ @param paymentBrand IKANOOI_SE, IKANOOI_NO or IKANOOI_FI is expected.
47
+ @param nationalIdentifier National identifier of the account.
48
+ @param error The error that occurred while validating payment parameters. See code attribute (`OPPErrorCode`) and `NSLocalizedDescription` to identify the reason of failure.
49
+ @return Returns an object representing an Ikano transaction.
50
+ */
51
+ - (nullable instancetype)initWithCheckoutID:(NSString *)checkoutID
52
+ paymentBrand:(NSString *)paymentBrand
53
+ nationalIdentifier:(NSString *)nationalIdentifier
54
+ error:(NSError **)error NS_DESIGNATED_INITIALIZER;
55
+
56
+ /// @name Properties
57
+
58
+ /** National identifier of the account. */
59
+ @property (nonatomic, copy, readonly) NSString *nationalIdentifier;
60
+
61
+ /// @name Parameter Checks
62
+
63
+ /**
64
+ Checks if the national identifier is valid to perform a transaction.
65
+
66
+ @param nationalIdentifier National identifier of the account.
67
+ @param paymentBrand IKANOOI_SE, IKANOOI_NO or IKANOOI_FI is expected.
68
+ @return `YES` if the national identifier value is valid.
69
+ */
70
+ + (BOOL)isNationalIdentifierValid:(NSString *)nationalIdentifier
71
+ forPaymentBrand:(NSString *)paymentBrand;
72
+
73
+ @end
74
+ NS_ASSUME_NONNULL_END
@@ -0,0 +1,66 @@
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
+ /**
15
+ Class to encapsulate all necessary transaction parameters for performing an MB WAY transaction.
16
+ */
17
+
18
+ NS_ASSUME_NONNULL_BEGIN
19
+ @interface OPPMBWayPaymentParams : OPPPaymentParams
20
+
21
+ /// @name Initialization
22
+
23
+ /// :nodoc:
24
+ - (instancetype)initWithCheckoutID:(NSString *)checkoutID
25
+ paymentBrand:(NSString *)paymentBrand
26
+ error:(NSError * _Nullable __autoreleasing *)error NS_UNAVAILABLE;
27
+
28
+ /**
29
+ Creates an object representing an MB WAY transaction.
30
+
31
+ @param checkoutID The checkout ID of the transaction. Must be not `nil` or empty.
32
+ @param email Email of the account.
33
+ @param error The error that occurred while validating payment parameters. See code attribute (`OPPErrorCode`) and `NSLocalizedDescription` to identify the reason of failure.
34
+ @return Returns an object representing an MB WAY transaction.
35
+ */
36
+ + (nullable instancetype)mbWayPaymentParamsWithCheckoutID:(NSString *)checkoutID
37
+ email:(NSString *)email
38
+ error:(NSError **)error;
39
+
40
+ /**
41
+ Creates an object representing an MB WAY transaction.
42
+
43
+ @param checkoutID The checkout ID of the transaction. Must be not `nil` or empty.
44
+ @param countryCode Country code of the mobile phone number.
45
+ @param phoneNumber Mobile phone number of the account.
46
+ @param error The error that occurred while validating payment parameters. See code attribute (`OPPErrorCode`) and `NSLocalizedDescription` to identify the reason of failure.
47
+ @return Returns an object representing an MB WAY transaction.
48
+ */
49
+ + (nullable instancetype)mbWayPaymentParamsWithCheckoutID:(NSString *)checkoutID
50
+ countryCode:(NSString *)countryCode
51
+ phoneNumber:(NSString *)phoneNumber
52
+ error:(NSError **)error;
53
+
54
+ /// @name Properties
55
+
56
+ /** Email of the account. */
57
+ @property (nonatomic, copy, readonly) NSString *email;
58
+
59
+ /** Country code of the mobile phone number. */
60
+ @property (nonatomic, copy, readonly) NSString *countryCode;
61
+
62
+ /** Mobile phone number of the account. */
63
+ @property (nonatomic, copy, readonly) NSString *phoneNumber;
64
+
65
+ @end
66
+ NS_ASSUME_NONNULL_END
@@ -0,0 +1,48 @@
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
+ __deprecated_msg("The OPPPayPalPaymentParams class is formally deprecated. To make PayPal transaction, instead use OPPPaymentParams class with payment brand 'PAYPAL'.")
15
+ /**
16
+ Class to encapsulate all necessary transaction parameters for performing a PayPal transaction.
17
+
18
+ @warning **Deprecated:** The `OPPPayPalPaymentParams` class is formally deprecated in 1.4.0. To make PayPal transaction, instead use `OPPPaymentParams` class with payment brand 'PAYPAL'.
19
+ */
20
+
21
+ NS_ASSUME_NONNULL_BEGIN
22
+ @interface OPPPayPalPaymentParams : OPPPaymentParams
23
+
24
+ /// @name Initialization
25
+
26
+ /// :nodoc:
27
+ - (instancetype)initWithCheckoutID:(NSString *)checkoutID paymentBrand:(NSString *)paymentBrand error:(NSError * _Nullable __autoreleasing *)error NS_UNAVAILABLE;
28
+
29
+ /**
30
+ Creates an object representing a PayPal transaction.
31
+
32
+ @param checkoutID The checkout ID of the transaction. Must be not `nil` or empty.
33
+ @param error The error that occurred while validating payment parameters. See code attribute (`OPPErrorCode`) and `NSLocalizedDescription` to identify the reason of failure.
34
+ @return Returns an object representing a PayPal transaction.
35
+ */
36
+ + (nullable instancetype)payPalPaymentParamsWithCheckoutID:(NSString *)checkoutID error:(NSError **)error;
37
+
38
+ /**
39
+ Creates an object representing a PayPal transaction.
40
+
41
+ @param checkoutID The checkout ID of the transaction. Must be not `nil` or empty.
42
+ @param error The error that occurred while validating payment parameters. See code attribute (`OPPErrorCode`) and `NSLocalizedDescription` to identify the reason of failure.
43
+ @return Returns an object representing a PayPal transaction.
44
+ */
45
+ - (nullable instancetype)initWithCheckoutID:(NSString *)checkoutID error:(NSError **)error NS_DESIGNATED_INITIALIZER;
46
+ @end
47
+ NS_ASSUME_NONNULL_END
48
+
@@ -0,0 +1,56 @@
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
+ /** Class to encapsulate the payment brand configuration parameters from the Server. */
15
+
16
+ NS_ASSUME_NONNULL_BEGIN
17
+ @interface OPPPaymentBrandsConfig : NSObject
18
+
19
+ /// @name Properties
20
+
21
+ /** A flag that specifies whether payment brands from the Server are enabled or not. */
22
+ @property (nonatomic, readonly, getter=isEnabled) BOOL enabled;
23
+
24
+ /** Payment brand list from the Server. */
25
+ @property (nonatomic, copy, readonly) NSArray<NSString *> *paymentBrands;
26
+
27
+ /** A flag that specifies whether override checkout payment brands with brands from the Server or not. */
28
+ @property (nonatomic, readonly) BOOL shouldOverride;
29
+
30
+ /// @name Initialization
31
+
32
+ /**
33
+ Creates `OPPPaymentBrandsConfig` object from the JSON that can be received from the Server by checkout ID.
34
+ @param JSON A dictionary with parameters received from the Server.
35
+ @return Returns an `OPPPaymentBrandsConfig` object, or `nil` if JSON contains invalid values.
36
+ */
37
+ + (nullable instancetype)paymentBrandsConfigFromJSON:(NSDictionary *)JSON;
38
+
39
+ /**
40
+ Creates an `OPPPaymentBrandsConfig` object with the provided values.
41
+ @param paymentBrands List of payment brands from the Server.
42
+ @param enabled A flag that specifies whether payment brands from the Server are enabled or not.
43
+ @param shouldOverride A flag that specifies whether override checkout payment brands with brands from the Server or not.
44
+ */
45
+ + (instancetype)paymentBrandsConfigWithPaymentBrands:(NSArray<NSString *> *)paymentBrands enabled:(BOOL)enabled shouldOverride:(BOOL)shouldOverride;
46
+
47
+ /**
48
+ Creates an `OPPPaymentBrandsConfig` object with the provided values.
49
+ @param paymentBrands List of payment brands from the Server.
50
+ @param enabled A flag that specifies whether payment brands from the Server are enabled or not.
51
+ @param shouldOverride A flag that specifies whether override checkout payment brands with brands from the Server or not.
52
+ */
53
+ - (instancetype)initWithPaymentBrands:(NSArray<NSString *> *)paymentBrands enabled:(BOOL)enabled shouldOverride:(BOOL)shouldOverride;
54
+
55
+ @end
56
+ NS_ASSUME_NONNULL_END
@@ -0,0 +1,79 @@
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 UIKit;
13
+ #import "OPPCheckoutPaymentMethod.h"
14
+
15
+ NS_ASSUME_NONNULL_BEGIN
16
+ /**
17
+ A constant to be used instead of specific card brand. The brand will be detected automatically based on card number.
18
+ */
19
+ extern NSString *const OPPPaymentBrandCard;
20
+
21
+ /**
22
+ Class that extends UIButton in order to esily integrate separate payment methods in the app.
23
+
24
+ By default button contains appropriate logo if a valid payment method is set. Button can be fully customized as common UIButton.
25
+
26
+ To create and submit a transaction, use `-[OPPCheckoutProvider presentCheckoutWithPaymentBrand:loadingHandler:completionHandler:cancelHandler:]` in button action method.
27
+ */
28
+ @interface OPPPaymentButton : UIButton
29
+
30
+ /// @name Initialization
31
+
32
+ /**
33
+ Creates and returns payment button initialized with the payment brand.
34
+ @param paymentBrand Payment brand for the transaction.
35
+ */
36
+ + (instancetype)paymentButtonWithPaymentBrand:(NSString *)paymentBrand;
37
+
38
+ /**
39
+ Creates and returns payment button initialized with the payment method.
40
+ @param paymentBrand Payment brand for the transaction.
41
+ */
42
+ - (instancetype)initWithPaymentBrand:(NSString *)paymentBrand;
43
+
44
+ /// @name Properties
45
+
46
+ /**
47
+ Payment brand for the transaction that is used to display an appropriate logo.
48
+ Logo will be loaded automatically from the Server.
49
+ To use your own image for a button, set it before initializing the payment brand.
50
+ */
51
+ @property (nonatomic, copy) NSString *paymentBrand;
52
+
53
+ /// @name Deprecated properties
54
+
55
+ /**
56
+ Payment method for the transaction that is used to display an appropriate logo.
57
+ @warning **Deprecated:** Use `paymentBrand` instead
58
+ */
59
+ @property (nonatomic) OPPCheckoutPaymentMethod paymentMethod DEPRECATED_ATTRIBUTE;
60
+
61
+ @end
62
+
63
+ /// Deprecated methods
64
+ @interface OPPPaymentButton (Deprecated)
65
+ /**
66
+ Creates and returns payment button initialized with the payment brand.
67
+ @param paymentMethod Payment method for the transaction.
68
+ @warning **Deprecated:** Use `+paymentButtonWithPaymentBrand:` instead
69
+ */
70
+ + (instancetype)paymentButtonWithPaymentMethod:(OPPCheckoutPaymentMethod)paymentMethod DEPRECATED_MSG_ATTRIBUTE("- Use +paymentButtonWithPaymentBrand: instead.");
71
+
72
+ /**
73
+ Creates and returns payment button initialized with the payment method.
74
+ @param paymentMethod Payment method for the transaction.
75
+ @warning **Deprecated:** Use `-initWithPaymentBrand:` instead
76
+ */
77
+ - (instancetype)initWithPaymentMethod:(OPPCheckoutPaymentMethod)paymentMethod DEPRECATED_MSG_ATTRIBUTE("- Use -initWithPaymentBrand: instead.");
78
+ @end
79
+ NS_ASSUME_NONNULL_END
@@ -0,0 +1,100 @@
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
+ #import "OPPPaymentParamsBrand.h"
14
+
15
+ /**
16
+ Class to represent a set of parameters needed for performing an e-commerce transaction.
17
+ */
18
+
19
+ NS_ASSUME_NONNULL_BEGIN
20
+ @interface OPPPaymentParams : NSObject
21
+
22
+ /// @name Initialization
23
+
24
+ /// :nodoc:
25
+ - (instancetype)init NS_UNAVAILABLE;
26
+
27
+ /**
28
+ Creates an object representing a payment transaction.
29
+
30
+ @param checkoutID The checkout ID of the transaction. Must be not `nil` or empty.
31
+ @param paymentBrand The payment brand of the transaction.
32
+ @param error The error that occurred while validating payment parameters. See code attribute (`OPPErrorCode`) and `NSLocalizedDescription` to identify the reason of failure.
33
+ @return Returns an object representing a payment transaction, and `nil` if parameters are invalid.
34
+ */
35
+ + (nullable instancetype)paymentParamsWithCheckoutID:(NSString *)checkoutID paymentBrand:(NSString *)paymentBrand error:(NSError **)error;
36
+
37
+ /**
38
+ Creates an object representing a payment transaction.
39
+
40
+ @param checkoutID The checkout ID of the transaction. Must be not `nil` or empty.
41
+ @param paymentBrand The payment brand of the transaction.
42
+ @param error The error that occurred while validating payment parameters. See code attribute (`OPPErrorCode`) and `NSLocalizedDescription` to identify the reason of failure.
43
+ @return Returns an object representing a payment transaction, and `nil` if parameters are invalid.
44
+ */
45
+ - (nullable instancetype)initWithCheckoutID:(NSString *)checkoutID paymentBrand:(NSString *)paymentBrand error:(NSError **)error NS_DESIGNATED_INITIALIZER;
46
+
47
+ /// @name Properties
48
+
49
+ /** A property that can be set with a value from initial checkout request (mandatory). This value is required in the next steps. */
50
+ @property (nonatomic, copy, readonly) NSString *checkoutID;
51
+
52
+ /**
53
+ The payment brand of the transaction.
54
+ */
55
+ @property (nonatomic, copy, readonly) NSString *paymentBrand;
56
+
57
+ /**
58
+ This URL will receive the result of an asynchronous payment. Must be sent URL encoded.
59
+ */
60
+ @property (nonatomic, copy, nullable) NSString *shopperResultURL;
61
+
62
+ /**
63
+ Dictionary of custom parameters that will be sent to the server.
64
+ */
65
+ @property (nonatomic, copy, readonly) NSDictionary<NSString *, NSString *> *customParams;
66
+
67
+ /// @name Deprecated Properties
68
+
69
+ /**
70
+ Method of payment for the request.
71
+ @warning **Deprecated:** Use `paymentBrand` instead
72
+ */
73
+ @property (nonatomic, readonly) OPPPaymentParamsBrand brand DEPRECATED_ATTRIBUTE;
74
+
75
+
76
+ /// @name Custom parameters methods
77
+
78
+ /**
79
+ Method to add custom parameter that will be sent to the server.
80
+ @param name Name should be prepended with SHOPPER_*, e.g. SHOPPER_customerId. Expected string that matches regex SHOPPER_[0-9a-zA-Z._]{3,64}.
81
+ @param value Any string no longer than 2048 characters.
82
+ @return Returns `YES` if name and value are valid and parameter is successfully saved, otherwise `NO`.
83
+ */
84
+ - (BOOL)addCustomParamWithName:(NSString *)name value:(NSString *)value;
85
+
86
+ /**
87
+ Method to remove record from the dictionary of custom parameters.
88
+ @param name Parameter name.
89
+ */
90
+ - (void)removeCustomParamWithName:(NSString *)name;
91
+
92
+ /// @name Helper methods
93
+
94
+ /**
95
+ Helper method to mask sensitive payment details such as card number, CVV and etc.
96
+ */
97
+ - (void)mask;
98
+
99
+ @end
100
+ NS_ASSUME_NONNULL_END