react-native-hyperpay-sdk 0.2.0 → 0.5.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 (324) hide show
  1. package/LICENSE +2 -1
  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 +6 -8
  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 +40 -116
  309. package/android/local.properties +8 -0
  310. package/android/src/main/AndroidManifest.xml +1 -1
  311. package/android/src/main/java/com/{reactnativehyperpaysdk/HyperpaySdkModule.java → reactnativehyperpay/HyperPayModule.java} +8 -7
  312. package/android/src/main/java/com/{reactnativehyperpaysdk/HyperpaySdkPackage.java → reactnativehyperpay/HyperPayPackage.java} +3 -3
  313. package/ios/HyperPay.h +11 -0
  314. package/ios/HyperPay.m +93 -0
  315. package/ios/{HyperpaySdk.xcodeproj → HyperPay.xcodeproj}/project.pbxproj +28 -20
  316. package/ios/{HyperpaySdk.xcodeproj → HyperPay.xcodeproj}/project.xcworkspace/contents.xcworkspacedata +0 -0
  317. package/lib/typescript/index.d.ts +24 -1
  318. package/package.json +27 -30
  319. package/react-native-hyperpay.podspec +20 -0
  320. package/src/index.tsx +17 -11
  321. package/android/gradle.properties +0 -5
  322. package/ios/HyperpaySdk.h +0 -5
  323. package/ios/HyperpaySdk.mm +0 -31
  324. package/react-native-hyperpay-sdk.podspec +0 -40
@@ -0,0 +1,197 @@
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
@@ -0,0 +1,185 @@
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 "OPPCheckoutPaymentMethod.h"
14
+ #import <PassKit/PassKit.h>
15
+ @class OPPCheckoutTheme;
16
+ @class OPPSecurityPolicy;
17
+
18
+ /// An enumeration for the possible store payment details modes.
19
+ typedef NS_ENUM(NSInteger, OPPCheckoutStorePaymentDetailsMode) {
20
+ /// Always store payment details for future use.
21
+ OPPCheckoutStorePaymentDetailsModeAlways,
22
+ /// Display the option to prompt the user permissions to store payment details for future use.
23
+ OPPCheckoutStorePaymentDetailsModePrompt,
24
+ /// Never store payment details.
25
+ OPPCheckoutStorePaymentDetailsModeNever
26
+ };
27
+
28
+ /// An enumeration for the possible modes to skip CVV check.
29
+ typedef NS_ENUM(NSInteger, OPPCheckoutSkipCVVMode) {
30
+ /// Always request CVV for card payments.
31
+ OPPCheckoutSkipCVVModeNever,
32
+ /// Skip CVV check only for payments by stored cards.
33
+ OPPCheckoutSkipCVVModeForStoredCards,
34
+ /// Always skip CVV check. CVV field won't be displayed in card payment forms.
35
+ OPPCheckoutSkipCVVModeAlways
36
+ };
37
+
38
+ /// An enumeration for the possible display modes of card brands on payment method selection screen.
39
+ typedef NS_ENUM(NSInteger, OPPCheckoutCardBrandsDisplayMode) {
40
+ /// Display card brands in the list along with other payment methods.
41
+ OPPCheckoutCardBrandsDisplayModeSeparate,
42
+ /// Display all card brands grouped in one row. This mode allows shopper to skip choosing concrete card brand, the brand will be detected automatically based on card number.
43
+ OPPCheckoutCardBrandsDisplayModeGrouped
44
+ };
45
+
46
+ /// An enumeration for the possible ways of automatic card brand detection
47
+ typedef NS_ENUM(NSInteger, OPPCheckoutBrandDetectionType) {
48
+ /// Uses regular expressions to analyze card number (supports a limited number of brands)
49
+ OPPCheckoutBrandDetectionTypeRegex,
50
+ /// Searches card bin in the bin list (more precise)
51
+ OPPCheckoutBrandDetectionTypeBinList
52
+ };
53
+
54
+ /**
55
+ Class which encapsulates settings for the built-in in-App payment page. Use this to customize both the visual elements of the payment pages as well as functionality. This includes changing colors and texts, defining payment methods.
56
+ */
57
+ NS_ASSUME_NONNULL_BEGIN
58
+ @interface OPPCheckoutSettings : NSObject
59
+
60
+ /// @name Properties
61
+
62
+ /**
63
+ The custom theme for the payment forms. Default is `OPPCheckoutThemeStyleLight`.
64
+ @see `OPPCheckoutThemeStyle`
65
+ */
66
+ @property (nonatomic, readonly) OPPCheckoutTheme *theme;
67
+
68
+ /**
69
+ This URL will receive the result of an asynchronous payment. Must be sent URL encoded.
70
+ */
71
+ @property (nonatomic, copy, nullable) NSString *shopperResultURL;
72
+
73
+ /**
74
+ The list of payment brands to be shown.
75
+ */
76
+ @property (nonatomic, copy) NSArray<NSString *> *paymentBrands;
77
+
78
+ /**
79
+ A constant that specifies the store payment details mode. Default is `OPPCheckoutStorePaymentDetailsModeNever`.
80
+ */
81
+ @property (nonatomic) OPPCheckoutStorePaymentDetailsMode storePaymentDetails;
82
+
83
+ /**
84
+ A constant that specifies whether request CVV or not. Default is `OPPCheckoutSkipCVVModeNever`.
85
+ */
86
+ @property (nonatomic) OPPCheckoutSkipCVVMode skipCVV;
87
+
88
+ /**
89
+ A flag that specifies whether show card holder name in the card detail view or not. Default is `YES`.
90
+ */
91
+ @property (nonatomic, getter=isCardHolderVisible) BOOL cardHolderVisible;
92
+
93
+ /**
94
+ List of possible numbers of installments.
95
+ */
96
+ @property (nonatomic, copy) NSArray<NSNumber *> *installmentOptions;
97
+
98
+ /**
99
+ A flag that specifies whether payment should be split into installments.
100
+ */
101
+ @property (nonatomic, getter=isInstallmentEnabled) BOOL installmentEnabled;
102
+
103
+ /**
104
+ Set of security policies to confirm payment.
105
+ Increase security for tokens or specific payment methods with Touch ID/Face ID or passcode.
106
+ */
107
+ @property (nonatomic, copy, nullable) NSArray<OPPSecurityPolicy *> *securityPolicies;
108
+
109
+ /**
110
+ The language used for language specific labels in ISO 639-1 language identifier.
111
+ If the language is not supported English will be used.
112
+ If language is `nil`, app wil use the first supported language from language settings.
113
+ */
114
+ @property (nonatomic, copy, nullable) NSString *language;
115
+
116
+ /** Encapsulates a request for payment, including information about payment processing capabilities and the payment amount. */
117
+ @property (nonatomic, nullable) PKPaymentRequest *applePayPaymentRequest;
118
+
119
+ /** Sets the country to be used for Klarna checkout in ISO 3166-1 alpha-2 country identifier. By default, uses `countryCode` from device locale if supported. Otherwise, use `DE`. */
120
+ @property (nonatomic, copy, nullable) NSString *klarnaCountry;
121
+
122
+ /** Sets the fee to be used for the "Billing agreement" link during a Klarna Invoice checkout. */
123
+ @property (nonatomic, nullable) NSDecimalNumber *klarnaInvoiceFee;
124
+
125
+ /** Sets the fee to be used for the "Read more" link during a Klarna Installments checkout. */
126
+ @property (nonatomic, nullable) NSDecimalNumber *klarnaInstallmentsFee;
127
+
128
+ /**
129
+ A flag that specifies whether show IBAN field on the Giropay payment form or not. Default is `NO`.
130
+ */
131
+ @property (nonatomic, getter=isIBANRequired) BOOL IBANRequired;
132
+
133
+ /**
134
+ A mode that specifies how to display card brands on payment method selection screen.
135
+ Default is `OPPCheckoutCardBrandsDisplayModeGrouped`.
136
+ */
137
+ @property (nonatomic) OPPCheckoutCardBrandsDisplayMode cardBrandsDisplayMode;
138
+
139
+ /**
140
+ A flag that specifies whether show total amount in the checkout or not.
141
+ If `YES`, amount is shown on the payment method selection screen and in the 'Pay' buttons.
142
+ Default is `NO`.
143
+ */
144
+ @property (nonatomic) BOOL displayTotalAmount;
145
+
146
+ /**
147
+ Type of automatic card brand detection to be used.
148
+ Default is `OPPCheckoutBrandDetectionTypeRegex`.
149
+ */
150
+ @property (nonatomic) OPPCheckoutBrandDetectionType brandDetectionType;
151
+
152
+ /**
153
+ Sets the preferred order of the detected card brands to be shown under the card number text field.
154
+ By default order from `paymentBrands` is used.
155
+ */
156
+ @property (nonatomic, copy) NSArray<NSString *> *brandDetectionPriority;
157
+
158
+ /**
159
+ A flag that specifies whether show multiple detected brands under card number text field or keep them hidden by default.
160
+ Default is `YES`.
161
+ */
162
+ @property (nonatomic) BOOL showDetectedBrands;
163
+
164
+ /// @name Deprecated
165
+
166
+ /**
167
+ The custom URL scheme for your app. This must be configured if your app integrates a payment option that may switch to either Mobile Safari or to another app to finish the payment authorization workflow.
168
+ @warning **Deprecated**. The property is no longer used.
169
+ */
170
+ @property (nonatomic, copy) NSString *schemeURL DEPRECATED_ATTRIBUTE;
171
+
172
+ /**
173
+ The description to show on the payment page above the total amount.
174
+ @warning **Deprecated**. The property is no longer used.
175
+ */
176
+ @property (nonatomic, copy, nullable) NSString *paymentTitle DEPRECATED_ATTRIBUTE;
177
+
178
+ /**
179
+ The payment methods to be shown. Expected an `NSArray` of `NSNumbers` representing different `OPPCheckoutPaymentMethod` enums.
180
+ @warning **Deprecated**. Use `paymentBrands` instead.
181
+ */
182
+ @property (nonatomic, copy) NSArray<NSNumber *> *paymentMethods DEPRECATED_ATTRIBUTE;
183
+
184
+ @end
185
+ NS_ASSUME_NONNULL_END
@@ -0,0 +1,268 @@
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 UIKit;
14
+
15
+ /**
16
+ An enumeration of the in-App payment pages styles.
17
+ */
18
+ typedef NS_ENUM(NSInteger, OPPCheckoutThemeStyle) {
19
+ /// Ready to use light style for the payment pages.
20
+ OPPCheckoutThemeStyleLight,
21
+ /// Ready to use dark style for the payment pages.
22
+ OPPCheckoutThemeStyleDark
23
+ };
24
+
25
+ /**
26
+ Class which used to visually style in-App payment pages by customizing colors and fonts.
27
+ There are two ready to use styles. You can leave it as is or override some properties.
28
+ */
29
+
30
+ NS_ASSUME_NONNULL_BEGIN
31
+ @interface OPPCheckoutTheme : NSObject
32
+
33
+ /// @name Designated initializer
34
+
35
+ /**
36
+ Creates and returns theme initialized with the `OPPCheckoutThemeStyle`.
37
+ @param style Style for checkout screens.
38
+ */
39
+ - (instancetype)initWithThemeStyle:(OPPCheckoutThemeStyle)style NS_DESIGNATED_INITIALIZER;
40
+
41
+ /// @name Properties
42
+ /**
43
+ Predefined style for checkout screens (default is light theme).
44
+ */
45
+ @property (nonatomic) OPPCheckoutThemeStyle style;
46
+
47
+ /// @name General colors of the payment pages UI
48
+
49
+ /**
50
+ Background color for any views in this theme.
51
+ */
52
+ @property (nonatomic) UIColor *primaryBackgroundColor;
53
+
54
+ /**
55
+ Text color for any important labels in a view.
56
+ */
57
+ @property (nonatomic) UIColor *primaryForegroundColor;
58
+
59
+ /**
60
+ The color of the confirmation buttons.
61
+ */
62
+ @property (nonatomic) UIColor *confirmationButtonColor;
63
+
64
+ /**
65
+ Accent color used for active elements (like text fields, switch element).
66
+ */
67
+ @property (nonatomic) UIColor *accentColor;
68
+
69
+ /**
70
+ Text color for confirmation buttons.
71
+ */
72
+ @property (nonatomic) UIColor *confirmationButtonTextColor;
73
+
74
+ /**
75
+ Input field text color.
76
+ */
77
+ @property (nonatomic) UIColor *textFieldTextColor;
78
+
79
+ /**
80
+ Placeholder color for text fields.
81
+ */
82
+ @property (nonatomic) UIColor *textFieldPlaceholderColor;
83
+
84
+ /**
85
+ Border color of inactive text field. accentColor is used for active state.
86
+ */
87
+ @property (nonatomic) UIColor *textFieldBorderColor;
88
+
89
+ /**
90
+ Color for rendering any error messages or views.
91
+ */
92
+ @property (nonatomic) UIColor *errorColor;
93
+
94
+ /// @name Activity indicator views
95
+
96
+ /**
97
+ Indicator view processing style that is shown over primary background color.
98
+ */
99
+ @property (nonatomic) UIActivityIndicatorViewStyle activityIndicatorPrimaryStyle;
100
+
101
+ /**
102
+ Indicator view processing style that is shown over secondary background color.
103
+ */
104
+ @property (nonatomic) UIActivityIndicatorViewStyle activityIndicatorSecondaryStyle;
105
+
106
+
107
+ /// @name Navigation bar customization
108
+
109
+ /**
110
+ Navigation bar tint color.
111
+ */
112
+ @property (nonatomic) UIColor *navigationBarTintColor;
113
+
114
+ /**
115
+ Navigation bar background color.
116
+ */
117
+ @property (nonatomic) UIColor *navigationBarBackgroundColor;
118
+
119
+ /**
120
+ Text attributes for navigation bar title.
121
+ */
122
+ @property (nonatomic, copy) NSDictionary *navigationBarTextAttributes;
123
+
124
+ /**
125
+ Text attributes for navigation bar item titles.
126
+ */
127
+ @property (nonatomic, copy, nullable) NSDictionary *navigationItemTextAttributes;
128
+
129
+ /**
130
+ Custom text for the right bar button in the navigation bar.
131
+ Localized text is expected. SDK is NOT localizing this text.
132
+ Default value is "Cancel".
133
+ */
134
+ @property (nonatomic, copy, nullable) NSString *cancelBarButtonText;
135
+
136
+ /**
137
+ Custom image for the right bar button in the navigation bar.
138
+ If image is not set `cancelBarButtonText` is shown.
139
+ */
140
+ @property (nonatomic, nullable) UIImage *cancelBarButtonImage;
141
+
142
+
143
+ /// @name Payment method list customization
144
+
145
+ /*
146
+ Tint color for cell on the table view.
147
+ */
148
+ @property (nonatomic) UIColor *cellTintColor;
149
+
150
+ /**
151
+ Highlighted background color for cell on the table view.
152
+ */
153
+ @property (nonatomic) UIColor *cellHighlightedBackgroundColor;
154
+
155
+ /**
156
+ Text label highlighted color.
157
+ */
158
+ @property (nonatomic) UIColor *cellHighlightedTextColor;
159
+
160
+ /**
161
+ Text font for cell on the table view.
162
+ */
163
+ @property (nonatomic) UIFont *cellTextFont;
164
+
165
+
166
+ /**
167
+ Background color of section.
168
+ */
169
+ @property (nonatomic) UIColor *sectionBackgroundColor;
170
+
171
+ /**
172
+ Text color of section title.
173
+ */
174
+ @property (nonatomic) UIColor *sectionTextColor;
175
+
176
+ /**
177
+ Font of section title.
178
+ */
179
+ @property (nonatomic) UIFont *sectionFont;
180
+
181
+ /**
182
+ Color for separator lines.
183
+ */
184
+ @property (nonatomic) UIColor *separatorColor;
185
+
186
+ /**
187
+ Background color for payment brand icons.
188
+ */
189
+ @property (nonatomic) UIColor *paymentBrandIconBackgroundColor;
190
+
191
+ /**
192
+ Border color for payment brand icons.
193
+ */
194
+ @property (nonatomic) UIColor *paymentBrandIconBorderColor;
195
+
196
+ /**
197
+ Background color for stored payment method icons.
198
+ */
199
+ @property (nonatomic) UIColor *storedPaymentMethodIconBackgroundColor;
200
+
201
+ /**
202
+ Border color for stored payment method icons.
203
+ */
204
+ @property (nonatomic) UIColor *storedPaymentMethodIconBorderColor;
205
+
206
+
207
+ /// @name Fonts customization
208
+
209
+ /**
210
+ Text font for any important labels in a view.
211
+ */
212
+ @property (nonatomic) UIFont *primaryFont;
213
+
214
+ /**
215
+ Text font for any other labels in a view.
216
+ */
217
+ @property (nonatomic) UIFont *secondaryFont;
218
+
219
+ /**
220
+ Text font for any text fields.
221
+ */
222
+ @property (nonatomic) UIFont *textFieldFont;
223
+
224
+ /**
225
+ Text font for confirmation button.
226
+ */
227
+ @property (nonatomic) UIFont *confirmationButtonFont;
228
+
229
+ /**
230
+ Text font for rendering any error messages.
231
+ */
232
+ @property (nonatomic) UIFont *errorFont;
233
+
234
+ /**
235
+ Text font for amount label.
236
+ */
237
+ @property (nonatomic) UIFont *amountLabelFont;
238
+
239
+
240
+ /// @name Deprecated
241
+
242
+ /**
243
+ Background color for payment method icons.
244
+ @warning **Deprecated:** Use `paymentBrandIconBackgroundColor` instead.
245
+ */
246
+ @property (nonatomic) UIColor *paymentMethodIconBackgroundColor DEPRECATED_ATTRIBUTE;
247
+
248
+ /**
249
+ Background color of text fields.
250
+ @warning **Deprecated:** since 2.11.0.
251
+ */
252
+ @property (nonatomic) UIColor *textFieldBackroundColor DEPRECATED_ATTRIBUTE;
253
+
254
+ /**
255
+ Background color for any supplemental views inside a view.
256
+ @warning **Deprecated:** The property is no longer used.
257
+ */
258
+ @property (nonatomic) UIColor *secondaryBackgroundColor DEPRECATED_ATTRIBUTE;
259
+
260
+ /**
261
+ Text color for any supplementary labels in a view.
262
+ @warning **Deprecated:** The property is no longer used.
263
+ */
264
+ @property (nonatomic) UIColor *secondaryForegroundColor DEPRECATED_ATTRIBUTE;
265
+
266
+
267
+ @end
268
+ NS_ASSUME_NONNULL_END