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
package/ios/HyperPay.m ADDED
@@ -0,0 +1,93 @@
1
+
2
+ #import <Foundation/Foundation.h>
3
+ #import "HyperPay.h"
4
+ #import <React/RCTLog.h>
5
+
6
+ @implementation HyperPay
7
+
8
+ OPPPaymentProvider *provider;
9
+
10
+
11
+ RCT_EXPORT_MODULE(HyperPay)
12
+
13
+ -(instancetype)init
14
+ {
15
+ self = [super init];
16
+ if (self) {
17
+ #ifdef DEBUG
18
+ provider = [OPPPaymentProvider paymentProviderWithMode:OPPProviderModeTest];
19
+ #else
20
+ provider = [OPPPaymentProvider paymentProviderWithMode:OPPProviderModeLive];
21
+ #endif
22
+ }
23
+
24
+ return self;
25
+ }
26
+
27
+ - (NSArray<NSString *> *)supportedEvents {
28
+ return @[@"onTransactionComplete"];
29
+ }
30
+
31
+ /**
32
+ React Native functions
33
+ */
34
+
35
+ RCT_EXPORT_METHOD(createPaymentTransaction: (NSDictionary*)options resolver:(RCTPromiseResolveBlock)resolve rejecter:(RCTPromiseRejectBlock)reject) {
36
+ NSError * _Nullable error;
37
+
38
+ OPPCardPaymentParams *params = [OPPCardPaymentParams cardPaymentParamsWithCheckoutID:[options valueForKey:@"checkoutID"]
39
+ paymentBrand:[options valueForKey:@"paymentBrand"]
40
+ holder:[options valueForKey:@"holderName"]
41
+ number:[options valueForKey:@"cardNumber"]
42
+ expiryMonth:[options valueForKey:@"expiryMonth"]
43
+ expiryYear:[options valueForKey:@"expiryYear"]
44
+ CVV:[options valueForKey:@"cvv"]
45
+ error:&error];
46
+
47
+ if (error) {
48
+ NSLog(@"%s", "error");
49
+ reject(@"createTransaction",error.localizedDescription, error);
50
+
51
+ } else {
52
+ params.shopperResultURL =[options valueForKey:@"shopperResultURL"];
53
+
54
+ OPPTransaction *transaction = [OPPTransaction transactionWithPaymentParams:params];
55
+
56
+ [provider submitTransaction:transaction completionHandler:^(OPPTransaction * _Nonnull transaction, NSError * _Nullable error) {
57
+ NSDictionary *transactionResult;
58
+ if (transaction.type == OPPTransactionTypeAsynchronous) {
59
+
60
+ transactionResult = @{
61
+ @"redirectURL":transaction.redirectURL.absoluteString,
62
+ @"status":@"pending",
63
+ @"checkoutId":transaction.paymentParams.checkoutID
64
+ };
65
+ resolve(transactionResult);
66
+
67
+ } else if (transaction.type == OPPTransactionTypeSynchronous) {
68
+
69
+ transactionResult = @{
70
+ @"status":@"completed",
71
+ @"checkoutId":transaction.paymentParams.checkoutID
72
+ };
73
+ resolve(transactionResult);
74
+ } else {
75
+ reject(@"createTransaction",error.localizedDescription, error);
76
+ }
77
+ }];
78
+ }
79
+ }
80
+
81
+ RCT_REMAP_METHOD(multiply,
82
+ multiplyWithA:(nonnull NSNumber*)a withB:(nonnull NSNumber*)b
83
+ withResolver:(RCTPromiseResolveBlock)resolve
84
+ withRejecter:(RCTPromiseRejectBlock)reject)
85
+ {
86
+ NSNumber *result = @([a floatValue] * [b floatValue]);
87
+
88
+ resolve(result);
89
+ }
90
+
91
+ @end
92
+
93
+
@@ -7,7 +7,9 @@
7
7
  objects = {
8
8
 
9
9
  /* Begin PBXBuildFile section */
10
- 5E555C0D2413F4C50049A1A2 /* HyperpaySdk.m in Sources */ = {isa = PBXBuildFile; fileRef = B3E7B5891CC2AC0600A0062D /* HyperpaySdk.m */; };
10
+
11
+ 5E555C0D2413F4C50049A1A2 /* HyperPay.m in Sources */ = {isa = PBXBuildFile; fileRef = B3E7B5891CC2AC0600A0062D /* HyperPay.m */; };
12
+
11
13
  /* End PBXBuildFile section */
12
14
 
13
15
  /* Begin PBXCopyFilesBuildPhase section */
@@ -23,9 +25,11 @@
23
25
  /* End PBXCopyFilesBuildPhase section */
24
26
 
25
27
  /* Begin PBXFileReference section */
26
- 134814201AA4EA6300B7C361 /* libHyperpaySdk.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = libHyperpaySdk.a; sourceTree = BUILT_PRODUCTS_DIR; };
27
- B3E7B5881CC2AC0600A0062D /* HyperpaySdk.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = HyperpaySdk.h; sourceTree = "<group>"; };
28
- B3E7B5891CC2AC0600A0062D /* HyperpaySdk.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = HyperpaySdk.m; sourceTree = "<group>"; };
28
+ 134814201AA4EA6300B7C361 /* libHyperPay.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = libHyperPay.a; sourceTree = BUILT_PRODUCTS_DIR; };
29
+
30
+ B3E7B5881CC2AC0600A0062D /* HyperPay.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = HyperPay.h; sourceTree = "<group>"; };
31
+ B3E7B5891CC2AC0600A0062D /* HyperPay.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = HyperPay.m; sourceTree = "<group>"; };
32
+
29
33
  /* End PBXFileReference section */
30
34
 
31
35
  /* Begin PBXFrameworksBuildPhase section */
@@ -42,7 +46,7 @@
42
46
  134814211AA4EA7D00B7C361 /* Products */ = {
43
47
  isa = PBXGroup;
44
48
  children = (
45
- 134814201AA4EA6300B7C361 /* libHyperpaySdk.a */,
49
+ 134814201AA4EA6300B7C361 /* libHyperPay.a */,
46
50
  );
47
51
  name = Products;
48
52
  sourceTree = "<group>";
@@ -50,8 +54,10 @@
50
54
  58B511D21A9E6C8500147676 = {
51
55
  isa = PBXGroup;
52
56
  children = (
53
- B3E7B5881CC2AC0600A0062D /* HyperpaySdk.h */,
54
- B3E7B5891CC2AC0600A0062D /* HyperpaySdk.m */,
57
+
58
+ B3E7B5881CC2AC0600A0062D /* HyperPay.h */,
59
+ B3E7B5891CC2AC0600A0062D /* HyperPay.m */,
60
+
55
61
  134814211AA4EA7D00B7C361 /* Products */,
56
62
  );
57
63
  sourceTree = "<group>";
@@ -59,9 +65,9 @@
59
65
  /* End PBXGroup section */
60
66
 
61
67
  /* Begin PBXNativeTarget section */
62
- 58B511DA1A9E6C8500147676 /* HyperpaySdk */ = {
68
+ 58B511DA1A9E6C8500147676 /* HyperPay */ = {
63
69
  isa = PBXNativeTarget;
64
- buildConfigurationList = 58B511EF1A9E6C8500147676 /* Build configuration list for PBXNativeTarget "HyperpaySdk" */;
70
+ buildConfigurationList = 58B511EF1A9E6C8500147676 /* Build configuration list for PBXNativeTarget "HyperPay" */;
65
71
  buildPhases = (
66
72
  58B511D71A9E6C8500147676 /* Sources */,
67
73
  58B511D81A9E6C8500147676 /* Frameworks */,
@@ -71,9 +77,9 @@
71
77
  );
72
78
  dependencies = (
73
79
  );
74
- name = HyperpaySdk;
80
+ name = HyperPay;
75
81
  productName = RCTDataManager;
76
- productReference = 134814201AA4EA6300B7C361 /* libHyperpaySdk.a */;
82
+ productReference = 134814201AA4EA6300B7C361 /* libHyperPay.a */;
77
83
  productType = "com.apple.product-type.library.static";
78
84
  };
79
85
  /* End PBXNativeTarget section */
@@ -90,7 +96,7 @@
90
96
  };
91
97
  };
92
98
  };
93
- buildConfigurationList = 58B511D61A9E6C8500147676 /* Build configuration list for PBXProject "HyperpaySdk" */;
99
+ buildConfigurationList = 58B511D61A9E6C8500147676 /* Build configuration list for PBXProject "HyperPay" */;
94
100
  compatibilityVersion = "Xcode 3.2";
95
101
  developmentRegion = English;
96
102
  hasScannedForEncodings = 0;
@@ -103,7 +109,7 @@
103
109
  projectDirPath = "";
104
110
  projectRoot = "";
105
111
  targets = (
106
- 58B511DA1A9E6C8500147676 /* HyperpaySdk */,
112
+ 58B511DA1A9E6C8500147676 /* HyperPay */,
107
113
  );
108
114
  };
109
115
  /* End PBXProject section */
@@ -113,7 +119,9 @@
113
119
  isa = PBXSourcesBuildPhase;
114
120
  buildActionMask = 2147483647;
115
121
  files = (
116
- B3E7B58A1CC2AC0600A0062D /* HyperpaySdk.m in Sources */,
122
+
123
+ B3E7B58A1CC2AC0600A0062D /* HyperPay.m in Sources */,
124
+
117
125
  );
118
126
  runOnlyForDeploymentPostprocessing = 0;
119
127
  };
@@ -148,7 +156,6 @@
148
156
  COPY_PHASE_STRIP = NO;
149
157
  ENABLE_STRICT_OBJC_MSGSEND = YES;
150
158
  ENABLE_TESTABILITY = YES;
151
- "EXCLUDED_ARCHS[sdk=*]" = arm64;
152
159
  GCC_C_LANGUAGE_STANDARD = gnu99;
153
160
  GCC_DYNAMIC_NO_PIC = NO;
154
161
  GCC_NO_COMMON_BLOCKS = YES;
@@ -199,7 +206,6 @@
199
206
  COPY_PHASE_STRIP = YES;
200
207
  ENABLE_NS_ASSERTIONS = NO;
201
208
  ENABLE_STRICT_OBJC_MSGSEND = YES;
202
- "EXCLUDED_ARCHS[sdk=*]" = arm64;
203
209
  GCC_C_LANGUAGE_STANDARD = gnu99;
204
210
  GCC_NO_COMMON_BLOCKS = YES;
205
211
  GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
@@ -226,8 +232,9 @@
226
232
  );
227
233
  LIBRARY_SEARCH_PATHS = "$(inherited)";
228
234
  OTHER_LDFLAGS = "-ObjC";
229
- PRODUCT_NAME = HyperpaySdk;
235
+ PRODUCT_NAME = HyperPay;
230
236
  SKIP_INSTALL = YES;
237
+
231
238
  };
232
239
  name = Debug;
233
240
  };
@@ -242,15 +249,16 @@
242
249
  );
243
250
  LIBRARY_SEARCH_PATHS = "$(inherited)";
244
251
  OTHER_LDFLAGS = "-ObjC";
245
- PRODUCT_NAME = HyperpaySdk;
252
+ PRODUCT_NAME = HyperPay;
246
253
  SKIP_INSTALL = YES;
254
+
247
255
  };
248
256
  name = Release;
249
257
  };
250
258
  /* End XCBuildConfiguration section */
251
259
 
252
260
  /* Begin XCConfigurationList section */
253
- 58B511D61A9E6C8500147676 /* Build configuration list for PBXProject "HyperpaySdk" */ = {
261
+ 58B511D61A9E6C8500147676 /* Build configuration list for PBXProject "HyperPay" */ = {
254
262
  isa = XCConfigurationList;
255
263
  buildConfigurations = (
256
264
  58B511ED1A9E6C8500147676 /* Debug */,
@@ -259,7 +267,7 @@
259
267
  defaultConfigurationIsVisible = 0;
260
268
  defaultConfigurationName = Release;
261
269
  };
262
- 58B511EF1A9E6C8500147676 /* Build configuration list for PBXNativeTarget "HyperpaySdk" */ = {
270
+ 58B511EF1A9E6C8500147676 /* Build configuration list for PBXNativeTarget "HyperPay" */ = {
263
271
  isa = XCConfigurationList;
264
272
  buildConfigurations = (
265
273
  58B511F01A9E6C8500147676 /* Debug */,
@@ -1 +1,24 @@
1
- export declare function multiply(a: number, b: number): Promise<number>;
1
+
2
+
3
+
4
+ export type CreateTransactionResponseType = {
5
+ status: 'pending',
6
+ checkoutId: string,
7
+ redirectURL: string
8
+ }
9
+
10
+ export type CreateTransactionParams = {
11
+ paymentBrand: string,
12
+ holderName: string,
13
+ cardNumber: string,
14
+ expiryYear: string,
15
+ expiryMonth: string,
16
+ cvv: string,
17
+ checkoutID: string,
18
+ shopperResultURL: string
19
+ }
20
+
21
+ export declare function
22
+ createPaymentTransaction(params: CreateTransactionParams):
23
+ Promise<CreateTransactionResponseType>;
24
+
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "react-native-hyperpay-sdk",
3
- "version": "0.2.0",
4
- "description": "test",
3
+ "version": "0.5.0",
4
+ "description": "hyperpay",
5
5
  "main": "lib/commonjs/index",
6
6
  "module": "lib/module/index",
7
7
  "types": "lib/typescript/index.d.ts",
@@ -13,7 +13,9 @@
13
13
  "android",
14
14
  "ios",
15
15
  "cpp",
16
- "react-native-hyperpay-sdk.podspec",
16
+ "react-native-hyperpay.podspec",
17
+ "OPPWAMobile-Resources.bundle",
18
+ "OPPWAMobile.framework",
17
19
  "!lib/typescript/example",
18
20
  "!android/build",
19
21
  "!ios/build",
@@ -25,50 +27,46 @@
25
27
  "test": "jest",
26
28
  "typescript": "tsc --noEmit",
27
29
  "lint": "eslint \"**/*.{js,ts,tsx}\"",
28
- "prepare": "bob build",
29
30
  "release": "release-it",
30
31
  "example": "yarn --cwd example",
31
- "bootstrap": "yarn example && yarn && yarn example pods"
32
+ "pods": "cd example && pod-install --quiet",
33
+ "bootstrap": "yarn example && yarn && yarn pods"
32
34
  },
33
35
  "keywords": [
34
36
  "react-native",
35
37
  "ios",
36
38
  "android"
37
39
  ],
38
- "repository": "https://github.com/RMabroukS/react-native-hyperpay-sdk",
40
+ "repository": "https://github.com/RMabroukS/react-native-hyperpay",
39
41
  "author": "RMabroukS <r.mabrouk.sayed@gmail.com> (https://github.com/RMabroukS)",
40
42
  "license": "MIT",
41
43
  "bugs": {
42
- "url": "https://github.com/RMabroukS/react-native-hyperpay-sdk/issues"
44
+ "url": "https://github.com/RMabroukS/react-native-hyperpay/issues"
43
45
  },
44
- "homepage": "https://github.com/RMabroukS/react-native-hyperpay-sdk#readme",
46
+ "homepage": "https://github.com/RMabroukS/react-native-hyperpay#readme",
45
47
  "publishConfig": {
46
48
  "registry": "https://registry.npmjs.org/"
47
49
  },
48
50
  "devDependencies": {
49
- "@arkweid/lefthook": "^0.7.7",
50
- "@babel/eslint-parser": "^7.18.2",
51
- "@commitlint/config-conventional": "^17.0.2",
52
- "@react-native-community/eslint-config": "^3.0.2",
53
- "@release-it/conventional-changelog": "^5.0.0",
54
- "@types/jest": "^28.1.2",
55
- "@types/react": "~17.0.21",
56
- "@types/react-native": "0.68.0",
57
- "commitlint": "^17.0.2",
58
- "eslint": "^8.4.1",
59
- "eslint-config-prettier": "^8.5.0",
60
- "eslint-plugin-prettier": "^4.0.0",
61
- "jest": "^28.1.1",
51
+ "@commitlint/config-conventional": "^11.0.0",
52
+ "@react-native-community/eslint-config": "^2.0.0",
53
+ "@release-it/conventional-changelog": "^2.0.0",
54
+ "@types/jest": "^26.0.0",
55
+ "@types/react": "^16.9.19",
56
+ "@types/react-native": "0.62.13",
57
+ "commitlint": "^11.0.0",
58
+ "eslint": "^7.2.0",
59
+ "eslint-config-prettier": "^7.0.0",
60
+ "eslint-plugin-prettier": "^3.1.3",
61
+ "husky": "^6.0.0",
62
+ "jest": "^26.0.1",
62
63
  "pod-install": "^0.1.0",
63
64
  "prettier": "^2.0.5",
64
- "react": "17.0.2",
65
- "react-native": "0.68.2",
66
- "react-native-builder-bob": "^0.18.3",
67
- "release-it": "^15.0.0",
68
- "typescript": "^4.5.2"
69
- },
70
- "resolutions": {
71
- "@types/react": "17.0.21"
65
+ "react": "16.13.1",
66
+ "react-native": "0.63.4",
67
+ "react-native-builder-bob": "^0.18.0",
68
+ "release-it": "^14.2.2",
69
+ "typescript": "^4.1.3"
72
70
  },
73
71
  "peerDependencies": {
74
72
  "react": "*",
@@ -105,7 +103,6 @@
105
103
  },
106
104
  "eslintConfig": {
107
105
  "root": true,
108
- "parser": "@babel/eslint-parser",
109
106
  "extends": [
110
107
  "@react-native-community",
111
108
  "prettier"
@@ -0,0 +1,20 @@
1
+ require "json"
2
+
3
+ package = JSON.parse(File.read(File.join(__dir__, "package.json")))
4
+
5
+ Pod::Spec.new do |s|
6
+ s.name = "react-native-hyperpay"
7
+ s.version = package["version"]
8
+ s.summary = package["description"]
9
+ s.homepage = package["homepage"]
10
+ s.license = package["license"]
11
+ s.authors = package["author"]
12
+ s.platforms = { :ios => "10.0" }
13
+ s.source = { :git => "https://github.com/RMabroukS/react-native-hyperpay.git", :tag => "#{s.version}" }
14
+ s.source_files = "ios/**/*.{h,m,mm}"
15
+ s.dependency "React-Core"
16
+ s.requires_arc = true
17
+ s.vendored_frameworks = "OPPWAMobile.framework"
18
+ s.public_header_files = "OPPWAMobile.framework/Versions/2.47.0/Headers/*.h"
19
+ s.resource_bundle = { 'OPPWAMobile-Resources' => '*' }
20
+ end
package/src/index.tsx CHANGED
@@ -1,20 +1,26 @@
1
1
  import { NativeModules, Platform } from 'react-native';
2
-
2
+ import { CreateTransactionResponseType, CreateTransactionParams } from '../lib/typescript'
3
3
  const LINKING_ERROR =
4
- `The package 'react-native-hyperpay-sdk' doesn't seem to be linked. Make sure: \n\n` +
4
+ `The package 'react-native-hyperpay' doesn't seem to be linked. Make sure: \n\n` +
5
5
  Platform.select({ ios: "- You have run 'pod install'\n", default: '' }) +
6
6
  '- You rebuilt the app after installing the package\n' +
7
7
  '- You are not using Expo managed workflow\n';
8
8
 
9
- const HyperpaySdk = NativeModules.HyperpaySdk ? NativeModules.HyperpaySdk : new Proxy(
10
- {},
11
- {
12
- get() {
13
- throw new Error(LINKING_ERROR);
14
- },
15
- }
16
- );
9
+ const HyperPay = NativeModules.HyperPay
10
+ ? NativeModules.HyperPay
11
+ : new Proxy(
12
+ {},
13
+ {
14
+ get() {
15
+ throw new Error(LINKING_ERROR);
16
+ },
17
+ }
18
+ );
17
19
 
18
20
  export function multiply(a: number, b: number): Promise<number> {
19
- return HyperpaySdk.multiply(a, b);
21
+ return HyperPay.multiply(a, b);
22
+ }
23
+
24
+ export function createPaymentTransaction(params: CreateTransactionParams): Promise<CreateTransactionResponseType> {
25
+ return HyperPay.createPaymentTransaction(params);
20
26
  }
@@ -1,5 +0,0 @@
1
- HyperpaySdk_kotlinVersion=1.7.0
2
- HyperpaySdk_minSdkVersion=21
3
- HyperpaySdk_targetSdkVersion=31
4
- HyperpaySdk_compileSdkVersion=31
5
- HyperpaySdk_ndkversion=21.4.7075529
package/ios/HyperpaySdk.h DELETED
@@ -1,5 +0,0 @@
1
- #import <React/RCTBridgeModule.h>
2
-
3
- @interface HyperpaySdk : NSObject <RCTBridgeModule>
4
-
5
- @end
@@ -1,31 +0,0 @@
1
- #import "HyperpaySdk.h"
2
-
3
- #ifdef RCT_NEW_ARCH_ENABLED
4
- #import "RNHyperpaySdkSpec.h"
5
- #endif
6
-
7
- @implementation HyperpaySdk
8
- RCT_EXPORT_MODULE()
9
-
10
- // Example method
11
- // See // https://reactnative.dev/docs/native-modules-ios
12
- RCT_REMAP_METHOD(multiply,
13
- multiplyWithA:(double)a withB:(double)b
14
- withResolver:(RCTPromiseResolveBlock)resolve
15
- withRejecter:(RCTPromiseRejectBlock)reject)
16
- {
17
- NSNumber *result = @(a * b);
18
-
19
- resolve(result);
20
- }
21
-
22
- // Don't compile this code when we build for the old architecture.
23
- #ifdef RCT_NEW_ARCH_ENABLED
24
- - (std::shared_ptr<facebook::react::TurboModule>)getTurboModule:
25
- (const facebook::react::ObjCTurboModule::InitParams &)params
26
- {
27
- return std::make_shared<facebook::react::NativeHyperpaySdkSpecJSI>(params);
28
- }
29
- #endif
30
-
31
- @end
@@ -1,40 +0,0 @@
1
- require "json"
2
-
3
- package = JSON.parse(File.read(File.join(__dir__, "package.json")))
4
- folly_version = '2021.06.28.00-v2'
5
- folly_compiler_flags = '-DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1 -Wno-comma -Wno-shorten-64-to-32'
6
-
7
- Pod::Spec.new do |s|
8
- s.name = "react-native-hyperpay-sdk"
9
- s.version = package["version"]
10
- s.summary = package["description"]
11
- s.homepage = package["homepage"]
12
- s.license = package["license"]
13
- s.authors = package["author"]
14
-
15
- s.platforms = { :ios => "10.0" }
16
- s.source = { :git => "https://github.com/RMabroukS/react-native-hyperpay-sdk.git", :tag => "#{s.version}" }
17
-
18
- s.source_files = "ios/**/*.{h,m,mm}"
19
-
20
- s.dependency "React-Core"
21
- s.requires_arc = true
22
- s.vendored_frameworks = "OPPWAMobile.framework"
23
- s.public_header_files = "OPPWAMobile.framework/Versions/2.47.0/Headers/*.h"
24
- s.resource_bundle = { 'OPPWAMobile-Resources' => '*' }
25
-
26
- # Don't install the dependencies when we run `pod install` in the old architecture.
27
- if ENV['RCT_NEW_ARCH_ENABLED'] == '1' then
28
- s.compiler_flags = folly_compiler_flags + " -DRCT_NEW_ARCH_ENABLED=1"
29
- s.pod_target_xcconfig = {
30
- "HEADER_SEARCH_PATHS" => "\"$(PODS_ROOT)/boost\"",
31
- "CLANG_CXX_LANGUAGE_STANDARD" => "c++17"
32
- }
33
-
34
- s.dependency "React-Codegen"
35
- s.dependency "RCT-Folly", folly_version
36
- s.dependency "RCTRequired"
37
- s.dependency "RCTTypeSafety"
38
- s.dependency "ReactCommon/turbomodule/core"
39
- end
40
- end