react-native-hyperpay-sdk 0.10.0 → 0.13.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 (171) hide show
  1. package/OPPWAMobile.framework/.DS_Store +0 -0
  2. package/OPPWAMobile.framework/Resources/.DS_Store +0 -0
  3. package/{OPPWAMobile-Resources.bundle → OPPWAMobile.framework/Resources}/Klarna.json +0 -0
  4. package/{OPPWAMobile-Resources.bundle → OPPWAMobile.framework/Resources}/OPPBrandCollectionViewCell.nib +0 -0
  5. package/{OPPWAMobile-Resources.bundle → OPPWAMobile.framework/Resources}/OPPCardDetailsViewController.nib +0 -0
  6. package/{OPPWAMobile-Resources.bundle → OPPWAMobile.framework/Resources}/OPPCardsTableViewCell.nib +0 -0
  7. package/{OPPWAMobile-Resources.bundle → OPPWAMobile.framework/Resources}/OPPCheckoutTextFieldView.nib +0 -0
  8. package/{OPPWAMobile-Resources.bundle → OPPWAMobile.framework/Resources}/OPPChinaUnionPayDetailsViewController.nib +0 -0
  9. package/{OPPWAMobile-Resources.bundle → OPPWAMobile.framework/Resources}/OPPDirectDebitDetailsViewController.nib +0 -0
  10. package/{OPPWAMobile-Resources.bundle → OPPWAMobile.framework/Resources}/OPPGiropayDetailsViewController.nib +0 -0
  11. package/{OPPWAMobile-Resources.bundle → OPPWAMobile.framework/Resources}/OPPIkanoDetailsViewController.nib +0 -0
  12. package/{OPPWAMobile-Resources.bundle → OPPWAMobile.framework/Resources}/OPPKlarnaDetailsViewController.nib +0 -0
  13. package/{OPPWAMobile-Resources.bundle → OPPWAMobile.framework/Resources}/OPPKlarnaTableViewCell.nib +0 -0
  14. package/{OPPWAMobile-Resources.bundle → OPPWAMobile.framework/Resources}/OPPListDetailsViewController.nib +0 -0
  15. package/{OPPWAMobile-Resources.bundle → OPPWAMobile.framework/Resources}/OPPMBWAYDetailsViewController.nib +0 -0
  16. package/{OPPWAMobile-Resources.bundle → OPPWAMobile.framework/Resources}/OPPPaymentFormHeaderView.nib +0 -0
  17. package/{OPPWAMobile-Resources.bundle → OPPWAMobile.framework/Resources}/OPPPaymentProcessingViewController.nib +0 -0
  18. package/{OPPWAMobile-Resources.bundle → OPPWAMobile.framework/Resources}/OPPPaymentSchemeTableViewCell.nib +0 -0
  19. package/{OPPWAMobile-Resources.bundle → OPPWAMobile.framework/Resources}/OPPPaymentSchemeViewController.nib +0 -0
  20. package/{OPPWAMobile-Resources.bundle → OPPWAMobile.framework/Resources}/OPPStorePaymentDetailsView.nib +0 -0
  21. package/{OPPWAMobile-Resources.bundle → OPPWAMobile.framework/Resources}/OPPTokenCollectionViewCell.nib +0 -0
  22. package/{OPPWAMobile-Resources.bundle → OPPWAMobile.framework/Resources}/OPPTokensTableViewCell.nib +0 -0
  23. package/{OPPWAMobile-Resources.bundle → OPPWAMobile.framework/Resources}/OPPTotalAmountView.nib/objects-11.0+.nib +0 -0
  24. package/{OPPWAMobile-Resources.bundle → OPPWAMobile.framework/Resources}/OPPTotalAmountView.nib/runtime.nib +0 -0
  25. package/{OPPWAMobile-Resources.bundle → OPPWAMobile.framework/Resources}/alipay.png +0 -0
  26. package/{OPPWAMobile-Resources.bundle → OPPWAMobile.framework/Resources}/alipay@2x.png +0 -0
  27. package/{OPPWAMobile-Resources.bundle → OPPWAMobile.framework/Resources}/alipay@3x.png +0 -0
  28. package/{OPPWAMobile-Resources.bundle → OPPWAMobile.framework/Resources}/amex.png +0 -0
  29. package/{OPPWAMobile-Resources.bundle → OPPWAMobile.framework/Resources}/amex@2x.png +0 -0
  30. package/{OPPWAMobile-Resources.bundle → OPPWAMobile.framework/Resources}/amex@3x.png +0 -0
  31. package/{OPPWAMobile-Resources.bundle → OPPWAMobile.framework/Resources}/applepay.png +0 -0
  32. package/{OPPWAMobile-Resources.bundle → OPPWAMobile.framework/Resources}/applepay@2x.png +0 -0
  33. package/{OPPWAMobile-Resources.bundle → OPPWAMobile.framework/Resources}/applepay@3x.png +0 -0
  34. package/{OPPWAMobile-Resources.bundle → OPPWAMobile.framework/Resources}/ar.lproj/OPPCheckout.strings +0 -0
  35. package/{OPPWAMobile-Resources.bundle → OPPWAMobile.framework/Resources}/arrow_down.png +0 -0
  36. package/{OPPWAMobile-Resources.bundle → OPPWAMobile.framework/Resources}/arrow_up.png +0 -0
  37. package/{OPPWAMobile-Resources.bundle → OPPWAMobile.framework/Resources}/boleto.png +0 -0
  38. package/{OPPWAMobile-Resources.bundle → OPPWAMobile.framework/Resources}/boleto@2x.png +0 -0
  39. package/{OPPWAMobile-Resources.bundle → OPPWAMobile.framework/Resources}/boleto@3x.png +0 -0
  40. package/{OPPWAMobile-Resources.bundle → OPPWAMobile.framework/Resources}/ca.lproj/OPPCheckout.strings +0 -0
  41. package/{OPPWAMobile-Resources.bundle → OPPWAMobile.framework/Resources}/camera_icon.png +0 -0
  42. package/{OPPWAMobile-Resources.bundle → OPPWAMobile.framework/Resources}/camera_icon@2x.png +0 -0
  43. package/{OPPWAMobile-Resources.bundle → OPPWAMobile.framework/Resources}/camera_icon@3x.png +0 -0
  44. package/{OPPWAMobile-Resources.bundle → OPPWAMobile.framework/Resources}/card.png +0 -0
  45. package/{OPPWAMobile-Resources.bundle → OPPWAMobile.framework/Resources}/card@2x.png +0 -0
  46. package/{OPPWAMobile-Resources.bundle → OPPWAMobile.framework/Resources}/card@3x.png +0 -0
  47. package/{OPPWAMobile-Resources.bundle → OPPWAMobile.framework/Resources}/cartebleue.png +0 -0
  48. package/{OPPWAMobile-Resources.bundle → OPPWAMobile.framework/Resources}/cartebleue@2x.png +0 -0
  49. package/{OPPWAMobile-Resources.bundle → OPPWAMobile.framework/Resources}/cartebleue@3x.png +0 -0
  50. package/{OPPWAMobile-Resources.bundle → OPPWAMobile.framework/Resources}/dankort.png +0 -0
  51. package/{OPPWAMobile-Resources.bundle → OPPWAMobile.framework/Resources}/dankort@2x.png +0 -0
  52. package/{OPPWAMobile-Resources.bundle → OPPWAMobile.framework/Resources}/dankort@3x.png +0 -0
  53. package/{OPPWAMobile-Resources.bundle → OPPWAMobile.framework/Resources}/de.lproj/OPPCheckout.strings +0 -0
  54. package/{OPPWAMobile-Resources.bundle → OPPWAMobile.framework/Resources}/diners.png +0 -0
  55. package/{OPPWAMobile-Resources.bundle → OPPWAMobile.framework/Resources}/diners@2x.png +0 -0
  56. package/{OPPWAMobile-Resources.bundle → OPPWAMobile.framework/Resources}/diners@3x.png +0 -0
  57. package/{OPPWAMobile-Resources.bundle → OPPWAMobile.framework/Resources}/directdebit_sepa.png +0 -0
  58. package/{OPPWAMobile-Resources.bundle → OPPWAMobile.framework/Resources}/directdebit_sepa@2x.png +0 -0
  59. package/{OPPWAMobile-Resources.bundle → OPPWAMobile.framework/Resources}/directdebit_sepa@3x.png +0 -0
  60. package/{OPPWAMobile-Resources.bundle → OPPWAMobile.framework/Resources}/discover.png +0 -0
  61. package/{OPPWAMobile-Resources.bundle → OPPWAMobile.framework/Resources}/discover@2x.png +0 -0
  62. package/{OPPWAMobile-Resources.bundle → OPPWAMobile.framework/Resources}/discover@3x.png +0 -0
  63. package/{OPPWAMobile-Resources.bundle → OPPWAMobile.framework/Resources}/en.lproj/OPPCheckout.strings +0 -0
  64. package/{OPPWAMobile-Resources.bundle → OPPWAMobile.framework/Resources}/es.lproj/OPPCheckout.strings +0 -0
  65. package/{OPPWAMobile-Resources.bundle → OPPWAMobile.framework/Resources}/eu-ES.lproj/OPPCheckout.strings +0 -0
  66. package/{OPPWAMobile-Resources.bundle → OPPWAMobile.framework/Resources}/fr-CA.lproj/OPPCheckout.strings +0 -0
  67. package/{OPPWAMobile-Resources.bundle → OPPWAMobile.framework/Resources}/fr.lproj/OPPCheckout.strings +0 -0
  68. package/{OPPWAMobile-Resources.bundle → OPPWAMobile.framework/Resources}/giropay.png +0 -0
  69. package/{OPPWAMobile-Resources.bundle → OPPWAMobile.framework/Resources}/giropay@2x.png +0 -0
  70. package/{OPPWAMobile-Resources.bundle → OPPWAMobile.framework/Resources}/giropay@3x.png +0 -0
  71. package/{OPPWAMobile-Resources.bundle → OPPWAMobile.framework/Resources}/gl-ES.lproj/OPPCheckout.strings +0 -0
  72. package/{OPPWAMobile-Resources.bundle → OPPWAMobile.framework/Resources}/ideal.png +0 -0
  73. package/{OPPWAMobile-Resources.bundle → OPPWAMobile.framework/Resources}/ideal@2x.png +0 -0
  74. package/{OPPWAMobile-Resources.bundle → OPPWAMobile.framework/Resources}/ideal@3x.png +0 -0
  75. package/{OPPWAMobile-Resources.bundle → OPPWAMobile.framework/Resources}/it.lproj/OPPCheckout.strings +0 -0
  76. package/{OPPWAMobile-Resources.bundle → OPPWAMobile.framework/Resources}/ja.lproj/OPPCheckout.strings +0 -0
  77. package/{OPPWAMobile-Resources.bundle → OPPWAMobile.framework/Resources}/jcb.png +0 -0
  78. package/{OPPWAMobile-Resources.bundle → OPPWAMobile.framework/Resources}/jcb@2x.png +0 -0
  79. package/{OPPWAMobile-Resources.bundle → OPPWAMobile.framework/Resources}/jcb@3x.png +0 -0
  80. package/{OPPWAMobile-Resources.bundle → OPPWAMobile.framework/Resources}/klarna.png +0 -0
  81. package/{OPPWAMobile-Resources.bundle → OPPWAMobile.framework/Resources}/klarna@2x.png +0 -0
  82. package/{OPPWAMobile-Resources.bundle → OPPWAMobile.framework/Resources}/klarna@3x.png +0 -0
  83. package/{OPPWAMobile-Resources.bundle → OPPWAMobile.framework/Resources}/klarna_detail_logo.png +0 -0
  84. package/{OPPWAMobile-Resources.bundle → OPPWAMobile.framework/Resources}/klarna_detail_logo@2x.png +0 -0
  85. package/{OPPWAMobile-Resources.bundle → OPPWAMobile.framework/Resources}/klarna_detail_logo@3x.png +0 -0
  86. package/{OPPWAMobile-Resources.bundle → OPPWAMobile.framework/Resources}/klarna_nl_agreement.png +0 -0
  87. package/{OPPWAMobile-Resources.bundle → OPPWAMobile.framework/Resources}/klarna_nl_agreement@2x.png +0 -0
  88. package/{OPPWAMobile-Resources.bundle → OPPWAMobile.framework/Resources}/klarna_nl_agreement@3x.png +0 -0
  89. package/{OPPWAMobile-Resources.bundle → OPPWAMobile.framework/Resources}/klarna_payments_billpay.png +0 -0
  90. package/{OPPWAMobile-Resources.bundle → OPPWAMobile.framework/Resources}/klarna_payments_billpay@2x.png +0 -0
  91. package/{OPPWAMobile-Resources.bundle → OPPWAMobile.framework/Resources}/klarna_payments_billpay@3x.png +0 -0
  92. package/{OPPWAMobile-Resources.bundle → OPPWAMobile.framework/Resources}/klarna_payments_paylater.png +0 -0
  93. package/{OPPWAMobile-Resources.bundle → OPPWAMobile.framework/Resources}/klarna_payments_paylater@2x.png +0 -0
  94. package/{OPPWAMobile-Resources.bundle → OPPWAMobile.framework/Resources}/klarna_payments_paylater@3x.png +0 -0
  95. package/{OPPWAMobile-Resources.bundle → OPPWAMobile.framework/Resources}/klarna_payments_sliceit.png +0 -0
  96. package/{OPPWAMobile-Resources.bundle → OPPWAMobile.framework/Resources}/klarna_payments_sliceit@2x.png +0 -0
  97. package/{OPPWAMobile-Resources.bundle → OPPWAMobile.framework/Resources}/klarna_payments_sliceit@3x.png +0 -0
  98. package/{OPPWAMobile-Resources.bundle → OPPWAMobile.framework/Resources}/mada.png +0 -0
  99. package/{OPPWAMobile-Resources.bundle → OPPWAMobile.framework/Resources}/mada@2x.png +0 -0
  100. package/{OPPWAMobile-Resources.bundle → OPPWAMobile.framework/Resources}/mada@3x.png +0 -0
  101. package/{OPPWAMobile-Resources.bundle → OPPWAMobile.framework/Resources}/maestro.png +0 -0
  102. package/{OPPWAMobile-Resources.bundle → OPPWAMobile.framework/Resources}/maestro@2x.png +0 -0
  103. package/{OPPWAMobile-Resources.bundle → OPPWAMobile.framework/Resources}/maestro@3x.png +0 -0
  104. package/{OPPWAMobile-Resources.bundle → OPPWAMobile.framework/Resources}/master.png +0 -0
  105. package/{OPPWAMobile-Resources.bundle → OPPWAMobile.framework/Resources}/master@2x.png +0 -0
  106. package/{OPPWAMobile-Resources.bundle → OPPWAMobile.framework/Resources}/master@3x.png +0 -0
  107. package/{OPPWAMobile-Resources.bundle → OPPWAMobile.framework/Resources}/masterdebit.png +0 -0
  108. package/{OPPWAMobile-Resources.bundle → OPPWAMobile.framework/Resources}/masterdebit@2x.png +0 -0
  109. package/{OPPWAMobile-Resources.bundle → OPPWAMobile.framework/Resources}/masterdebit@3x.png +0 -0
  110. package/{OPPWAMobile-Resources.bundle → OPPWAMobile.framework/Resources}/masterpass.png +0 -0
  111. package/{OPPWAMobile-Resources.bundle → OPPWAMobile.framework/Resources}/masterpass@2x.png +0 -0
  112. package/{OPPWAMobile-Resources.bundle → OPPWAMobile.framework/Resources}/masterpass@3x.png +0 -0
  113. package/{OPPWAMobile-Resources.bundle → OPPWAMobile.framework/Resources}/nl.lproj/OPPCheckout.strings +0 -0
  114. package/{OPPWAMobile-Resources.bundle → OPPWAMobile.framework/Resources}/paydirekt.png +0 -0
  115. package/{OPPWAMobile-Resources.bundle → OPPWAMobile.framework/Resources}/paydirekt@2x.png +0 -0
  116. package/{OPPWAMobile-Resources.bundle → OPPWAMobile.framework/Resources}/paydirekt@3x.png +0 -0
  117. package/{OPPWAMobile-Resources.bundle → OPPWAMobile.framework/Resources}/paypal.png +0 -0
  118. package/{OPPWAMobile-Resources.bundle → OPPWAMobile.framework/Resources}/paypal@2x.png +0 -0
  119. package/{OPPWAMobile-Resources.bundle → OPPWAMobile.framework/Resources}/paypal@3x.png +0 -0
  120. package/{OPPWAMobile-Resources.bundle → OPPWAMobile.framework/Resources}/paysafecard.png +0 -0
  121. package/{OPPWAMobile-Resources.bundle → OPPWAMobile.framework/Resources}/paysafecard@2x.png +0 -0
  122. package/{OPPWAMobile-Resources.bundle → OPPWAMobile.framework/Resources}/paysafecard@3x.png +0 -0
  123. package/{OPPWAMobile-Resources.bundle → OPPWAMobile.framework/Resources}/paytrail.png +0 -0
  124. package/{OPPWAMobile-Resources.bundle → OPPWAMobile.framework/Resources}/paytrail@2x.png +0 -0
  125. package/{OPPWAMobile-Resources.bundle → OPPWAMobile.framework/Resources}/paytrail@3x.png +0 -0
  126. package/{OPPWAMobile-Resources.bundle → OPPWAMobile.framework/Resources}/pf_karte_direct.png +0 -0
  127. package/{OPPWAMobile-Resources.bundle → OPPWAMobile.framework/Resources}/pf_karte_direct@2x.png +0 -0
  128. package/{OPPWAMobile-Resources.bundle → OPPWAMobile.framework/Resources}/pf_karte_direct@3x.png +0 -0
  129. package/{OPPWAMobile-Resources.bundle → OPPWAMobile.framework/Resources}/przelewy.png +0 -0
  130. package/{OPPWAMobile-Resources.bundle → OPPWAMobile.framework/Resources}/przelewy@2x.png +0 -0
  131. package/{OPPWAMobile-Resources.bundle → OPPWAMobile.framework/Resources}/przelewy@3x.png +0 -0
  132. package/{OPPWAMobile-Resources.bundle → OPPWAMobile.framework/Resources}/pt.lproj/OPPCheckout.strings +0 -0
  133. package/{OPPWAMobile-Resources.bundle → OPPWAMobile.framework/Resources}/ratenkauf.png +0 -0
  134. package/{OPPWAMobile-Resources.bundle → OPPWAMobile.framework/Resources}/ratenkauf@2x.png +0 -0
  135. package/{OPPWAMobile-Resources.bundle → OPPWAMobile.framework/Resources}/ratenkauf@3x.png +0 -0
  136. package/{OPPWAMobile-Resources.bundle → OPPWAMobile.framework/Resources}/ru.lproj/OPPCheckout.strings +0 -0
  137. package/{OPPWAMobile-Resources.bundle → OPPWAMobile.framework/Resources}/sibs_multibanco.png +0 -0
  138. package/{OPPWAMobile-Resources.bundle → OPPWAMobile.framework/Resources}/sibs_multibanco@2x.png +0 -0
  139. package/{OPPWAMobile-Resources.bundle → OPPWAMobile.framework/Resources}/sibs_multibanco@3x.png +0 -0
  140. package/{OPPWAMobile-Resources.bundle → OPPWAMobile.framework/Resources}/sofortueberweisung.png +0 -0
  141. package/{OPPWAMobile-Resources.bundle → OPPWAMobile.framework/Resources}/sofortueberweisung@2x.png +0 -0
  142. package/{OPPWAMobile-Resources.bundle → OPPWAMobile.framework/Resources}/sofortueberweisung@3x.png +0 -0
  143. package/{OPPWAMobile-Resources.bundle → OPPWAMobile.framework/Resources}/th.lproj/OPPCheckout.strings +0 -0
  144. package/{OPPWAMobile-Resources.bundle → OPPWAMobile.framework/Resources}/trustly.png +0 -0
  145. package/{OPPWAMobile-Resources.bundle → OPPWAMobile.framework/Resources}/trustly@2x.png +0 -0
  146. package/{OPPWAMobile-Resources.bundle → OPPWAMobile.framework/Resources}/trustly@3x.png +0 -0
  147. package/{OPPWAMobile-Resources.bundle → OPPWAMobile.framework/Resources}/unionpay.png +0 -0
  148. package/{OPPWAMobile-Resources.bundle → OPPWAMobile.framework/Resources}/unionpay@2x.png +0 -0
  149. package/{OPPWAMobile-Resources.bundle → OPPWAMobile.framework/Resources}/unionpay@3x.png +0 -0
  150. package/{OPPWAMobile-Resources.bundle → OPPWAMobile.framework/Resources}/version.plist +0 -0
  151. package/{OPPWAMobile-Resources.bundle → OPPWAMobile.framework/Resources}/visa.png +0 -0
  152. package/{OPPWAMobile-Resources.bundle → OPPWAMobile.framework/Resources}/visa@2x.png +0 -0
  153. package/{OPPWAMobile-Resources.bundle → OPPWAMobile.framework/Resources}/visa@3x.png +0 -0
  154. package/{OPPWAMobile-Resources.bundle → OPPWAMobile.framework/Resources}/visadebit.png +0 -0
  155. package/{OPPWAMobile-Resources.bundle → OPPWAMobile.framework/Resources}/visadebit@2x.png +0 -0
  156. package/{OPPWAMobile-Resources.bundle → OPPWAMobile.framework/Resources}/visadebit@3x.png +0 -0
  157. package/{OPPWAMobile-Resources.bundle → OPPWAMobile.framework/Resources}/visaelectron.png +0 -0
  158. package/{OPPWAMobile-Resources.bundle → OPPWAMobile.framework/Resources}/visaelectron@2x.png +0 -0
  159. package/{OPPWAMobile-Resources.bundle → OPPWAMobile.framework/Resources}/visaelectron@3x.png +0 -0
  160. package/{OPPWAMobile-Resources.bundle → OPPWAMobile.framework/Resources}/yandex.png +0 -0
  161. package/{OPPWAMobile-Resources.bundle → OPPWAMobile.framework/Resources}/yandex@2x.png +0 -0
  162. package/{OPPWAMobile-Resources.bundle → OPPWAMobile.framework/Resources}/yandex@3x.png +0 -0
  163. package/{OPPWAMobile-Resources.bundle → OPPWAMobile.framework/Resources}/zh-Hans.lproj/OPPCheckout.strings +0 -0
  164. package/README.md +7 -5
  165. package/ios/HyperPay.m +2 -5
  166. package/lib/typescript/index.d.ts +7 -9
  167. package/package.json +1 -2
  168. package/react-native-hyperpay-sdk.podspec +1 -1
  169. package/src/index.tsx +7 -1
  170. package/OPPWAMobile-Resources.bundle/Info.plist +0 -0
  171. package/OPPWAMobile.framework/Resources/Info.plist +0 -0
Binary file
package/README.md CHANGED
@@ -11,23 +11,25 @@ npm i react-native-hyperpay-sdk
11
11
  ## Usage
12
12
 
13
13
  ```js
14
- import { setConfig } from "react-native-hyperpay-sdk";
14
+ import hyperPay from 'react-native-hyperpay-sdk'
15
+
15
16
 
16
17
  // the firt step , set default configiration
17
18
  // 1- shopperResultURL to redirect to this url after the payment completed
18
19
  // 2- select your country code from list
19
20
  // 3- merchantIdentifier is for apply pay only
20
- setConfig({
21
+ hyperPay.setConfig({
21
22
  shopperResultURL:"shopperResultURL",
22
23
  countryCode:"SA",
23
- merchantIdentifier:"merchantIdentifier"
24
+ merchantIdentifier:"merchantIdentifier",
25
+ mode:"TestMode"
24
26
  })
25
27
  // ...
26
28
  // to pay with apple
27
- const result = await applePay("CheckoutId")
29
+ const result = await hyperPay.applePay("CheckoutId")
28
30
 
29
31
  // to pay with any brand
30
- const result=await createPaymentTransaction(
32
+ const result=await hyperPay.createPaymentTransaction(
31
33
  { paymentBrand: "VISA",
32
34
  holderName: "Test Test",
33
35
  cardNumber: '4111111111111111',
package/ios/HyperPay.m CHANGED
@@ -9,19 +9,16 @@ OPPPaymentProvider *provider;
9
9
  NSString *shopperResultURL = @"";
10
10
  NSString *merchantIdentifier = @"";
11
11
  NSString *countryCode = @"";
12
- NSString *mode=@"Test";
12
+ NSString *mode=@"TestMode";
13
13
 
14
14
  RCT_EXPORT_MODULE(HyperPay)
15
15
 
16
16
  -(instancetype)init
17
17
  {
18
18
 
19
-
20
-
21
19
  self = [super init];
22
20
  if (self) {
23
- // #ifdef DEBUG
24
- if ([mode isEqual:@"Test"])
21
+ if ([mode isEqual:@"TestMode"])
25
22
  provider = [OPPPaymentProvider paymentProviderWithMode:OPPProviderModeTest];
26
23
  else
27
24
  provider = [OPPPaymentProvider paymentProviderWithMode:OPPProviderModeLive];
@@ -12,17 +12,17 @@ export type CreateTransactionResponseType = {
12
12
 
13
13
  export type ConfigType = {
14
14
  shopperResultURL: string
15
- /**
16
- * required for apple pay
17
- */
15
+ /**
16
+ * required for apple pay
17
+ */
18
18
  countryCode?: keyof CountryCodes
19
19
  /**
20
20
  * required for apple pay
21
21
  */
22
22
  merchantIdentifier?: string
23
-
24
- mode:"Test"|"Live"
25
-
23
+
24
+ mode?: "TestMode" | "LiveMode"
25
+
26
26
  }
27
27
 
28
28
  export type CreateTransactionParams = {
@@ -33,15 +33,13 @@ export type CreateTransactionParams = {
33
33
  expiryMonth: string,
34
34
  cvv: string,
35
35
  checkoutID: string,
36
- shopperResultURL: string
36
+ shopperResultURL?: string
37
37
  }
38
38
 
39
39
  export declare function
40
40
  createPaymentTransaction(params: CreateTransactionParams):
41
41
  Promise<CreateTransactionResponseType>;
42
42
 
43
-
44
43
  export declare function setConfig(params: ConfigType): ConfigType
45
44
 
46
45
  export declare function applePay(checkoutID: string): Promise<any>;
47
-
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-hyperpay-sdk",
3
- "version": "0.10.0",
3
+ "version": "0.13.0",
4
4
  "description": "hyperpay",
5
5
  "main": "lib/commonjs/index",
6
6
  "module": "lib/module/index",
@@ -14,7 +14,6 @@
14
14
  "ios",
15
15
  "cpp",
16
16
  "react-native-hyperpay-sdk.podspec",
17
- "OPPWAMobile-Resources.bundle",
18
17
  "OPPWAMobile.framework",
19
18
  "!lib/typescript/example",
20
19
  "!android/build",
@@ -16,5 +16,5 @@ Pod::Spec.new do |s|
16
16
  s.requires_arc = true
17
17
  s.vendored_frameworks = "OPPWAMobile.framework"
18
18
  s.public_header_files = "OPPWAMobile.framework/Versions/2.47.0/Headers/*.h"
19
- s.resource_bundle = { 'OPPWAMobile-Resources' => '*' }
19
+ s.resource_bundle = { 'OPPWAMobile-Resources' => 'OPPWAMobile.framework/Resources/**' }
20
20
  end
package/src/index.tsx CHANGED
@@ -26,7 +26,13 @@ export function setConfig(params: ConfigType): ConfigType {
26
26
  return HyperPay.setConfig(params);
27
27
  }
28
28
 
29
-
30
29
  export function applePay(checkoutID: string): Promise<any> {
31
30
  return HyperPay.applePay(checkoutID);
32
31
  }
32
+
33
+ const hyperpay = {
34
+ applePay,
35
+ setConfig,
36
+ createPaymentTransaction
37
+ }
38
+ export default hyperpay