@stripe/stripe-react-native 0.6.0 → 0.7.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 (465) hide show
  1. package/CHANGELOG.md +43 -0
  2. package/README.md +1 -1
  3. package/android/build/.transforms/{31ceac6fb5d33b3621129bf6bacef38e → 391dacf2d8747d5d964db20fd2dd8815}/results.bin +0 -0
  4. package/android/build/.transforms/391dacf2d8747d5d964db20fd2dd8815/transformed/classes/classes.dex +0 -0
  5. package/android/build/.transforms/{48791259e8e16eb93ec0e1ee5c2320d3 → 465a3f28c318295b6d1e745a1358f0e6}/results.bin +0 -0
  6. package/android/build/.transforms/465a3f28c318295b6d1e745a1358f0e6/transformed/classes/classes.dex +0 -0
  7. package/android/build/.transforms/{74570cf3214a596c51ea9185f02b2c7f → 538f1369a832b015f982db8e9f3e63d4}/results.bin +0 -0
  8. package/android/build/.transforms/538f1369a832b015f982db8e9f3e63d4/transformed/classes/classes.dex +0 -0
  9. package/android/build/.transforms/{82928fc3901d2ce5cedef114e23b9dd5 → 5821b0d6d2e0908c8ed0cd6c2f4e6587}/results.bin +0 -0
  10. package/android/build/.transforms/5821b0d6d2e0908c8ed0cd6c2f4e6587/transformed/classes/classes.dex +0 -0
  11. package/android/build/.transforms/{9338bfb74c726e5746db5e10b980917a → 60446a8b59a82b3ae8bcd81aa8d01afc}/results.bin +0 -0
  12. package/android/build/.transforms/60446a8b59a82b3ae8bcd81aa8d01afc/transformed/classes/classes.dex +0 -0
  13. package/android/build/.transforms/{c731e6bf5b480f659bf1c341f3f0657c → 87295b99343bf0db705fbc154493ffa4}/results.bin +0 -0
  14. package/android/build/.transforms/87295b99343bf0db705fbc154493ffa4/transformed/classes/classes.dex +0 -0
  15. package/android/build/.transforms/{d436978a4beecbc35d07543a01fe4a5c → ae18a466edb55818daf7c30291ff4843}/results.bin +0 -0
  16. package/android/build/.transforms/ae18a466edb55818daf7c30291ff4843/transformed/classes/classes.dex +0 -0
  17. package/android/build/.transforms/d42db6dbe74ca8dbcb5922d32e8646c4/transformed/classes/classes.dex +0 -0
  18. package/android/build/.transforms/e9a96dae20bdea4f5ebd602fc83f5f77/results.bin +1 -0
  19. package/android/build/.transforms/e9a96dae20bdea4f5ebd602fc83f5f77/transformed/classes/classes.dex +0 -0
  20. package/android/build/.transforms/f183966fd9230baa4d89c2c4e2fcb664/results.bin +1 -0
  21. package/android/build/.transforms/f183966fd9230baa4d89c2c4e2fcb664/transformed/classes/classes.dex +0 -0
  22. package/android/build/intermediates/compile_library_classes_jar/debug/classes.jar +0 -0
  23. package/android/build/intermediates/compile_library_classes_jar/release/classes.jar +0 -0
  24. package/android/build/intermediates/compile_r_class_jar/debug/R.jar +0 -0
  25. package/android/build/intermediates/compile_r_class_jar/release/R.jar +0 -0
  26. package/android/build/intermediates/compile_symbol_list/debug/R.txt +108 -20
  27. package/android/build/intermediates/compile_symbol_list/release/R.txt +108 -20
  28. package/android/build/intermediates/incremental/packageDebugResources/compile-file-map.properties +1 -1
  29. package/android/build/intermediates/incremental/packageReleaseResources/compile-file-map.properties +1 -1
  30. package/android/build/intermediates/runtime_library_classes_jar/debug/classes.jar +0 -0
  31. package/android/build/intermediates/runtime_library_classes_jar/release/classes.jar +0 -0
  32. package/android/build/intermediates/symbol_list_with_package_name/debug/package-aware-r.txt +78 -20
  33. package/android/build/intermediates/symbol_list_with_package_name/release/package-aware-r.txt +78 -20
  34. package/android/build/kotlin/compileDebugKotlin/build-history.bin +0 -0
  35. package/android/build/kotlin/compileDebugKotlin/caches-jvm/inputs/source-to-output.tab +0 -0
  36. package/android/build/kotlin/compileDebugKotlin/caches-jvm/inputs/source-to-output.tab.keystream +0 -0
  37. package/android/build/kotlin/compileDebugKotlin/caches-jvm/inputs/source-to-output.tab.keystream.len +0 -0
  38. package/android/build/kotlin/compileDebugKotlin/caches-jvm/inputs/source-to-output.tab.len +0 -0
  39. package/android/build/kotlin/compileDebugKotlin/caches-jvm/inputs/source-to-output.tab.values.at +0 -0
  40. package/android/build/kotlin/compileDebugKotlin/caches-jvm/inputs/source-to-output.tab_i +0 -0
  41. package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/class-attributes.tab +0 -0
  42. package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/class-attributes.tab.keystream +0 -0
  43. package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/class-attributes.tab.keystream.len +0 -0
  44. package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/class-attributes.tab.len +0 -0
  45. package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/class-attributes.tab.values.at +0 -0
  46. package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/class-attributes.tab_i +0 -0
  47. package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab +0 -0
  48. package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab.keystream +0 -0
  49. package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab.keystream.len +0 -0
  50. package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab.len +0 -0
  51. package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab.values.at +0 -0
  52. package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab_i +0 -0
  53. package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/constants.tab +0 -0
  54. package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/constants.tab.values.at +0 -0
  55. package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/internal-name-to-source.tab +0 -0
  56. package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/internal-name-to-source.tab.keystream +0 -0
  57. package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/internal-name-to-source.tab.keystream.len +0 -0
  58. package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/internal-name-to-source.tab.len +0 -0
  59. package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/internal-name-to-source.tab.values.at +0 -0
  60. package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/internal-name-to-source.tab_i +0 -0
  61. package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/package-parts.tab +0 -0
  62. package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/package-parts.tab.values.at +0 -0
  63. package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/proto.tab +0 -0
  64. package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/proto.tab.keystream +0 -0
  65. package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/proto.tab.keystream.len +0 -0
  66. package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/proto.tab.len +0 -0
  67. package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/proto.tab.values.at +0 -0
  68. package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/proto.tab_i +0 -0
  69. package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/source-to-classes.tab +0 -0
  70. package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/source-to-classes.tab.keystream +0 -0
  71. package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/source-to-classes.tab.keystream.len +0 -0
  72. package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/source-to-classes.tab.len +0 -0
  73. package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/source-to-classes.tab.values.at +0 -0
  74. package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/source-to-classes.tab_i +0 -0
  75. package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/subtypes.tab +0 -0
  76. package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/subtypes.tab.values.at +0 -0
  77. package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/supertypes.tab +0 -0
  78. package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/supertypes.tab.keystream +0 -0
  79. package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/supertypes.tab.keystream.len +0 -0
  80. package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/supertypes.tab.len +0 -0
  81. package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/supertypes.tab.values.at +0 -0
  82. package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/supertypes.tab_i +0 -0
  83. package/android/build/kotlin/compileDebugKotlin/caches-jvm/lookups/counters.tab +2 -2
  84. package/android/build/kotlin/compileDebugKotlin/caches-jvm/lookups/file-to-id.tab +0 -0
  85. package/android/build/kotlin/compileDebugKotlin/caches-jvm/lookups/file-to-id.tab.keystream +0 -0
  86. package/android/build/kotlin/compileDebugKotlin/caches-jvm/lookups/file-to-id.tab.keystream.len +0 -0
  87. package/android/build/kotlin/compileDebugKotlin/caches-jvm/lookups/file-to-id.tab.len +0 -0
  88. package/android/build/kotlin/compileDebugKotlin/caches-jvm/lookups/file-to-id.tab.values.at +0 -0
  89. package/android/build/kotlin/compileDebugKotlin/caches-jvm/lookups/file-to-id.tab_i +0 -0
  90. package/android/build/kotlin/compileDebugKotlin/caches-jvm/lookups/id-to-file.tab +0 -0
  91. package/android/build/kotlin/compileDebugKotlin/caches-jvm/lookups/id-to-file.tab.keystream +0 -0
  92. package/android/build/kotlin/compileDebugKotlin/caches-jvm/lookups/id-to-file.tab.keystream.len +0 -0
  93. package/android/build/kotlin/compileDebugKotlin/caches-jvm/lookups/id-to-file.tab.len +0 -0
  94. package/android/build/kotlin/compileDebugKotlin/caches-jvm/lookups/id-to-file.tab.values.at +0 -0
  95. package/android/build/kotlin/compileDebugKotlin/caches-jvm/lookups/id-to-file.tab_i +0 -0
  96. package/android/build/kotlin/compileDebugKotlin/caches-jvm/lookups/lookups.tab +0 -0
  97. package/android/build/kotlin/compileDebugKotlin/caches-jvm/lookups/lookups.tab.keystream +0 -0
  98. package/android/build/kotlin/compileDebugKotlin/caches-jvm/lookups/lookups.tab.keystream.len +0 -0
  99. package/android/build/kotlin/compileDebugKotlin/caches-jvm/lookups/lookups.tab.len +0 -0
  100. package/android/build/kotlin/compileDebugKotlin/caches-jvm/lookups/lookups.tab.values +0 -0
  101. package/android/build/kotlin/compileDebugKotlin/caches-jvm/lookups/lookups.tab.values.at +0 -0
  102. package/android/build/kotlin/compileDebugKotlin/caches-jvm/lookups/lookups.tab.values.s +1 -1
  103. package/android/build/kotlin/compileDebugKotlin/caches-jvm/lookups/lookups.tab_i +0 -0
  104. package/android/build/kotlin/compileDebugKotlin/last-build.bin +0 -0
  105. package/android/build/kotlin/compileReleaseKotlin/build-history.bin +0 -0
  106. package/android/build/kotlin/compileReleaseKotlin/caches-jvm/inputs/source-to-output.tab +0 -0
  107. package/android/build/kotlin/compileReleaseKotlin/caches-jvm/inputs/source-to-output.tab.keystream +0 -0
  108. package/android/build/kotlin/compileReleaseKotlin/caches-jvm/inputs/source-to-output.tab.keystream.len +0 -0
  109. package/android/build/kotlin/compileReleaseKotlin/caches-jvm/inputs/source-to-output.tab.len +0 -0
  110. package/android/build/kotlin/compileReleaseKotlin/caches-jvm/inputs/source-to-output.tab.values.at +0 -0
  111. package/android/build/kotlin/compileReleaseKotlin/caches-jvm/inputs/source-to-output.tab_i +0 -0
  112. package/android/build/kotlin/compileReleaseKotlin/caches-jvm/jvm/kotlin/class-attributes.tab +0 -0
  113. package/android/build/kotlin/compileReleaseKotlin/caches-jvm/jvm/kotlin/class-attributes.tab.keystream +0 -0
  114. package/android/build/kotlin/compileReleaseKotlin/caches-jvm/jvm/kotlin/class-attributes.tab.keystream.len +0 -0
  115. package/android/build/kotlin/compileReleaseKotlin/caches-jvm/jvm/kotlin/class-attributes.tab.len +0 -0
  116. package/android/build/kotlin/compileReleaseKotlin/caches-jvm/jvm/kotlin/class-attributes.tab.values.at +0 -0
  117. package/android/build/kotlin/compileReleaseKotlin/caches-jvm/jvm/kotlin/class-attributes.tab_i +0 -0
  118. package/android/build/kotlin/compileReleaseKotlin/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab +0 -0
  119. package/android/build/kotlin/compileReleaseKotlin/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab.keystream +0 -0
  120. package/android/build/kotlin/compileReleaseKotlin/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab.keystream.len +0 -0
  121. package/android/build/kotlin/compileReleaseKotlin/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab.len +0 -0
  122. package/android/build/kotlin/compileReleaseKotlin/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab.values.at +0 -0
  123. package/android/build/kotlin/compileReleaseKotlin/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab_i +0 -0
  124. package/android/build/kotlin/compileReleaseKotlin/caches-jvm/jvm/kotlin/constants.tab +0 -0
  125. package/android/build/kotlin/compileReleaseKotlin/caches-jvm/jvm/kotlin/internal-name-to-source.tab +0 -0
  126. package/android/build/kotlin/compileReleaseKotlin/caches-jvm/jvm/kotlin/internal-name-to-source.tab.keystream +0 -0
  127. package/android/build/kotlin/compileReleaseKotlin/caches-jvm/jvm/kotlin/internal-name-to-source.tab.keystream.len +0 -0
  128. package/android/build/kotlin/compileReleaseKotlin/caches-jvm/jvm/kotlin/internal-name-to-source.tab.len +0 -0
  129. package/android/build/kotlin/compileReleaseKotlin/caches-jvm/jvm/kotlin/internal-name-to-source.tab.values.at +0 -0
  130. package/android/build/kotlin/compileReleaseKotlin/caches-jvm/jvm/kotlin/internal-name-to-source.tab_i +0 -0
  131. package/android/build/kotlin/compileReleaseKotlin/caches-jvm/jvm/kotlin/proto.tab +0 -0
  132. package/android/build/kotlin/compileReleaseKotlin/caches-jvm/jvm/kotlin/proto.tab.keystream +0 -0
  133. package/android/build/kotlin/compileReleaseKotlin/caches-jvm/jvm/kotlin/proto.tab.keystream.len +0 -0
  134. package/android/build/kotlin/compileReleaseKotlin/caches-jvm/jvm/kotlin/proto.tab.len +0 -0
  135. package/android/build/kotlin/compileReleaseKotlin/caches-jvm/jvm/kotlin/proto.tab.values.at +0 -0
  136. package/android/build/kotlin/compileReleaseKotlin/caches-jvm/jvm/kotlin/proto.tab_i +0 -0
  137. package/android/build/kotlin/compileReleaseKotlin/caches-jvm/jvm/kotlin/source-to-classes.tab +0 -0
  138. package/android/build/kotlin/compileReleaseKotlin/caches-jvm/jvm/kotlin/source-to-classes.tab.keystream +0 -0
  139. package/android/build/kotlin/compileReleaseKotlin/caches-jvm/jvm/kotlin/source-to-classes.tab.keystream.len +0 -0
  140. package/android/build/kotlin/compileReleaseKotlin/caches-jvm/jvm/kotlin/source-to-classes.tab.len +0 -0
  141. package/android/build/kotlin/compileReleaseKotlin/caches-jvm/jvm/kotlin/source-to-classes.tab.values.at +0 -0
  142. package/android/build/kotlin/compileReleaseKotlin/caches-jvm/jvm/kotlin/source-to-classes.tab_i +0 -0
  143. package/android/build/kotlin/compileReleaseKotlin/caches-jvm/jvm/kotlin/subtypes.tab +0 -0
  144. package/android/build/kotlin/compileReleaseKotlin/caches-jvm/jvm/kotlin/subtypes.tab.values.at +0 -0
  145. package/android/build/kotlin/compileReleaseKotlin/caches-jvm/jvm/kotlin/supertypes.tab +0 -0
  146. package/android/build/kotlin/compileReleaseKotlin/caches-jvm/jvm/kotlin/supertypes.tab.keystream +0 -0
  147. package/android/build/kotlin/compileReleaseKotlin/caches-jvm/jvm/kotlin/supertypes.tab.keystream.len +0 -0
  148. package/android/build/kotlin/compileReleaseKotlin/caches-jvm/jvm/kotlin/supertypes.tab.len +0 -0
  149. package/android/build/kotlin/compileReleaseKotlin/caches-jvm/jvm/kotlin/supertypes.tab.values.at +0 -0
  150. package/android/build/kotlin/compileReleaseKotlin/caches-jvm/jvm/kotlin/supertypes.tab_i +0 -0
  151. package/android/build/kotlin/compileReleaseKotlin/caches-jvm/lookups/counters.tab +1 -1
  152. package/android/build/kotlin/compileReleaseKotlin/caches-jvm/lookups/file-to-id.tab +0 -0
  153. package/android/build/kotlin/compileReleaseKotlin/caches-jvm/lookups/file-to-id.tab.keystream +0 -0
  154. package/android/build/kotlin/compileReleaseKotlin/caches-jvm/lookups/file-to-id.tab.keystream.len +0 -0
  155. package/android/build/kotlin/compileReleaseKotlin/caches-jvm/lookups/file-to-id.tab.len +0 -0
  156. package/android/build/kotlin/compileReleaseKotlin/caches-jvm/lookups/file-to-id.tab.values.at +0 -0
  157. package/android/build/kotlin/compileReleaseKotlin/caches-jvm/lookups/file-to-id.tab_i +0 -0
  158. package/android/build/kotlin/compileReleaseKotlin/caches-jvm/lookups/id-to-file.tab +0 -0
  159. package/android/build/kotlin/compileReleaseKotlin/caches-jvm/lookups/id-to-file.tab.keystream +0 -0
  160. package/android/build/kotlin/compileReleaseKotlin/caches-jvm/lookups/id-to-file.tab.keystream.len +0 -0
  161. package/android/build/kotlin/compileReleaseKotlin/caches-jvm/lookups/id-to-file.tab.len +0 -0
  162. package/android/build/kotlin/compileReleaseKotlin/caches-jvm/lookups/id-to-file.tab.values.at +0 -0
  163. package/android/build/kotlin/compileReleaseKotlin/caches-jvm/lookups/id-to-file.tab_i +0 -0
  164. package/android/build/kotlin/compileReleaseKotlin/caches-jvm/lookups/lookups.tab +0 -0
  165. package/android/build/kotlin/compileReleaseKotlin/caches-jvm/lookups/lookups.tab.keystream +0 -0
  166. package/android/build/kotlin/compileReleaseKotlin/caches-jvm/lookups/lookups.tab.keystream.len +0 -0
  167. package/android/build/kotlin/compileReleaseKotlin/caches-jvm/lookups/lookups.tab.len +0 -0
  168. package/android/build/kotlin/compileReleaseKotlin/caches-jvm/lookups/lookups.tab.values +0 -0
  169. package/android/build/kotlin/compileReleaseKotlin/caches-jvm/lookups/lookups.tab.values.at +0 -0
  170. package/android/build/kotlin/compileReleaseKotlin/caches-jvm/lookups/lookups.tab.values.s +1 -1
  171. package/android/build/kotlin/compileReleaseKotlin/caches-jvm/lookups/lookups.tab_i +0 -0
  172. package/android/build/kotlin/compileReleaseKotlin/last-build.bin +0 -0
  173. package/android/build/tmp/kotlin-classes/debug/com/reactnativestripesdk/AuBECSDebitFormViewManager.class +0 -0
  174. package/android/build/tmp/kotlin-classes/debug/com/reactnativestripesdk/CardFieldView$setListeners$10.class +0 -0
  175. package/android/build/tmp/kotlin-classes/debug/com/reactnativestripesdk/CardFieldView$setListeners$6.class +0 -0
  176. package/android/build/tmp/kotlin-classes/debug/com/reactnativestripesdk/{CardFieldView$setListeners$3.class → CardFieldView$setListeners$7.class} +0 -0
  177. package/android/build/tmp/kotlin-classes/debug/com/reactnativestripesdk/{CardFieldView$setListeners$4.class → CardFieldView$setListeners$8.class} +0 -0
  178. package/android/build/tmp/kotlin-classes/debug/com/reactnativestripesdk/{CardFieldView$setListeners$5.class → CardFieldView$setListeners$9.class} +0 -0
  179. package/android/build/tmp/kotlin-classes/debug/com/reactnativestripesdk/CardFieldView.class +0 -0
  180. package/android/build/tmp/kotlin-classes/debug/com/reactnativestripesdk/CardFieldViewManager.class +0 -0
  181. package/android/build/tmp/kotlin-classes/debug/com/reactnativestripesdk/CardFormViewManager.class +0 -0
  182. package/android/build/tmp/kotlin-classes/debug/com/reactnativestripesdk/CollectBankAccountLauncherFragment$createBankAccountLauncher$1.class +0 -0
  183. package/android/build/tmp/kotlin-classes/debug/com/reactnativestripesdk/CollectBankAccountLauncherFragment.class +0 -0
  184. package/android/build/tmp/kotlin-classes/debug/com/reactnativestripesdk/ConfirmPaymentErrorType.class +0 -0
  185. package/android/build/tmp/kotlin-classes/debug/com/reactnativestripesdk/ConfirmSetupIntentErrorType.class +0 -0
  186. package/android/build/tmp/kotlin-classes/debug/com/reactnativestripesdk/ConstantsKt.class +0 -0
  187. package/android/build/tmp/kotlin-classes/debug/com/reactnativestripesdk/CreateTokenErrorType.class +0 -0
  188. package/android/build/tmp/kotlin-classes/debug/com/reactnativestripesdk/ErrorType.class +0 -0
  189. package/android/build/tmp/kotlin-classes/debug/com/reactnativestripesdk/ErrorsKt.class +0 -0
  190. package/android/build/tmp/kotlin-classes/debug/com/reactnativestripesdk/GooglePayButtonManager$Companion.class +0 -0
  191. package/android/build/tmp/kotlin-classes/debug/com/reactnativestripesdk/GooglePayButtonManager.class +0 -0
  192. package/android/build/tmp/kotlin-classes/debug/com/reactnativestripesdk/GooglePayFragment.class +0 -0
  193. package/android/build/tmp/kotlin-classes/debug/com/reactnativestripesdk/GooglePayPaymentMethodLauncherFragment.class +0 -0
  194. package/android/build/tmp/kotlin-classes/debug/com/reactnativestripesdk/MappersKt$WhenMappings.class +0 -0
  195. package/android/build/tmp/kotlin-classes/debug/com/reactnativestripesdk/MappersKt.class +0 -0
  196. package/android/build/tmp/kotlin-classes/debug/com/reactnativestripesdk/PaymentLauncherFragment$retrievePaymentIntent$1$WhenMappings.class +0 -0
  197. package/android/build/tmp/kotlin-classes/debug/com/reactnativestripesdk/PaymentLauncherFragment$retrievePaymentIntent$1.class +0 -0
  198. package/android/build/tmp/kotlin-classes/debug/com/reactnativestripesdk/PaymentLauncherFragment$retrieveSetupIntent$1$WhenMappings.class +0 -0
  199. package/android/build/tmp/kotlin-classes/debug/com/reactnativestripesdk/PaymentLauncherFragment$retrieveSetupIntent$1.class +0 -0
  200. package/android/build/tmp/kotlin-classes/debug/com/reactnativestripesdk/PaymentLauncherFragment.class +0 -0
  201. package/android/build/tmp/kotlin-classes/debug/com/reactnativestripesdk/PaymentMethodCreateParamsException.class +0 -0
  202. package/android/build/tmp/kotlin-classes/debug/com/reactnativestripesdk/PaymentMethodCreateParamsFactory$WhenMappings.class +0 -0
  203. package/android/build/tmp/kotlin-classes/debug/com/reactnativestripesdk/PaymentMethodCreateParamsFactory.class +0 -0
  204. package/android/build/tmp/kotlin-classes/debug/com/reactnativestripesdk/StripeContainerManager.class +0 -0
  205. package/android/build/tmp/kotlin-classes/debug/com/reactnativestripesdk/StripeSdkModule$Companion.class +0 -0
  206. package/android/build/tmp/kotlin-classes/debug/com/reactnativestripesdk/StripeSdkModule$createPaymentMethod$1.class +0 -0
  207. package/android/build/tmp/kotlin-classes/debug/com/reactnativestripesdk/StripeSdkModule$createTokenForCVCUpdate$1.class +0 -0
  208. package/android/build/tmp/kotlin-classes/debug/com/reactnativestripesdk/StripeSdkModule$createTokenFromBankAccount$1.class +0 -0
  209. package/android/build/tmp/kotlin-classes/debug/com/reactnativestripesdk/StripeSdkModule$createTokenFromCard$1.class +0 -0
  210. package/android/build/tmp/kotlin-classes/debug/com/reactnativestripesdk/StripeSdkModule$googlePayReceiver$1.class +0 -0
  211. package/android/build/tmp/kotlin-classes/debug/com/reactnativestripesdk/StripeSdkModule$mActivityEventListener$1.class +0 -0
  212. package/android/build/tmp/kotlin-classes/debug/com/reactnativestripesdk/StripeSdkModule$mPaymentSheetReceiver$1.class +0 -0
  213. package/android/build/tmp/kotlin-classes/debug/com/reactnativestripesdk/StripeSdkModule$retrievePaymentIntent$1.class +0 -0
  214. package/android/build/tmp/kotlin-classes/debug/com/reactnativestripesdk/StripeSdkModule$retrieveSetupIntent$1.class +0 -0
  215. package/android/build/tmp/kotlin-classes/debug/com/reactnativestripesdk/StripeSdkModule$verifyMicrodeposits$paymentCallback$1.class +0 -0
  216. package/android/build/tmp/kotlin-classes/debug/com/reactnativestripesdk/StripeSdkModule$verifyMicrodeposits$setupCallback$1.class +0 -0
  217. package/android/build/tmp/kotlin-classes/debug/com/reactnativestripesdk/StripeSdkModule.class +0 -0
  218. package/android/build/tmp/kotlin-classes/release/com/reactnativestripesdk/AuBECSDebitFormViewManager.class +0 -0
  219. package/android/build/tmp/kotlin-classes/release/com/reactnativestripesdk/CardFieldView$setListeners$10.class +0 -0
  220. package/android/build/tmp/kotlin-classes/release/com/reactnativestripesdk/CardFieldView$setListeners$6.class +0 -0
  221. package/android/build/tmp/kotlin-classes/release/com/reactnativestripesdk/{CardFieldView$setListeners$3.class → CardFieldView$setListeners$7.class} +0 -0
  222. package/android/build/tmp/kotlin-classes/release/com/reactnativestripesdk/{CardFieldView$setListeners$4.class → CardFieldView$setListeners$8.class} +0 -0
  223. package/android/build/tmp/kotlin-classes/release/com/reactnativestripesdk/{CardFieldView$setListeners$5.class → CardFieldView$setListeners$9.class} +0 -0
  224. package/android/build/tmp/kotlin-classes/release/com/reactnativestripesdk/CardFieldView.class +0 -0
  225. package/android/build/tmp/kotlin-classes/release/com/reactnativestripesdk/CardFieldViewManager.class +0 -0
  226. package/android/build/tmp/kotlin-classes/release/com/reactnativestripesdk/CardFormViewManager.class +0 -0
  227. package/android/build/tmp/kotlin-classes/release/com/reactnativestripesdk/CollectBankAccountLauncherFragment$createBankAccountLauncher$1.class +0 -0
  228. package/android/build/tmp/kotlin-classes/release/com/reactnativestripesdk/CollectBankAccountLauncherFragment.class +0 -0
  229. package/android/build/tmp/kotlin-classes/release/com/reactnativestripesdk/ConfirmPaymentErrorType.class +0 -0
  230. package/android/build/tmp/kotlin-classes/release/com/reactnativestripesdk/ConfirmSetupIntentErrorType.class +0 -0
  231. package/android/build/tmp/kotlin-classes/release/com/reactnativestripesdk/ConstantsKt.class +0 -0
  232. package/android/build/tmp/kotlin-classes/release/com/reactnativestripesdk/CreateTokenErrorType.class +0 -0
  233. package/android/build/tmp/kotlin-classes/release/com/reactnativestripesdk/ErrorType.class +0 -0
  234. package/android/build/tmp/kotlin-classes/release/com/reactnativestripesdk/ErrorsKt.class +0 -0
  235. package/android/build/tmp/kotlin-classes/release/com/reactnativestripesdk/GooglePayButtonManager$Companion.class +0 -0
  236. package/android/build/tmp/kotlin-classes/release/com/reactnativestripesdk/GooglePayButtonManager.class +0 -0
  237. package/android/build/tmp/kotlin-classes/release/com/reactnativestripesdk/GooglePayFragment.class +0 -0
  238. package/android/build/tmp/kotlin-classes/release/com/reactnativestripesdk/GooglePayPaymentMethodLauncherFragment.class +0 -0
  239. package/android/build/tmp/kotlin-classes/release/com/reactnativestripesdk/MappersKt$WhenMappings.class +0 -0
  240. package/android/build/tmp/kotlin-classes/release/com/reactnativestripesdk/MappersKt.class +0 -0
  241. package/android/build/tmp/kotlin-classes/release/com/reactnativestripesdk/PaymentLauncherFragment$WhenMappings.class +0 -0
  242. package/android/build/tmp/kotlin-classes/release/com/reactnativestripesdk/PaymentLauncherFragment$retrievePaymentIntent$1$WhenMappings.class +0 -0
  243. package/android/build/tmp/kotlin-classes/release/com/reactnativestripesdk/PaymentLauncherFragment$retrievePaymentIntent$1.class +0 -0
  244. package/android/build/tmp/kotlin-classes/release/com/reactnativestripesdk/PaymentLauncherFragment$retrieveSetupIntent$1$WhenMappings.class +0 -0
  245. package/android/build/tmp/kotlin-classes/release/com/reactnativestripesdk/PaymentLauncherFragment$retrieveSetupIntent$1.class +0 -0
  246. package/android/build/tmp/kotlin-classes/release/com/reactnativestripesdk/PaymentLauncherFragment.class +0 -0
  247. package/android/build/tmp/kotlin-classes/release/com/reactnativestripesdk/PaymentMethodCreateParamsException.class +0 -0
  248. package/android/build/tmp/kotlin-classes/release/com/reactnativestripesdk/PaymentMethodCreateParamsFactory$WhenMappings.class +0 -0
  249. package/android/build/tmp/kotlin-classes/release/com/reactnativestripesdk/PaymentMethodCreateParamsFactory.class +0 -0
  250. package/android/build/tmp/kotlin-classes/release/com/reactnativestripesdk/StripeContainerManager.class +0 -0
  251. package/android/build/tmp/kotlin-classes/release/com/reactnativestripesdk/StripeSdkModule$Companion.class +0 -0
  252. package/android/build/tmp/kotlin-classes/release/com/reactnativestripesdk/StripeSdkModule$createPaymentMethod$1.class +0 -0
  253. package/android/build/tmp/kotlin-classes/release/com/reactnativestripesdk/StripeSdkModule$createTokenForCVCUpdate$1.class +0 -0
  254. package/android/build/tmp/kotlin-classes/release/com/reactnativestripesdk/StripeSdkModule$createTokenFromBankAccount$1.class +0 -0
  255. package/android/build/tmp/kotlin-classes/release/com/reactnativestripesdk/StripeSdkModule$createTokenFromCard$1.class +0 -0
  256. package/android/build/tmp/kotlin-classes/release/com/reactnativestripesdk/StripeSdkModule$googlePayReceiver$1.class +0 -0
  257. package/android/build/tmp/kotlin-classes/release/com/reactnativestripesdk/StripeSdkModule$mActivityEventListener$1.class +0 -0
  258. package/android/build/tmp/kotlin-classes/release/com/reactnativestripesdk/StripeSdkModule$mPaymentSheetReceiver$1.class +0 -0
  259. package/android/build/tmp/kotlin-classes/release/com/reactnativestripesdk/StripeSdkModule$retrievePaymentIntent$1.class +0 -0
  260. package/android/build/tmp/kotlin-classes/release/com/reactnativestripesdk/StripeSdkModule$retrieveSetupIntent$1.class +0 -0
  261. package/android/build/tmp/kotlin-classes/release/com/reactnativestripesdk/StripeSdkModule$verifyMicrodeposits$paymentCallback$1.class +0 -0
  262. package/android/build/tmp/kotlin-classes/release/com/reactnativestripesdk/StripeSdkModule$verifyMicrodeposits$setupCallback$1.class +0 -0
  263. package/android/build/tmp/kotlin-classes/release/com/reactnativestripesdk/StripeSdkModule.class +0 -0
  264. package/android/build.gradle +4 -2
  265. package/android/gradle.properties +1 -0
  266. package/android/src/main/java/com/reactnativestripesdk/AuBECSDebitFormViewManager.kt +0 -2
  267. package/android/src/main/java/com/reactnativestripesdk/CardFieldView.kt +48 -34
  268. package/android/src/main/java/com/reactnativestripesdk/CardFieldViewManager.kt +0 -5
  269. package/android/src/main/java/com/reactnativestripesdk/CardFormViewManager.kt +0 -4
  270. package/android/src/main/java/com/reactnativestripesdk/CollectBankAccountLauncherFragment.kt +84 -0
  271. package/android/src/main/java/com/reactnativestripesdk/Constants.kt +0 -1
  272. package/android/src/main/java/com/reactnativestripesdk/Errors.kt +16 -6
  273. package/android/src/main/java/com/reactnativestripesdk/GooglePayButtonManager.kt +0 -1
  274. package/android/src/main/java/com/reactnativestripesdk/GooglePayFragment.kt +0 -3
  275. package/android/src/main/java/com/reactnativestripesdk/GooglePayPaymentMethodLauncherFragment.kt +3 -2
  276. package/android/src/main/java/com/reactnativestripesdk/Mappers.kt +77 -40
  277. package/android/src/main/java/com/reactnativestripesdk/PaymentLauncherFragment.kt +77 -22
  278. package/android/src/main/java/com/reactnativestripesdk/PaymentMethodCreateParamsFactory.kt +81 -5
  279. package/android/src/main/java/com/reactnativestripesdk/StripeContainerManager.kt +0 -1
  280. package/android/src/main/java/com/reactnativestripesdk/StripeSdkModule.kt +199 -113
  281. package/ios/.DS_Store +0 -0
  282. package/ios/Mappers.swift +23 -18
  283. package/ios/StripeSdk.m +2 -2
  284. package/ios/StripeSdk.swift +16 -26
  285. package/lib/commonjs/NativeStripeSdk.js.map +1 -1
  286. package/lib/commonjs/components/ApplePayButton.js.map +1 -1
  287. package/lib/commonjs/components/CardField.js.map +1 -1
  288. package/lib/commonjs/components/CardForm.js.map +1 -1
  289. package/lib/commonjs/components/StripeProvider.js +1 -1
  290. package/lib/commonjs/components/StripeProvider.js.map +1 -1
  291. package/lib/commonjs/functions.js +1 -1
  292. package/lib/commonjs/functions.js.map +1 -1
  293. package/lib/commonjs/helpers.js.map +1 -1
  294. package/lib/commonjs/hooks/useConfirmPayment.js.map +1 -1
  295. package/lib/commonjs/hooks/useConfirmSetupIntent.js.map +1 -1
  296. package/lib/commonjs/hooks/useGooglePay.js.map +1 -1
  297. package/lib/commonjs/hooks/useStripe.js +1 -1
  298. package/lib/commonjs/hooks/useStripe.js.map +1 -1
  299. package/lib/commonjs/types/ApplePay.js +1 -1
  300. package/lib/commonjs/types/ApplePay.js.map +1 -1
  301. package/lib/commonjs/types/Common.js +2 -0
  302. package/lib/commonjs/types/Common.js.map +1 -0
  303. package/lib/commonjs/types/Errors.js +1 -1
  304. package/lib/commonjs/types/Errors.js.map +1 -1
  305. package/lib/commonjs/types/GooglePay.js +1 -1
  306. package/lib/commonjs/types/GooglePay.js.map +1 -1
  307. package/lib/commonjs/types/PaymentIntent.js +2 -0
  308. package/lib/commonjs/types/PaymentIntent.js.map +1 -0
  309. package/lib/commonjs/types/PaymentMethod.js +2 -0
  310. package/lib/commonjs/types/PaymentMethod.js.map +1 -0
  311. package/lib/commonjs/types/PaymentSheet.js +1 -1
  312. package/lib/commonjs/types/SetupIntent.js +1 -1
  313. package/lib/commonjs/types/SetupIntent.js.map +1 -1
  314. package/lib/commonjs/types/ThreeDSecure.js +1 -1
  315. package/lib/commonjs/types/ThreeDSecure.js.map +1 -1
  316. package/lib/commonjs/types/Token.js +2 -0
  317. package/lib/commonjs/types/Token.js.map +1 -0
  318. package/lib/commonjs/types/components/ApplePayButtonComponent.js +1 -1
  319. package/lib/commonjs/types/components/ApplePayButtonComponent.js.map +1 -1
  320. package/lib/commonjs/types/components/AuBECSDebitFormComponent.js +2 -0
  321. package/lib/commonjs/types/components/AuBECSDebitFormComponent.js.map +1 -0
  322. package/lib/commonjs/types/components/CardFieldInput.js +1 -1
  323. package/lib/commonjs/types/components/CardFieldInput.js.map +1 -1
  324. package/lib/commonjs/types/components/CardFormView.js +1 -1
  325. package/lib/commonjs/types/components/CardFormView.js.map +1 -1
  326. package/lib/commonjs/types/index.js +1 -1
  327. package/lib/commonjs/types/index.js.map +1 -1
  328. package/lib/module/NativeStripeSdk.js.map +1 -1
  329. package/lib/module/components/ApplePayButton.js.map +1 -1
  330. package/lib/module/components/CardField.js.map +1 -1
  331. package/lib/module/components/CardForm.js.map +1 -1
  332. package/lib/module/components/StripeProvider.js +1 -1
  333. package/lib/module/components/StripeProvider.js.map +1 -1
  334. package/lib/module/functions.js +1 -1
  335. package/lib/module/functions.js.map +1 -1
  336. package/lib/module/helpers.js.map +1 -1
  337. package/lib/module/hooks/useConfirmPayment.js.map +1 -1
  338. package/lib/module/hooks/useConfirmSetupIntent.js.map +1 -1
  339. package/lib/module/hooks/useGooglePay.js.map +1 -1
  340. package/lib/module/hooks/useStripe.js +1 -1
  341. package/lib/module/hooks/useStripe.js.map +1 -1
  342. package/lib/module/types/ApplePay.js +1 -1
  343. package/lib/module/types/ApplePay.js.map +1 -1
  344. package/lib/module/types/Common.js +2 -0
  345. package/lib/module/types/Common.js.map +1 -0
  346. package/lib/module/types/Errors.js +1 -1
  347. package/lib/module/types/Errors.js.map +1 -1
  348. package/lib/module/types/GooglePay.js +1 -1
  349. package/lib/module/types/GooglePay.js.map +1 -1
  350. package/lib/module/types/PaymentIntent.js +2 -0
  351. package/lib/module/types/PaymentIntent.js.map +1 -0
  352. package/lib/module/types/PaymentMethod.js +2 -0
  353. package/lib/module/types/PaymentMethod.js.map +1 -0
  354. package/lib/module/types/PaymentSheet.js +1 -1
  355. package/lib/module/types/SetupIntent.js +1 -1
  356. package/lib/module/types/SetupIntent.js.map +1 -1
  357. package/lib/module/types/ThreeDSecure.js +1 -1
  358. package/lib/module/types/ThreeDSecure.js.map +1 -1
  359. package/lib/module/types/Token.js +2 -0
  360. package/lib/module/types/Token.js.map +1 -0
  361. package/lib/module/types/components/ApplePayButtonComponent.js +1 -1
  362. package/lib/module/types/components/ApplePayButtonComponent.js.map +1 -1
  363. package/lib/module/types/components/AuBECSDebitFormComponent.js +2 -0
  364. package/lib/module/types/components/AuBECSDebitFormComponent.js.map +1 -0
  365. package/lib/module/types/components/CardFieldInput.js +1 -1
  366. package/lib/module/types/components/CardFieldInput.js.map +1 -1
  367. package/lib/module/types/components/CardFormView.js +1 -1
  368. package/lib/module/types/components/CardFormView.js.map +1 -1
  369. package/lib/module/types/index.js +1 -1
  370. package/lib/module/types/index.js.map +1 -1
  371. package/lib/typescript/src/NativeStripeSdk.d.ts +9 -9
  372. package/lib/typescript/src/components/ApplePayButton.d.ts +2 -2
  373. package/lib/typescript/src/components/CardField.d.ts +2 -2
  374. package/lib/typescript/src/components/StripeProvider.d.ts +1 -1
  375. package/lib/typescript/src/functions.d.ts +11 -15
  376. package/lib/typescript/src/helpers.d.ts +2 -1
  377. package/lib/typescript/src/hooks/useConfirmPayment.d.ts +2 -2
  378. package/lib/typescript/src/hooks/useConfirmSetupIntent.d.ts +2 -2
  379. package/lib/typescript/src/hooks/useGooglePay.d.ts +2 -2
  380. package/lib/typescript/src/hooks/useStripe.d.ts +11 -12
  381. package/lib/typescript/src/types/ApplePay.d.ts +48 -50
  382. package/lib/typescript/src/types/Common.d.ts +14 -0
  383. package/lib/typescript/src/types/Errors.d.ts +10 -0
  384. package/lib/typescript/src/types/GooglePay.d.ts +45 -50
  385. package/lib/typescript/src/types/PaymentIntent.d.ts +46 -0
  386. package/lib/typescript/src/types/PaymentMethod.d.ts +167 -0
  387. package/lib/typescript/src/types/PaymentSheet.d.ts +41 -55
  388. package/lib/typescript/src/types/SetupIntent.d.ts +22 -56
  389. package/lib/typescript/src/types/ThreeDSecure.d.ts +62 -68
  390. package/lib/typescript/src/types/Token.d.ts +50 -0
  391. package/lib/typescript/src/types/components/ApplePayButtonComponent.d.ts +8 -10
  392. package/{src/types/components/AuBECSDebitForm.ts → lib/typescript/src/types/components/AuBECSDebitFormComponent.d.ts} +8 -13
  393. package/lib/typescript/src/types/components/CardFieldInput.d.ts +62 -65
  394. package/lib/typescript/src/types/components/CardFormView.d.ts +41 -44
  395. package/lib/typescript/src/types/index.d.ts +53 -61
  396. package/package.json +7 -3
  397. package/src/NativeStripeSdk.tsx +15 -18
  398. package/src/components/ApplePayButton.tsx +4 -4
  399. package/src/components/CardField.tsx +2 -2
  400. package/src/components/CardForm.tsx +1 -1
  401. package/src/components/StripeProvider.tsx +1 -4
  402. package/src/functions.ts +75 -136
  403. package/src/helpers.ts +3 -2
  404. package/src/hooks/useConfirmPayment.tsx +3 -3
  405. package/src/hooks/useConfirmSetupIntent.tsx +3 -3
  406. package/src/hooks/useGooglePay.tsx +2 -2
  407. package/src/hooks/useStripe.tsx +22 -20
  408. package/src/types/ApplePay.ts +60 -62
  409. package/src/types/Common.ts +15 -0
  410. package/src/types/Errors.ts +12 -0
  411. package/src/types/GooglePay.ts +67 -73
  412. package/src/types/PaymentIntent.ts +53 -0
  413. package/src/types/PaymentMethod.ts +242 -0
  414. package/src/types/PaymentSheet.ts +49 -63
  415. package/src/types/SetupIntent.ts +30 -82
  416. package/src/types/ThreeDSecure.ts +63 -69
  417. package/src/types/Token.ts +74 -0
  418. package/src/types/components/ApplePayButtonComponent.ts +25 -27
  419. package/src/types/components/AuBECSDebitFormComponent.ts +29 -0
  420. package/src/types/components/CardFieldInput.ts +65 -67
  421. package/src/types/components/CardFormView.ts +48 -51
  422. package/src/types/index.ts +78 -71
  423. package/android/build/.transforms/06225d218c14d1720edd690e5aad3666/results.bin +0 -0
  424. package/android/build/.transforms/31ceac6fb5d33b3621129bf6bacef38e/transformed/classes/classes.dex +0 -0
  425. package/android/build/.transforms/48791259e8e16eb93ec0e1ee5c2320d3/transformed/classes/classes.dex +0 -0
  426. package/android/build/.transforms/74570cf3214a596c51ea9185f02b2c7f/transformed/classes/classes.dex +0 -0
  427. package/android/build/.transforms/82928fc3901d2ce5cedef114e23b9dd5/transformed/classes/classes.dex +0 -0
  428. package/android/build/.transforms/9338bfb74c726e5746db5e10b980917a/transformed/classes/classes.dex +0 -0
  429. package/android/build/.transforms/c731e6bf5b480f659bf1c341f3f0657c/transformed/classes/classes.dex +0 -0
  430. package/android/build/.transforms/d436978a4beecbc35d07543a01fe4a5c/transformed/classes/classes.dex +0 -0
  431. package/android/build/kotlin/compileDebugKotlin/caches-jvm/inputs/source-to-output.tab.values +0 -0
  432. package/android/build/kotlin/compileDebugKotlin/caches-jvm/inputs/source-to-output.tab.values.s +0 -1
  433. package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/proto.tab.values +0 -0
  434. package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/proto.tab.values.s +0 -1
  435. package/android/build/tmp/kotlin-classes/debug/com/reactnativestripesdk/CardFieldView$setListeners$2.class +0 -0
  436. package/android/build/tmp/kotlin-classes/debug/com/reactnativestripesdk/NextPaymentActionErrorType.class +0 -0
  437. package/android/build/tmp/kotlin-classes/debug/com/reactnativestripesdk/StripeSdkModule$mActivityEventListener$1$onActivityResult$2$WhenMappings.class +0 -0
  438. package/android/build/tmp/kotlin-classes/debug/com/reactnativestripesdk/StripeSdkModule$mActivityEventListener$1$onActivityResult$2.class +0 -0
  439. package/android/build/tmp/kotlin-classes/release/com/reactnativestripesdk/CardFieldView$setListeners$2.class +0 -0
  440. package/android/build/tmp/kotlin-classes/release/com/reactnativestripesdk/NextPaymentActionErrorType.class +0 -0
  441. package/android/build/tmp/kotlin-classes/release/com/reactnativestripesdk/StripeSdkModule$mActivityEventListener$1$onActivityResult$2$WhenMappings.class +0 -0
  442. package/android/build/tmp/kotlin-classes/release/com/reactnativestripesdk/StripeSdkModule$mActivityEventListener$1$onActivityResult$2.class +0 -0
  443. package/lib/commonjs/types/Card.js +0 -2
  444. package/lib/commonjs/types/Card.js.map +0 -1
  445. package/lib/commonjs/types/PaymentIntents.js +0 -2
  446. package/lib/commonjs/types/PaymentIntents.js.map +0 -1
  447. package/lib/commonjs/types/PaymentMethods.js +0 -2
  448. package/lib/commonjs/types/PaymentMethods.js.map +0 -1
  449. package/lib/commonjs/types/components/AuBECSDebitForm.js +0 -2
  450. package/lib/commonjs/types/components/AuBECSDebitForm.js.map +0 -1
  451. package/lib/module/types/Card.js +0 -2
  452. package/lib/module/types/Card.js.map +0 -1
  453. package/lib/module/types/PaymentIntents.js +0 -2
  454. package/lib/module/types/PaymentIntents.js.map +0 -1
  455. package/lib/module/types/PaymentMethods.js +0 -2
  456. package/lib/module/types/PaymentMethods.js.map +0 -1
  457. package/lib/module/types/components/AuBECSDebitForm.js +0 -2
  458. package/lib/module/types/components/AuBECSDebitForm.js.map +0 -1
  459. package/lib/typescript/src/types/Card.d.ts +0 -42
  460. package/lib/typescript/src/types/PaymentIntents.d.ts +0 -52
  461. package/lib/typescript/src/types/PaymentMethods.d.ts +0 -193
  462. package/lib/typescript/src/types/components/AuBECSDebitForm.d.ts +0 -28
  463. package/src/types/Card.ts +0 -61
  464. package/src/types/PaymentIntents.ts +0 -58
  465. package/src/types/PaymentMethods.ts +0 -264
@@ -1 +1 @@
1
- {"version":3,"sources":["useStripe.tsx"],"names":["useStripe","isApplePaySupported","setApplePaySupported","checkApplePaySupport","isiOS","NativeStripeSdk","isSupported","_createPaymentMethod","data","options","_createToken","params","_retrievePaymentIntent","clientSecret","_retrieveSetupIntent","_confirmPayment","paymentIntentClientSecret","_presentApplePay","_updateApplePaySummaryItems","summaryItems","errorAddressFields","_confirmApplePayPayment","_handleNextAction","_confirmSetupIntent","_createTokenForCVCUpdate","cvc","_initPaymentSheet","_presentPaymentSheet","_confirmPaymentSheetPayment","_handleURLCallback","url","_isGooglePaySupported","_initGooglePay","_presentGooglePay","_createGooglePayPaymentMethod","_openApplePaySetup","_collectBankAccountForPayment","_collectBankAccountForSetup","_verifyMicrodepositsForPayment","_verifyMicrodepositsForSetup","retrievePaymentIntent","retrieveSetupIntent","confirmPayment","createPaymentMethod","handleNextAction","handleCardAction","presentApplePay","confirmApplePayPayment","confirmSetupIntent","createTokenForCVCUpdate","updateApplePaySummaryItems","handleURLCallback","confirmPaymentSheetPayment","presentPaymentSheet","initPaymentSheet","createToken","isGooglePaySupported","initGooglePay","presentGooglePay","createGooglePayPaymentMethod","openApplePaySetup","collectBankAccountForPayment","collectBankAccountForSetup","verifyMicrodepositsForPayment","verifyMicrodepositsForSetup"],"mappings":"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","sourcesContent":["import type {\n PaymentMethodCreateParams,\n ApplePay,\n PaymentSheet,\n CreatePaymentMethodResult,\n RetrievePaymentIntentResult,\n RetrieveSetupIntentResult,\n ConfirmPaymentResult,\n HandleNextActionResult,\n ConfirmSetupIntentResult,\n CreateTokenForCVCUpdateResult,\n ApplePayResult,\n ApplePayError,\n StripeError,\n InitPaymentSheetResult,\n PresentPaymentSheetResult,\n ConfirmPaymentSheetPaymentResult,\n ConfirmSetupIntent,\n CreateTokenResult,\n PayWithGooglePayResult,\n GooglePayInitResult,\n GooglePay,\n CreateGooglePayPaymentMethodResult,\n OpenApplePaySetupResult,\n CreateTokenParams,\n VerifyMicrodepositsParams,\n CollectBankAccountParams,\n} from '../types';\nimport { useCallback, useEffect, useState } from 'react';\nimport { isiOS } from '../helpers';\nimport NativeStripeSdk from '../NativeStripeSdk';\nimport {\n confirmPayment,\n createPaymentMethod,\n retrievePaymentIntent,\n retrieveSetupIntent,\n confirmApplePayPayment,\n confirmSetupIntent,\n createTokenForCVCUpdate,\n handleNextAction,\n handleURLCallback,\n presentApplePay,\n updateApplePaySummaryItems,\n initPaymentSheet,\n presentPaymentSheet,\n confirmPaymentSheetPayment,\n createToken,\n isGooglePaySupported,\n initGooglePay,\n createGooglePayPaymentMethod,\n presentGooglePay,\n openApplePaySetup,\n collectBankAccountForPayment,\n collectBankAccountForSetup,\n verifyMicrodepositsForPayment,\n verifyMicrodepositsForSetup,\n} from '../functions';\n\n/**\n * useStripe hook\n */\nexport function useStripe() {\n const [isApplePaySupported, setApplePaySupported] = useState<boolean | null>(\n null\n );\n\n useEffect(() => {\n async function checkApplePaySupport() {\n const isSupported =\n isiOS && (await NativeStripeSdk.isApplePaySupported());\n setApplePaySupported(isSupported);\n }\n\n checkApplePaySupport();\n }, []);\n\n const _createPaymentMethod = useCallback(\n async (\n data: PaymentMethodCreateParams.Params,\n options: PaymentMethodCreateParams.Options = {}\n ): Promise<CreatePaymentMethodResult> => {\n return createPaymentMethod(data, options);\n },\n []\n );\n\n const _createToken = useCallback(\n async (params: CreateTokenParams): Promise<CreateTokenResult> => {\n return createToken(params);\n },\n []\n );\n\n const _retrievePaymentIntent = useCallback(\n async (clientSecret: string): Promise<RetrievePaymentIntentResult> => {\n return retrievePaymentIntent(clientSecret);\n },\n []\n );\n\n const _retrieveSetupIntent = useCallback(\n async (clientSecret: string): Promise<RetrieveSetupIntentResult> => {\n return retrieveSetupIntent(clientSecret);\n },\n []\n );\n\n const _confirmPayment = useCallback(\n async (\n paymentIntentClientSecret: string,\n data: PaymentMethodCreateParams.Params,\n options: PaymentMethodCreateParams.Options = {}\n ): Promise<ConfirmPaymentResult> => {\n return confirmPayment(paymentIntentClientSecret, data, options);\n },\n []\n );\n\n const _presentApplePay = useCallback(\n async (params: ApplePay.PresentParams): Promise<ApplePayResult> => {\n return presentApplePay(params);\n },\n []\n );\n\n const _updateApplePaySummaryItems = useCallback(\n async (\n summaryItems: ApplePay.CartSummaryItem[],\n errorAddressFields: Array<{\n field: ApplePay.AddressFields;\n message?: string;\n }> = []\n ): Promise<{ error?: StripeError<ApplePayError> }> => {\n return updateApplePaySummaryItems(summaryItems, errorAddressFields);\n },\n []\n );\n\n const _confirmApplePayPayment = useCallback(\n async (\n clientSecret: string\n ): Promise<{ error?: StripeError<ApplePayError> }> => {\n return confirmApplePayPayment(clientSecret);\n },\n []\n );\n\n const _handleNextAction = useCallback(\n async (\n paymentIntentClientSecret: string\n ): Promise<HandleNextActionResult> => {\n return handleNextAction(paymentIntentClientSecret);\n },\n []\n );\n\n const _confirmSetupIntent = useCallback(\n async (\n paymentIntentClientSecret: string,\n data: ConfirmSetupIntent.Params,\n options: ConfirmSetupIntent.Options = {}\n ): Promise<ConfirmSetupIntentResult> => {\n return confirmSetupIntent(paymentIntentClientSecret, data, options);\n },\n []\n );\n\n const _createTokenForCVCUpdate = useCallback(\n async (cvc: string): Promise<CreateTokenForCVCUpdateResult> => {\n return createTokenForCVCUpdate(cvc);\n },\n []\n );\n\n const _initPaymentSheet = useCallback(\n async (\n params: PaymentSheet.SetupParams\n ): Promise<InitPaymentSheetResult> => {\n return initPaymentSheet(params);\n },\n []\n );\n\n const _presentPaymentSheet =\n useCallback(async (): Promise<PresentPaymentSheetResult> => {\n return presentPaymentSheet();\n }, []);\n\n const _confirmPaymentSheetPayment =\n useCallback(async (): Promise<ConfirmPaymentSheetPaymentResult> => {\n return confirmPaymentSheetPayment();\n }, []);\n\n const _handleURLCallback = useCallback(\n async (url: string): Promise<boolean> => {\n return handleURLCallback(url);\n },\n []\n );\n\n const _isGooglePaySupported = useCallback(\n async (params?: GooglePay.IsGooglePaySupportedParams): Promise<boolean> => {\n return isGooglePaySupported(params);\n },\n []\n );\n\n const _initGooglePay = useCallback(\n async (params: GooglePay.InitParams): Promise<GooglePayInitResult> => {\n return initGooglePay(params);\n },\n []\n );\n\n const _presentGooglePay = useCallback(\n async (\n params: GooglePay.PresentGooglePayParams\n ): Promise<PayWithGooglePayResult> => {\n return presentGooglePay(params);\n },\n []\n );\n\n const _createGooglePayPaymentMethod = useCallback(\n async (\n params: GooglePay.CreatePaymentMethodParams\n ): Promise<CreateGooglePayPaymentMethodResult> => {\n return createGooglePayPaymentMethod(params);\n },\n []\n );\n\n const _openApplePaySetup =\n useCallback(async (): Promise<OpenApplePaySetupResult> => {\n return openApplePaySetup();\n }, []);\n\n const _collectBankAccountForPayment = useCallback(\n async (\n clientSecret: string,\n params: CollectBankAccountParams\n ): Promise<ConfirmPaymentResult> => {\n return collectBankAccountForPayment(clientSecret, params);\n },\n []\n );\n\n const _collectBankAccountForSetup = useCallback(\n async (\n clientSecret: string,\n params: CollectBankAccountParams\n ): Promise<ConfirmSetupIntentResult> => {\n return collectBankAccountForSetup(clientSecret, params);\n },\n []\n );\n\n const _verifyMicrodepositsForPayment = useCallback(\n async (\n clientSecret: string,\n params: VerifyMicrodepositsParams\n ): Promise<ConfirmPaymentResult> => {\n return verifyMicrodepositsForPayment(clientSecret, params);\n },\n []\n );\n\n const _verifyMicrodepositsForSetup = useCallback(\n async (\n clientSecret: string,\n params: VerifyMicrodepositsParams\n ): Promise<ConfirmSetupIntentResult> => {\n return verifyMicrodepositsForSetup(clientSecret, params);\n },\n []\n );\n\n return {\n retrievePaymentIntent: _retrievePaymentIntent,\n retrieveSetupIntent: _retrieveSetupIntent,\n confirmPayment: _confirmPayment,\n createPaymentMethod: _createPaymentMethod,\n handleNextAction: _handleNextAction,\n handleCardAction: _handleNextAction,\n isApplePaySupported: isApplePaySupported,\n presentApplePay: _presentApplePay,\n confirmApplePayPayment: _confirmApplePayPayment,\n confirmSetupIntent: _confirmSetupIntent,\n createTokenForCVCUpdate: _createTokenForCVCUpdate,\n updateApplePaySummaryItems: _updateApplePaySummaryItems,\n handleURLCallback: _handleURLCallback,\n confirmPaymentSheetPayment: _confirmPaymentSheetPayment,\n presentPaymentSheet: _presentPaymentSheet,\n initPaymentSheet: _initPaymentSheet,\n createToken: _createToken,\n isGooglePaySupported: _isGooglePaySupported,\n initGooglePay: _initGooglePay,\n presentGooglePay: _presentGooglePay,\n createGooglePayPaymentMethod: _createGooglePayPaymentMethod,\n openApplePaySetup: _openApplePaySetup,\n collectBankAccountForPayment: _collectBankAccountForPayment,\n collectBankAccountForSetup: _collectBankAccountForSetup,\n verifyMicrodepositsForPayment: _verifyMicrodepositsForPayment,\n verifyMicrodepositsForSetup: _verifyMicrodepositsForSetup,\n };\n}\n"]}
1
+ {"version":3,"sources":["useStripe.tsx"],"names":["useStripe","isApplePaySupported","setApplePaySupported","checkApplePaySupport","isiOS","NativeStripeSdk","isSupported","_createPaymentMethod","data","options","_createToken","params","_retrievePaymentIntent","clientSecret","_retrieveSetupIntent","_confirmPayment","paymentIntentClientSecret","_presentApplePay","_updateApplePaySummaryItems","summaryItems","errorAddressFields","_confirmApplePayPayment","_handleNextAction","_confirmSetupIntent","_createTokenForCVCUpdate","cvc","_initPaymentSheet","_presentPaymentSheet","_confirmPaymentSheetPayment","_handleURLCallback","url","_isGooglePaySupported","_initGooglePay","_presentGooglePay","_createGooglePayPaymentMethod","_openApplePaySetup","_collectBankAccountForPayment","_collectBankAccountForSetup","_verifyMicrodepositsForPayment","_verifyMicrodepositsForSetup","retrievePaymentIntent","retrieveSetupIntent","confirmPayment","createPaymentMethod","handleNextAction","presentApplePay","confirmApplePayPayment","confirmSetupIntent","createTokenForCVCUpdate","updateApplePaySummaryItems","handleURLCallback","confirmPaymentSheetPayment","presentPaymentSheet","initPaymentSheet","createToken","isGooglePaySupported","initGooglePay","presentGooglePay","createGooglePayPaymentMethod","openApplePaySetup","collectBankAccountForPayment","collectBankAccountForSetup","verifyMicrodepositsForPayment","verifyMicrodepositsForSetup"],"mappings":"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","sourcesContent":["import type {\n PaymentMethod,\n ApplePay,\n PaymentSheet,\n CreatePaymentMethodResult,\n RetrievePaymentIntentResult,\n RetrieveSetupIntentResult,\n ConfirmPaymentResult,\n HandleNextActionResult,\n ConfirmSetupIntentResult,\n CreateTokenForCVCUpdateResult,\n ApplePayResult,\n ApplePayError,\n StripeError,\n InitPaymentSheetResult,\n PresentPaymentSheetResult,\n ConfirmPaymentSheetPaymentResult,\n SetupIntent,\n CreateTokenResult,\n PayWithGooglePayResult,\n GooglePayInitResult,\n GooglePay,\n CreateGooglePayPaymentMethodResult,\n OpenApplePaySetupResult,\n Token,\n VerifyMicrodepositsParams,\n VerifyMicrodepositsForPaymentResult,\n VerifyMicrodepositsForSetupResult,\n CollectBankAccountForSetupResult,\n CollectBankAccountForPaymentResult,\n} from '../types';\nimport { useCallback, useEffect, useState } from 'react';\nimport { isiOS } from '../helpers';\nimport NativeStripeSdk from '../NativeStripeSdk';\nimport {\n confirmPayment,\n createPaymentMethod,\n retrievePaymentIntent,\n retrieveSetupIntent,\n confirmApplePayPayment,\n confirmSetupIntent,\n createTokenForCVCUpdate,\n handleNextAction,\n handleURLCallback,\n presentApplePay,\n updateApplePaySummaryItems,\n initPaymentSheet,\n presentPaymentSheet,\n confirmPaymentSheetPayment,\n createToken,\n isGooglePaySupported,\n initGooglePay,\n createGooglePayPaymentMethod,\n presentGooglePay,\n openApplePaySetup,\n collectBankAccountForPayment,\n collectBankAccountForSetup,\n verifyMicrodepositsForPayment,\n verifyMicrodepositsForSetup,\n} from '../functions';\n\n/**\n * useStripe hook\n */\nexport function useStripe() {\n const [isApplePaySupported, setApplePaySupported] = useState<boolean | null>(\n null\n );\n\n useEffect(() => {\n async function checkApplePaySupport() {\n const isSupported =\n isiOS && (await NativeStripeSdk.isApplePaySupported());\n setApplePaySupported(isSupported);\n }\n\n checkApplePaySupport();\n }, []);\n\n const _createPaymentMethod = useCallback(\n async (\n data: PaymentMethod.CreateParams,\n options: PaymentMethod.CreateOptions = {}\n ): Promise<CreatePaymentMethodResult> => {\n return createPaymentMethod(data, options);\n },\n []\n );\n\n const _createToken = useCallback(\n async (params: Token.CreateParams): Promise<CreateTokenResult> => {\n return createToken(params);\n },\n []\n );\n\n const _retrievePaymentIntent = useCallback(\n async (clientSecret: string): Promise<RetrievePaymentIntentResult> => {\n return retrievePaymentIntent(clientSecret);\n },\n []\n );\n\n const _retrieveSetupIntent = useCallback(\n async (clientSecret: string): Promise<RetrieveSetupIntentResult> => {\n return retrieveSetupIntent(clientSecret);\n },\n []\n );\n\n const _confirmPayment = useCallback(\n async (\n paymentIntentClientSecret: string,\n data: PaymentMethod.ConfirmParams,\n options: PaymentMethod.ConfirmOptions = {}\n ): Promise<ConfirmPaymentResult> => {\n return confirmPayment(paymentIntentClientSecret, data, options);\n },\n []\n );\n\n const _presentApplePay = useCallback(\n async (params: ApplePay.PresentParams): Promise<ApplePayResult> => {\n return presentApplePay(params);\n },\n []\n );\n\n const _updateApplePaySummaryItems = useCallback(\n async (\n summaryItems: ApplePay.CartSummaryItem[],\n errorAddressFields: Array<{\n field: ApplePay.AddressFields;\n message?: string;\n }> = []\n ): Promise<{ error?: StripeError<ApplePayError> }> => {\n return updateApplePaySummaryItems(summaryItems, errorAddressFields);\n },\n []\n );\n\n const _confirmApplePayPayment = useCallback(\n async (\n clientSecret: string\n ): Promise<{ error?: StripeError<ApplePayError> }> => {\n return confirmApplePayPayment(clientSecret);\n },\n []\n );\n\n const _handleNextAction = useCallback(\n async (\n paymentIntentClientSecret: string\n ): Promise<HandleNextActionResult> => {\n return handleNextAction(paymentIntentClientSecret);\n },\n []\n );\n\n const _confirmSetupIntent = useCallback(\n async (\n paymentIntentClientSecret: string,\n data: SetupIntent.ConfirmParams,\n options: SetupIntent.ConfirmOptions = {}\n ): Promise<ConfirmSetupIntentResult> => {\n return confirmSetupIntent(paymentIntentClientSecret, data, options);\n },\n []\n );\n\n const _createTokenForCVCUpdate = useCallback(\n async (cvc: string): Promise<CreateTokenForCVCUpdateResult> => {\n return createTokenForCVCUpdate(cvc);\n },\n []\n );\n\n const _initPaymentSheet = useCallback(\n async (\n params: PaymentSheet.SetupParams\n ): Promise<InitPaymentSheetResult> => {\n return initPaymentSheet(params);\n },\n []\n );\n\n const _presentPaymentSheet =\n useCallback(async (): Promise<PresentPaymentSheetResult> => {\n return presentPaymentSheet();\n }, []);\n\n const _confirmPaymentSheetPayment =\n useCallback(async (): Promise<ConfirmPaymentSheetPaymentResult> => {\n return confirmPaymentSheetPayment();\n }, []);\n\n const _handleURLCallback = useCallback(\n async (url: string): Promise<boolean> => {\n return handleURLCallback(url);\n },\n []\n );\n\n const _isGooglePaySupported = useCallback(\n async (params?: GooglePay.IsSupportedParams): Promise<boolean> => {\n return isGooglePaySupported(params);\n },\n []\n );\n\n const _initGooglePay = useCallback(\n async (params: GooglePay.InitParams): Promise<GooglePayInitResult> => {\n return initGooglePay(params);\n },\n []\n );\n\n const _presentGooglePay = useCallback(\n async (\n params: GooglePay.PresentParams\n ): Promise<PayWithGooglePayResult> => {\n return presentGooglePay(params);\n },\n []\n );\n\n const _createGooglePayPaymentMethod = useCallback(\n async (\n params: GooglePay.CreatePaymentMethodParams\n ): Promise<CreateGooglePayPaymentMethodResult> => {\n return createGooglePayPaymentMethod(params);\n },\n []\n );\n\n const _openApplePaySetup =\n useCallback(async (): Promise<OpenApplePaySetupResult> => {\n return openApplePaySetup();\n }, []);\n\n const _collectBankAccountForPayment = useCallback(\n async (\n clientSecret: string,\n params: PaymentMethod.CollectBankAccountParams\n ): Promise<CollectBankAccountForPaymentResult> => {\n return collectBankAccountForPayment(clientSecret, params);\n },\n []\n );\n\n const _collectBankAccountForSetup = useCallback(\n async (\n clientSecret: string,\n params: PaymentMethod.CollectBankAccountParams\n ): Promise<CollectBankAccountForSetupResult> => {\n return collectBankAccountForSetup(clientSecret, params);\n },\n []\n );\n\n const _verifyMicrodepositsForPayment = useCallback(\n async (\n clientSecret: string,\n params: VerifyMicrodepositsParams\n ): Promise<VerifyMicrodepositsForPaymentResult> => {\n return verifyMicrodepositsForPayment(clientSecret, params);\n },\n []\n );\n\n const _verifyMicrodepositsForSetup = useCallback(\n async (\n clientSecret: string,\n params: VerifyMicrodepositsParams\n ): Promise<VerifyMicrodepositsForSetupResult> => {\n return verifyMicrodepositsForSetup(clientSecret, params);\n },\n []\n );\n\n return {\n retrievePaymentIntent: _retrievePaymentIntent,\n retrieveSetupIntent: _retrieveSetupIntent,\n confirmPayment: _confirmPayment,\n createPaymentMethod: _createPaymentMethod,\n handleNextAction: _handleNextAction,\n isApplePaySupported: isApplePaySupported,\n presentApplePay: _presentApplePay,\n confirmApplePayPayment: _confirmApplePayPayment,\n confirmSetupIntent: _confirmSetupIntent,\n createTokenForCVCUpdate: _createTokenForCVCUpdate,\n updateApplePaySummaryItems: _updateApplePaySummaryItems,\n handleURLCallback: _handleURLCallback,\n confirmPaymentSheetPayment: _confirmPaymentSheetPayment,\n presentPaymentSheet: _presentPaymentSheet,\n initPaymentSheet: _initPaymentSheet,\n createToken: _createToken,\n isGooglePaySupported: _isGooglePaySupported,\n initGooglePay: _initGooglePay,\n presentGooglePay: _presentGooglePay,\n createGooglePayPaymentMethod: _createGooglePayPaymentMethod,\n openApplePaySetup: _openApplePaySetup,\n collectBankAccountForPayment: _collectBankAccountForPayment,\n collectBankAccountForSetup: _collectBankAccountForSetup,\n verifyMicrodepositsForPayment: _verifyMicrodepositsForPayment,\n verifyMicrodepositsForSetup: _verifyMicrodepositsForSetup,\n };\n}\n"]}
@@ -1,2 +1,2 @@
1
- Object.defineProperty(exports,"__esModule",{value:true});exports.ApplePay=void 0;var ApplePay;exports.ApplePay=ApplePay;(function(_ApplePay){})(ApplePay||(exports.ApplePay=ApplePay={}));
1
+
2
2
  //# sourceMappingURL=ApplePay.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["ApplePay.ts"],"names":["ApplePay"],"mappings":"gJAAiBA,Q,oBAAAA,Q","sourcesContent":["export namespace ApplePay {\n export type CartSummaryItemType = 'final' | 'pending';\n\n export type ContactFieldsType =\n | 'emailAddress'\n | 'name'\n | 'phoneNumber'\n | 'phoneticName'\n | 'postalAddress';\n\n export type AddressFields =\n | 'street'\n | 'city'\n | 'subAdministrativeArea'\n | 'state'\n | 'postalCode'\n | 'country'\n | 'countryCode'\n | 'subLocality';\n\n export interface ShippingMethod {\n label: string;\n amount: string;\n type?: CartSummaryItemType;\n identifier: string;\n detail?: string;\n }\n\n interface PostalAddress {\n city?: string;\n country?: string;\n postalCode?: string;\n state?: string;\n street?: string;\n isoCountryCode?: string;\n subAdministrativeArea?: string;\n subLocality?: string;\n }\n\n interface ContactName {\n familyName?: string;\n namePrefix?: string;\n nameSuffix?: string;\n givenName?: string;\n middleName?: string;\n nickname?: string;\n }\n\n export interface ShippingContact {\n emailAddress?: string;\n name: ContactName;\n phoneNumber?: number;\n postalAddress: PostalAddress;\n }\n export interface CartSummaryItem {\n label: string;\n amount: string;\n type?: CartSummaryItemType;\n }\n\n export interface PresentParams {\n cartItems: CartSummaryItem[];\n country: string;\n currency: string;\n requiredShippingAddressFields?: ContactFieldsType[];\n requiredBillingContactFields?: ContactFieldsType[];\n shippingMethods?: ShippingMethod[];\n jcbEnabled?: boolean;\n }\n}\n"]}
1
+ {"version":3,"sources":[],"names":[],"mappings":"","sourcesContent":[]}
@@ -0,0 +1,2 @@
1
+
2
+ //# sourceMappingURL=Common.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":"","sourcesContent":[]}
@@ -1,2 +1,2 @@
1
- Object.defineProperty(exports,"__esModule",{value:true});exports.RetrieveSetupIntentError=exports.RetrievePaymentIntentError=exports.PaymentSheetError=exports.MissingRoutingNumber=exports.GooglePayError=exports.CreateTokenError=exports.CreatePaymentMethodError=exports.ConfirmSetupIntentError=exports.ConfirmPaymentError=exports.CardActionError=exports.ApplePayError=void 0;var ConfirmPaymentError;exports.ConfirmPaymentError=ConfirmPaymentError;(function(ConfirmPaymentError){ConfirmPaymentError["Canceled"]="Canceled";ConfirmPaymentError["Failed"]="Failed";ConfirmPaymentError["Unknown"]="Unknown";})(ConfirmPaymentError||(exports.ConfirmPaymentError=ConfirmPaymentError={}));var CardActionError;exports.CardActionError=CardActionError;(function(CardActionError){CardActionError["Canceled"]="Canceled";CardActionError["Failed"]="Failed";CardActionError["Unknown"]="Unknown";})(CardActionError||(exports.CardActionError=CardActionError={}));var ConfirmSetupIntentError;exports.ConfirmSetupIntentError=ConfirmSetupIntentError;(function(ConfirmSetupIntentError){ConfirmSetupIntentError["Canceled"]="Canceled";ConfirmSetupIntentError["Failed"]="Failed";ConfirmSetupIntentError["Unknown"]="Unknown";})(ConfirmSetupIntentError||(exports.ConfirmSetupIntentError=ConfirmSetupIntentError={}));var CreatePaymentMethodError;exports.CreatePaymentMethodError=CreatePaymentMethodError;(function(CreatePaymentMethodError){CreatePaymentMethodError["Failed"]="Failed";})(CreatePaymentMethodError||(exports.CreatePaymentMethodError=CreatePaymentMethodError={}));var CreateTokenError;exports.CreateTokenError=CreateTokenError;(function(CreateTokenError){CreateTokenError["Failed"]="Failed";})(CreateTokenError||(exports.CreateTokenError=CreateTokenError={}));var RetrievePaymentIntentError;exports.RetrievePaymentIntentError=RetrievePaymentIntentError;(function(RetrievePaymentIntentError){RetrievePaymentIntentError["Unknown"]="Unknown";})(RetrievePaymentIntentError||(exports.RetrievePaymentIntentError=RetrievePaymentIntentError={}));var RetrieveSetupIntentError;exports.RetrieveSetupIntentError=RetrieveSetupIntentError;(function(RetrieveSetupIntentError){RetrieveSetupIntentError["Unknown"]="Unknown";})(RetrieveSetupIntentError||(exports.RetrieveSetupIntentError=RetrieveSetupIntentError={}));var ApplePayError;exports.ApplePayError=ApplePayError;(function(ApplePayError){ApplePayError["Canceled"]="Canceled";ApplePayError["Failed"]="Failed";ApplePayError["Unknown"]="Unknown";})(ApplePayError||(exports.ApplePayError=ApplePayError={}));var PaymentSheetError;exports.PaymentSheetError=PaymentSheetError;(function(PaymentSheetError){PaymentSheetError["Failed"]="Failed";PaymentSheetError["Canceled"]="Canceled";})(PaymentSheetError||(exports.PaymentSheetError=PaymentSheetError={}));var GooglePayError;exports.GooglePayError=GooglePayError;(function(GooglePayError){GooglePayError["Failed"]="Failed";GooglePayError["Canceled"]="Canceled";GooglePayError["Unknown"]="Unknown";})(GooglePayError||(exports.GooglePayError=GooglePayError={}));var MissingRoutingNumber={code:CreateTokenError.Failed,message:'You must provide a routing number for US bank accounts. This should be the ACH routing number.'};exports.MissingRoutingNumber=MissingRoutingNumber;
1
+ Object.defineProperty(exports,"__esModule",{value:true});exports.VerifyMicrodepositsError=exports.RetrieveSetupIntentError=exports.RetrievePaymentIntentError=exports.PaymentSheetError=exports.MissingRoutingNumber=exports.GooglePayError=exports.CreateTokenError=exports.CreatePaymentMethodError=exports.ConfirmSetupIntentError=exports.ConfirmPaymentError=exports.CollectBankAccountError=exports.CardActionError=exports.ApplePayError=void 0;var ConfirmPaymentError;exports.ConfirmPaymentError=ConfirmPaymentError;(function(ConfirmPaymentError){ConfirmPaymentError["Canceled"]="Canceled";ConfirmPaymentError["Failed"]="Failed";ConfirmPaymentError["Unknown"]="Unknown";})(ConfirmPaymentError||(exports.ConfirmPaymentError=ConfirmPaymentError={}));var CardActionError;exports.CardActionError=CardActionError;(function(CardActionError){CardActionError["Canceled"]="Canceled";CardActionError["Failed"]="Failed";CardActionError["Unknown"]="Unknown";})(CardActionError||(exports.CardActionError=CardActionError={}));var ConfirmSetupIntentError;exports.ConfirmSetupIntentError=ConfirmSetupIntentError;(function(ConfirmSetupIntentError){ConfirmSetupIntentError["Canceled"]="Canceled";ConfirmSetupIntentError["Failed"]="Failed";ConfirmSetupIntentError["Unknown"]="Unknown";})(ConfirmSetupIntentError||(exports.ConfirmSetupIntentError=ConfirmSetupIntentError={}));var CreatePaymentMethodError;exports.CreatePaymentMethodError=CreatePaymentMethodError;(function(CreatePaymentMethodError){CreatePaymentMethodError["Failed"]="Failed";})(CreatePaymentMethodError||(exports.CreatePaymentMethodError=CreatePaymentMethodError={}));var CreateTokenError;exports.CreateTokenError=CreateTokenError;(function(CreateTokenError){CreateTokenError["Failed"]="Failed";})(CreateTokenError||(exports.CreateTokenError=CreateTokenError={}));var RetrievePaymentIntentError;exports.RetrievePaymentIntentError=RetrievePaymentIntentError;(function(RetrievePaymentIntentError){RetrievePaymentIntentError["Unknown"]="Unknown";})(RetrievePaymentIntentError||(exports.RetrievePaymentIntentError=RetrievePaymentIntentError={}));var RetrieveSetupIntentError;exports.RetrieveSetupIntentError=RetrieveSetupIntentError;(function(RetrieveSetupIntentError){RetrieveSetupIntentError["Unknown"]="Unknown";})(RetrieveSetupIntentError||(exports.RetrieveSetupIntentError=RetrieveSetupIntentError={}));var ApplePayError;exports.ApplePayError=ApplePayError;(function(ApplePayError){ApplePayError["Canceled"]="Canceled";ApplePayError["Failed"]="Failed";ApplePayError["Unknown"]="Unknown";})(ApplePayError||(exports.ApplePayError=ApplePayError={}));var PaymentSheetError;exports.PaymentSheetError=PaymentSheetError;(function(PaymentSheetError){PaymentSheetError["Failed"]="Failed";PaymentSheetError["Canceled"]="Canceled";})(PaymentSheetError||(exports.PaymentSheetError=PaymentSheetError={}));var GooglePayError;exports.GooglePayError=GooglePayError;(function(GooglePayError){GooglePayError["Failed"]="Failed";GooglePayError["Canceled"]="Canceled";GooglePayError["Unknown"]="Unknown";})(GooglePayError||(exports.GooglePayError=GooglePayError={}));var MissingRoutingNumber={code:CreateTokenError.Failed,message:'You must provide a routing number for US bank accounts. This should be the ACH routing number.'};exports.MissingRoutingNumber=MissingRoutingNumber;var VerifyMicrodepositsError;exports.VerifyMicrodepositsError=VerifyMicrodepositsError;(function(VerifyMicrodepositsError){VerifyMicrodepositsError["Canceled"]="Canceled";VerifyMicrodepositsError["Failed"]="Failed";VerifyMicrodepositsError["Unknown"]="Unknown";})(VerifyMicrodepositsError||(exports.VerifyMicrodepositsError=VerifyMicrodepositsError={}));var CollectBankAccountError;exports.CollectBankAccountError=CollectBankAccountError;(function(CollectBankAccountError){CollectBankAccountError["Canceled"]="Canceled";CollectBankAccountError["Failed"]="Failed";CollectBankAccountError["Unknown"]="Unknown";})(CollectBankAccountError||(exports.CollectBankAccountError=CollectBankAccountError={}));
2
2
  //# sourceMappingURL=Errors.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["Errors.ts"],"names":["ConfirmPaymentError","CardActionError","ConfirmSetupIntentError","CreatePaymentMethodError","CreateTokenError","RetrievePaymentIntentError","RetrieveSetupIntentError","ApplePayError","PaymentSheetError","GooglePayError","MissingRoutingNumber","code","Failed","message"],"mappings":"yXAAYA,CAAAA,mB,2DAAAA,mB,EAAAA,mB,wBAAAA,mB,oBAAAA,mB,yBAAAA,mB,+BAAAA,mB,SAMAC,CAAAA,e,mDAAAA,e,EAAAA,e,wBAAAA,e,oBAAAA,e,yBAAAA,e,2BAAAA,e,SAMAC,CAAAA,uB,mEAAAA,uB,EAAAA,uB,wBAAAA,uB,oBAAAA,uB,yBAAAA,uB,mCAAAA,uB,SAMAC,CAAAA,wB,qEAAAA,wB,EAAAA,wB,uBAAAA,wB,oCAAAA,wB,SAIAC,CAAAA,gB,qDAAAA,gB,EAAAA,gB,uBAAAA,gB,4BAAAA,gB,SAIAC,CAAAA,0B,yEAAAA,0B,EAAAA,0B,yBAAAA,0B,sCAAAA,0B,SAIAC,CAAAA,wB,qEAAAA,wB,EAAAA,wB,yBAAAA,wB,oCAAAA,wB,SAIAC,CAAAA,a,+CAAAA,a,EAAAA,a,wBAAAA,a,oBAAAA,a,yBAAAA,a,yBAAAA,a,SAMAC,CAAAA,iB,uDAAAA,iB,EAAAA,iB,oBAAAA,iB,2BAAAA,iB,6BAAAA,iB,SAuBAC,CAAAA,c,iDAAAA,c,EAAAA,c,oBAAAA,c,wBAAAA,c,yBAAAA,c,0BAAAA,c,MAML,GAAMC,CAAAA,oBAAoB,CAAG,CAClCC,IAAI,CAAEP,gBAAgB,CAACQ,MADW,CAElCC,OAAO,CACL,gGAHgC,CAA7B,C","sourcesContent":["export enum ConfirmPaymentError {\n Canceled = 'Canceled',\n Failed = 'Failed',\n Unknown = 'Unknown',\n}\n\nexport enum CardActionError {\n Canceled = 'Canceled',\n Failed = 'Failed',\n Unknown = 'Unknown',\n}\n\nexport enum ConfirmSetupIntentError {\n Canceled = 'Canceled',\n Failed = 'Failed',\n Unknown = 'Unknown',\n}\n\nexport enum CreatePaymentMethodError {\n Failed = 'Failed',\n}\n\nexport enum CreateTokenError {\n Failed = 'Failed',\n}\n\nexport enum RetrievePaymentIntentError {\n Unknown = 'Unknown',\n}\n\nexport enum RetrieveSetupIntentError {\n Unknown = 'Unknown',\n}\n\nexport enum ApplePayError {\n Canceled = 'Canceled',\n Failed = 'Failed',\n Unknown = 'Unknown',\n}\n\nexport enum PaymentSheetError {\n Failed = 'Failed',\n Canceled = 'Canceled',\n}\n\nexport type ErrorType =\n | 'api_connection_error'\n | 'api_error'\n | 'authentication_error'\n | 'card_error'\n | 'idempotency_error'\n | 'invalid_request_error'\n | 'rate_limit_error';\n\nexport interface StripeError<T> {\n code: T;\n message: string;\n localizedMessage?: string;\n declineCode?: string;\n stripeErrorCode?: string;\n type?: ErrorType;\n}\n\nexport enum GooglePayError {\n Failed = 'Failed',\n Canceled = 'Canceled',\n Unknown = 'Unknown',\n}\n\nexport const MissingRoutingNumber = {\n code: CreateTokenError.Failed,\n message:\n 'You must provide a routing number for US bank accounts. This should be the ACH routing number.',\n};\n"]}
1
+ {"version":3,"sources":["Errors.ts"],"names":["ConfirmPaymentError","CardActionError","ConfirmSetupIntentError","CreatePaymentMethodError","CreateTokenError","RetrievePaymentIntentError","RetrieveSetupIntentError","ApplePayError","PaymentSheetError","GooglePayError","MissingRoutingNumber","code","Failed","message","VerifyMicrodepositsError","CollectBankAccountError"],"mappings":"0bAAYA,CAAAA,mB,2DAAAA,mB,EAAAA,mB,wBAAAA,mB,oBAAAA,mB,yBAAAA,mB,+BAAAA,mB,SAMAC,CAAAA,e,mDAAAA,e,EAAAA,e,wBAAAA,e,oBAAAA,e,yBAAAA,e,2BAAAA,e,SAMAC,CAAAA,uB,mEAAAA,uB,EAAAA,uB,wBAAAA,uB,oBAAAA,uB,yBAAAA,uB,mCAAAA,uB,SAMAC,CAAAA,wB,qEAAAA,wB,EAAAA,wB,uBAAAA,wB,oCAAAA,wB,SAIAC,CAAAA,gB,qDAAAA,gB,EAAAA,gB,uBAAAA,gB,4BAAAA,gB,SAIAC,CAAAA,0B,yEAAAA,0B,EAAAA,0B,yBAAAA,0B,sCAAAA,0B,SAIAC,CAAAA,wB,qEAAAA,wB,EAAAA,wB,yBAAAA,wB,oCAAAA,wB,SAIAC,CAAAA,a,+CAAAA,a,EAAAA,a,wBAAAA,a,oBAAAA,a,yBAAAA,a,yBAAAA,a,SAMAC,CAAAA,iB,uDAAAA,iB,EAAAA,iB,oBAAAA,iB,2BAAAA,iB,6BAAAA,iB,SAuBAC,CAAAA,c,iDAAAA,c,EAAAA,c,oBAAAA,c,wBAAAA,c,yBAAAA,c,0BAAAA,c,MAML,GAAMC,CAAAA,oBAAoB,CAAG,CAClCC,IAAI,CAAEP,gBAAgB,CAACQ,MADW,CAElCC,OAAO,CACL,gGAHgC,CAA7B,C,qDAMKC,CAAAA,wB,qEAAAA,wB,EAAAA,wB,wBAAAA,wB,oBAAAA,wB,yBAAAA,wB,oCAAAA,wB,SAMAC,CAAAA,uB,mEAAAA,uB,EAAAA,uB,wBAAAA,uB,oBAAAA,uB,yBAAAA,uB,mCAAAA,uB","sourcesContent":["export enum ConfirmPaymentError {\n Canceled = 'Canceled',\n Failed = 'Failed',\n Unknown = 'Unknown',\n}\n\nexport enum CardActionError {\n Canceled = 'Canceled',\n Failed = 'Failed',\n Unknown = 'Unknown',\n}\n\nexport enum ConfirmSetupIntentError {\n Canceled = 'Canceled',\n Failed = 'Failed',\n Unknown = 'Unknown',\n}\n\nexport enum CreatePaymentMethodError {\n Failed = 'Failed',\n}\n\nexport enum CreateTokenError {\n Failed = 'Failed',\n}\n\nexport enum RetrievePaymentIntentError {\n Unknown = 'Unknown',\n}\n\nexport enum RetrieveSetupIntentError {\n Unknown = 'Unknown',\n}\n\nexport enum ApplePayError {\n Canceled = 'Canceled',\n Failed = 'Failed',\n Unknown = 'Unknown',\n}\n\nexport enum PaymentSheetError {\n Failed = 'Failed',\n Canceled = 'Canceled',\n}\n\nexport type ErrorType =\n | 'api_connection_error'\n | 'api_error'\n | 'authentication_error'\n | 'card_error'\n | 'idempotency_error'\n | 'invalid_request_error'\n | 'rate_limit_error';\n\nexport interface StripeError<T> {\n code: T;\n message: string;\n localizedMessage?: string;\n declineCode?: string;\n stripeErrorCode?: string;\n type?: ErrorType;\n}\n\nexport enum GooglePayError {\n Failed = 'Failed',\n Canceled = 'Canceled',\n Unknown = 'Unknown',\n}\n\nexport const MissingRoutingNumber = {\n code: CreateTokenError.Failed,\n message:\n 'You must provide a routing number for US bank accounts. This should be the ACH routing number.',\n};\n\nexport enum VerifyMicrodepositsError {\n Canceled = 'Canceled',\n Failed = 'Failed',\n Unknown = 'Unknown',\n}\n\nexport enum CollectBankAccountError {\n Canceled = 'Canceled',\n Failed = 'Failed',\n Unknown = 'Unknown',\n}\n"]}
@@ -1,2 +1,2 @@
1
- Object.defineProperty(exports,"__esModule",{value:true});exports.GooglePay=void 0;var GooglePay;exports.GooglePay=GooglePay;(function(_GooglePay){})(GooglePay||(exports.GooglePay=GooglePay={}));
1
+
2
2
  //# sourceMappingURL=GooglePay.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["GooglePay.ts"],"names":["GooglePay"],"mappings":"qJAAiBA,S,qBAAAA,S","sourcesContent":["export namespace GooglePay {\n export type PresentGooglePayParams = PresentGooglePayType & {\n clientSecret: string;\n };\n\n export type PresentGooglePayType =\n | {\n /*\n * Present Google Pay to collect customer payment details and use it to confirm the\n * [SetupIntent] represented by [clientSecret].\n */\n forSetupIntent?: true;\n /*\n * The Google Pay API requires a [currencyCode](https://developers.google.com/pay/api/android/reference/request-objects#TransactionInfo).\n * [currencyCode] is required even though the SetupIntent API does not require it.\n */\n currencyCode: string;\n }\n | {\n /*\n * Present Google Pay to collect customer payment details and use it to confirm the\n * [PaymentIntent] represented by [clientSecret].\n */\n forSetupIntent?: false;\n };\n\n export interface SetupIntentParams {\n clientSecret: string;\n }\n\n export type InitParams = {\n merchantName: string;\n countryCode: string;\n /**\n * Billing address collection configuration.\n */\n billingAddressConfig?: BillingAddressConfig;\n /**\n * Flag to indicate whether Google Pay collect the customer's email address.\n *\n * Default to `false`.\n */\n isEmailRequired?: boolean;\n } & IsGooglePaySupportedParams;\n\n export type IsGooglePaySupportedParams = {\n testEnv?: boolean;\n /**\n * If `true`, Google Pay is considered ready if the customer's Google Pay wallet\n * has an existing payment method.\n */\n existingPaymentMethodRequired?: boolean;\n };\n\n export interface BillingAddressConfig {\n isRequired?: boolean;\n /**\n * Billing address format required to complete the transaction.\n */\n format?: 'FULL' | 'MIN';\n /**\n * Set to true if a phone number is required to process the transaction.\n */\n isPhoneNumberRequired?: boolean;\n }\n\n export interface CreatePaymentMethodParams {\n /*\n * ISO 4217 alphabetic currency code. (e.g. \"USD\", \"EUR\")\n */\n currencyCode: string;\n /*\n * Amount intended to be collected. A positive integer representing how much to\n * charge in the smallest currency unit (e.g., 100 cents to charge $1.00 or 100 to charge ¥100,\n * a zero-decimal currency).\n */\n amount: number;\n }\n}\n"]}
1
+ {"version":3,"sources":[],"names":[],"mappings":"","sourcesContent":[]}
@@ -0,0 +1,2 @@
1
+ Object.defineProperty(exports,"__esModule",{value:true});exports.Status=void 0;var Status;exports.Status=Status;(function(Status){Status["Succeeded"]="Succeeded";Status["RequiresPaymentMethod"]="RequiresPaymentMethod";Status["RequiresConfirmation"]="RequiresConfirmation";Status["Canceled"]="Canceled";Status["Processing"]="Processing";Status["RequiresAction"]="RequiresAction";Status["RequiresCapture"]="RequiresCapture";Status["Unknown"]="Unknown";})(Status||(exports.Status=Status={}));
2
+ //# sourceMappingURL=PaymentIntent.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["PaymentIntent.ts"],"names":["Status"],"mappings":"kFA2CYA,CAAAA,M,iCAAAA,M,EAAAA,M,0BAAAA,M,kDAAAA,M,gDAAAA,M,wBAAAA,M,4BAAAA,M,oCAAAA,M,sCAAAA,M,yBAAAA,M,kBAAAA,M","sourcesContent":["import type { StripeError } from '.';\nimport type { Address } from './Common';\nimport type { Result as PaymentMethodResult } from './PaymentMethod';\nimport type { NextAction } from './NextAction';\nimport type * as PaymentMethod from './PaymentMethod';\n\nexport interface Result {\n id: string;\n amount: number;\n created: string;\n currency: string;\n status: Status;\n description: string | null;\n receiptEmail: string | null;\n canceledAt: string | null;\n clientSecret: string;\n livemode: boolean;\n paymentMethodId: string;\n captureMethod: 'Automatic' | 'Manual';\n confirmationMethod: 'Automatic' | 'Manual';\n lastPaymentError: LastPaymentError | null;\n shipping: ShippingDetails | null;\n nextAction: NextAction | null;\n}\n\nexport type ConfirmParams = PaymentMethod.CreateParams;\n\nexport type ConfirmOptions = PaymentMethod.ConfirmOptions;\n\nexport type LastPaymentError = StripeError<string> & {\n paymentMethod: PaymentMethodResult;\n};\n\nexport type FutureUsage = 'OffSession' | 'OnSession';\n\nexport interface ShippingDetails {\n address: Required<Address>;\n name: string;\n carrier: string;\n phone: string;\n trackingNumber: string;\n}\n\nexport enum Status {\n Succeeded = 'Succeeded',\n RequiresPaymentMethod = 'RequiresPaymentMethod',\n RequiresConfirmation = 'RequiresConfirmation',\n Canceled = 'Canceled',\n Processing = 'Processing',\n RequiresAction = 'RequiresAction',\n RequiresCapture = 'RequiresCapture',\n Unknown = 'Unknown',\n}\n"]}
@@ -0,0 +1,2 @@
1
+ Object.defineProperty(exports,"__esModule",{value:true});
2
+ //# sourceMappingURL=PaymentMethod.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":"","sourcesContent":[]}
@@ -1,2 +1,2 @@
1
-
1
+ Object.defineProperty(exports,"__esModule",{value:true});
2
2
  //# sourceMappingURL=PaymentSheet.js.map
@@ -1,2 +1,2 @@
1
- Object.defineProperty(exports,"__esModule",{value:true});exports.SetupIntents=exports.ConfirmSetupIntent=void 0;var ConfirmSetupIntent;exports.ConfirmSetupIntent=ConfirmSetupIntent;(function(_ConfirmSetupIntent){})(ConfirmSetupIntent||(exports.ConfirmSetupIntent=ConfirmSetupIntent={}));var SetupIntents;exports.SetupIntents=SetupIntents;(function(_SetupIntents){var Status;(function(Status){Status["Succeeded"]="Succeeded";Status["RequiresPaymentMethod"]="RequiresPaymentMethod";Status["RequiresConfirmation"]="RequiresConfirmation";Status["Canceled"]="Canceled";Status["Processing"]="Processing";Status["RequiresAction"]="RequiresAction";Status["RequiresCapture"]="RequiresCapture";Status["Unknown"]="Unknown";})(Status||(Status={}));_SetupIntents.Status=Status;})(SetupIntents||(exports.SetupIntents=SetupIntents={}));
1
+ Object.defineProperty(exports,"__esModule",{value:true});exports.Status=void 0;var Status;exports.Status=Status;(function(Status){Status["Succeeded"]="Succeeded";Status["RequiresPaymentMethod"]="RequiresPaymentMethod";Status["RequiresConfirmation"]="RequiresConfirmation";Status["Canceled"]="Canceled";Status["Processing"]="Processing";Status["RequiresAction"]="RequiresAction";Status["Unknown"]="Unknown";})(Status||(exports.Status=Status={}));
2
2
  //# sourceMappingURL=SetupIntent.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["SetupIntent.ts"],"names":["ConfirmSetupIntent","Status","SetupIntents"],"mappings":"uNAuBiBA,kB,8BAAAA,kB,qFAwDHC,CAAAA,M,WAAAA,M,EAAAA,M,0BAAAA,M,kDAAAA,M,gDAAAA,M,wBAAAA,M,4BAAAA,M,oCAAAA,M,sCAAAA,M,yBAAAA,M,GAAAA,M,qCARGC,Y,wBAAAA,Y","sourcesContent":["import type { Nullable, StripeError } from '.';\nimport type { AuBECSDebitFormComponent } from './components/AuBECSDebitForm';\nimport type { NextAction } from './NextAction';\nimport type {\n PaymentMethod,\n PaymentMethods,\n PaymentMethodCreateParams,\n} from './PaymentMethods';\n\nexport interface SetupIntent {\n id: string;\n clientSecret: string;\n lastSetupError: Nullable<ConfirmSetupIntent.LastPaymentError>;\n created: Nullable<string>;\n livemode: boolean;\n paymentMethodId: Nullable<string>;\n status: SetupIntents.Status;\n paymentMethodTypes: PaymentMethods.Types[];\n usage: SetupIntents.FutureUsage;\n description: Nullable<string>;\n nextAction: NextAction | null;\n}\n\nexport namespace ConfirmSetupIntent {\n export type LastPaymentError = StripeError<string> & {\n paymentMethod: PaymentMethod;\n };\n\n export type Params =\n | CardParams\n | IdealParams\n | BancontactParams\n | SofortParams\n | AuBecsDebitParams\n | SepaParams\n | PaymentMethodCreateParams.USBankAccountParams;\n\n export interface Options {}\n\n export interface BaseParams {\n billingDetails?: PaymentMethods.BillingDetails;\n }\n\n export interface CardParams extends BaseParams {\n type: 'Card';\n }\n\n export interface IdealParams extends BaseParams {\n type: 'Ideal';\n bankName?: string;\n }\n\n export interface SofortParams extends BaseParams {\n type: 'Sofort';\n country: string;\n }\n export interface BancontactParams extends Required<BaseParams> {\n type: 'Bancontact';\n }\n\n export interface SepaParams extends Required<BaseParams> {\n type: 'SepaDebit';\n iban: string;\n }\n\n export interface AuBecsDebitParams {\n type: 'AuBecsDebit';\n formDetails: AuBECSDebitFormComponent.FormDetails;\n }\n}\n\nexport namespace SetupIntents {\n export type FutureUsage =\n | 'Unknown'\n | 'None'\n | 'OnSession'\n | 'OffSession'\n | 'OneTime';\n\n export enum Status {\n Succeeded = 'Succeeded',\n RequiresPaymentMethod = 'RequiresPaymentMethod',\n RequiresConfirmation = 'RequiresConfirmation',\n Canceled = 'Canceled',\n Processing = 'Processing',\n RequiresAction = 'RequiresAction',\n RequiresCapture = 'RequiresCapture',\n Unknown = 'Unknown',\n }\n}\n"]}
1
+ {"version":3,"sources":["SetupIntent.ts"],"names":["Status"],"mappings":"kFA6BYA,CAAAA,M,iCAAAA,M,EAAAA,M,0BAAAA,M,kDAAAA,M,gDAAAA,M,wBAAAA,M,4BAAAA,M,oCAAAA,M,yBAAAA,M,kBAAAA,M","sourcesContent":["import type { Type } from './PaymentMethod';\nimport type { LastPaymentError } from './PaymentIntent';\nimport type { NextAction } from './NextAction';\nimport type * as PaymentMethod from './PaymentMethod';\nexport interface Result {\n id: string;\n clientSecret: string;\n lastSetupError: LastPaymentError | null;\n created: string | null;\n livemode: boolean;\n paymentMethodId: string | null;\n status: Status;\n paymentMethodTypes: Type[];\n usage: FutureUsage;\n description: string | null;\n nextAction: NextAction | null;\n}\n\nexport type ConfirmParams = PaymentMethod.CreateParams;\n\nexport type ConfirmOptions = PaymentMethod.ConfirmOptions;\n\nexport type FutureUsage =\n | 'Unknown'\n | 'None'\n | 'OnSession'\n | 'OffSession'\n | 'OneTime';\n\nexport enum Status {\n Succeeded = 'Succeeded',\n RequiresPaymentMethod = 'RequiresPaymentMethod',\n RequiresConfirmation = 'RequiresConfirmation',\n Canceled = 'Canceled',\n Processing = 'Processing',\n RequiresAction = 'RequiresAction',\n Unknown = 'Unknown',\n}\n"]}
@@ -1,2 +1,2 @@
1
- Object.defineProperty(exports,"__esModule",{value:true});exports.ThreeDSecure=void 0;var ThreeDSecure;exports.ThreeDSecure=ThreeDSecure;(function(_ThreeDSecure){var NavigationBarStyle;(function(NavigationBarStyle){NavigationBarStyle[NavigationBarStyle["default"]=0]="default";NavigationBarStyle[NavigationBarStyle["black"]=1]="black";NavigationBarStyle[NavigationBarStyle["blackTranslucent"]=2]="blackTranslucent";})(NavigationBarStyle||(NavigationBarStyle={}));_ThreeDSecure.NavigationBarStyle=NavigationBarStyle;var IOS;(function(_IOS){})(IOS||(IOS=_ThreeDSecure.IOS||(_ThreeDSecure.IOS={})));var Android;(function(_Android){})(Android||(Android=_ThreeDSecure.Android||(_ThreeDSecure.Android={})));})(ThreeDSecure||(exports.ThreeDSecure=ThreeDSecure={}));
1
+ Object.defineProperty(exports,"__esModule",{value:true});exports.NavigationBarStyle=void 0;var NavigationBarStyle;exports.NavigationBarStyle=NavigationBarStyle;(function(NavigationBarStyle){NavigationBarStyle[NavigationBarStyle["default"]=0]="default";NavigationBarStyle[NavigationBarStyle["black"]=1]="black";NavigationBarStyle[NavigationBarStyle["blackTranslucent"]=2]="blackTranslucent";})(NavigationBarStyle||(exports.NavigationBarStyle=NavigationBarStyle={}));
2
2
  //# sourceMappingURL=ThreeDSecure.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["ThreeDSecure.ts"],"names":["NavigationBarStyle","IOS","Android","ThreeDSecure"],"mappings":"oKAecA,CAAAA,kB,WAAAA,kB,EAAAA,kB,CAAAA,kB,yBAAAA,kB,CAAAA,kB,qBAAAA,kB,CAAAA,kB,8CAAAA,kB,GAAAA,kB,qFAMKC,G,GAAAA,G,eAAAA,G,iBAAAA,G,0CAYAC,O,GAAAA,O,eAAAA,O,iBAAAA,O,UArBFC,Y,wBAAAA,Y","sourcesContent":["export interface ThreeDSecureConfigurationParams extends ThreeDSecure.Props {\n timeout?: number;\n label?: ThreeDSecure.LabelProps;\n navigationBar?: ThreeDSecure.NavigationBarProps;\n textField?: ThreeDSecure.TextFieldProps;\n submitButton?: ThreeDSecure.ButtonProps;\n cancelButton?: ThreeDSecure.ButtonProps;\n continueButton?: ThreeDSecure.ButtonProps;\n nextButton?: ThreeDSecure.ButtonProps;\n resendButton?: ThreeDSecure.ButtonProps;\n}\n\nexport namespace ThreeDSecure {\n export interface Props extends IOS.Props, Android.Props {}\n\n export enum NavigationBarStyle {\n default = 0,\n black = 1,\n blackTranslucent = 2,\n }\n\n export namespace IOS {\n export interface Props {\n backgroundColor?: string;\n footer?: FooterProps;\n }\n export interface NavigationBarProps {\n barStyle?: NavigationBarStyle;\n translucent?: boolean;\n barTintColor?: string;\n }\n }\n\n export namespace Android {\n export interface Props {\n accentColor?: string;\n }\n export interface NavigationBarProps {\n statusBarColor?: string;\n backgroundColor?: string;\n }\n }\n\n export interface NavigationBarProps\n extends IOS.NavigationBarProps,\n Android.NavigationBarProps {\n headerText?: string;\n buttonText?: string;\n textColor?: string;\n textFontSize?: number;\n }\n\n export interface FooterProps {\n backgroundColor?: string;\n chevronColor?: string;\n headingTextColor?: string;\n textColor?: string;\n }\n\n export interface LabelProps {\n headingTextColor?: string;\n textColor?: string;\n textFontSize?: number;\n headingFontSize?: number;\n }\n\n export interface TextFieldProps {\n borderColor?: string;\n borderWidth?: number;\n borderRadius?: number;\n textColor?: string;\n textFontSize?: number;\n }\n\n export interface ButtonProps {\n backgroundColor?: string;\n borderRadius?: number;\n textColor?: string;\n textFontSize?: number;\n }\n}\n"]}
1
+ {"version":3,"sources":["ThreeDSecure.ts"],"names":["NavigationBarStyle"],"mappings":"8FAcYA,CAAAA,kB,yDAAAA,kB,EAAAA,kB,CAAAA,kB,yBAAAA,kB,CAAAA,kB,qBAAAA,kB,CAAAA,kB,8CAAAA,kB,8BAAAA,kB","sourcesContent":["export interface ConfigurationParams extends Props {\n timeout?: number;\n label?: LabelProps;\n navigationBar?: NavigationBarProps;\n textField?: TextFieldProps;\n submitButton?: ButtonProps;\n cancelButton?: ButtonProps;\n continueButton?: ButtonProps;\n nextButton?: ButtonProps;\n resendButton?: ButtonProps;\n}\n\nexport interface Props extends IOSProps, AndroidProps {}\n\nexport enum NavigationBarStyle {\n default = 0,\n black = 1,\n blackTranslucent = 2,\n}\n\nexport interface IOSProps {\n backgroundColor?: string;\n footer?: FooterProps;\n}\nexport interface IOSNavigationBarProps {\n barStyle?: NavigationBarStyle;\n translucent?: boolean;\n barTintColor?: string;\n}\n\nexport interface AndroidProps {\n accentColor?: string;\n}\nexport interface AndroidNavigationBarProps {\n statusBarColor?: string;\n backgroundColor?: string;\n}\n\nexport interface NavigationBarProps\n extends IOSNavigationBarProps,\n AndroidNavigationBarProps {\n headerText?: string;\n buttonText?: string;\n textColor?: string;\n textFontSize?: number;\n}\n\nexport interface FooterProps {\n backgroundColor?: string;\n chevronColor?: string;\n headingTextColor?: string;\n textColor?: string;\n}\n\nexport interface LabelProps {\n headingTextColor?: string;\n textColor?: string;\n textFontSize?: number;\n headingFontSize?: number;\n}\n\nexport interface TextFieldProps {\n borderColor?: string;\n borderWidth?: number;\n borderRadius?: number;\n textColor?: string;\n textFontSize?: number;\n}\n\nexport interface ButtonProps {\n backgroundColor?: string;\n borderRadius?: number;\n textColor?: string;\n textFontSize?: number;\n}\n"]}
@@ -0,0 +1,2 @@
1
+ Object.defineProperty(exports,"__esModule",{value:true});
2
+ //# sourceMappingURL=Token.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":"","sourcesContent":[]}
@@ -1,2 +1,2 @@
1
- Object.defineProperty(exports,"__esModule",{value:true});exports.ApplePayButtonComponent=void 0;var ApplePayButtonComponent;exports.ApplePayButtonComponent=ApplePayButtonComponent;(function(_ApplePayButtonComponent){})(ApplePayButtonComponent||(exports.ApplePayButtonComponent=ApplePayButtonComponent={}));
1
+ Object.defineProperty(exports,"__esModule",{value:true});
2
2
  //# sourceMappingURL=ApplePayButtonComponent.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["ApplePayButtonComponent.ts"],"names":["ApplePayButtonComponent"],"mappings":"2NAEiBA,uB,mCAAAA,uB","sourcesContent":["import type { StyleProp, ViewStyle } from 'react-native';\n\nexport namespace ApplePayButtonComponent {\n export interface NativeProps {\n style?: StyleProp<ViewStyle>;\n type?: number;\n buttonStyle?: number;\n borderRadius?: number;\n onPressAction(): void;\n }\n\n export type Types =\n | 'plain'\n | 'buy'\n | 'setUp'\n | 'inStore'\n | 'donate'\n | 'checkout'\n | 'book'\n | 'subscribe'\n | 'reload'\n | 'addMoney'\n | 'topUp'\n | 'order'\n | 'rent'\n | 'support'\n | 'contribute'\n | 'tip';\n\n export type Styles = 'white' | 'whiteOutline' | 'black' | 'automatic';\n}\n"]}
1
+ {"version":3,"sources":[],"names":[],"mappings":"","sourcesContent":[]}
@@ -0,0 +1,2 @@
1
+ Object.defineProperty(exports,"__esModule",{value:true});
2
+ //# sourceMappingURL=AuBECSDebitFormComponent.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":"","sourcesContent":[]}
@@ -1,2 +1,2 @@
1
- Object.defineProperty(exports,"__esModule",{value:true});exports.CardFieldInput=void 0;var CardFieldInput;exports.CardFieldInput=CardFieldInput;(function(_CardFieldInput){var ValidationState;(function(ValidationState){ValidationState["Valid"]="Valid";ValidationState["Invalid"]="Invalid";ValidationState["Incomplete"]="Incomplete";ValidationState["Unknown"]="Unknown";})(ValidationState||(ValidationState={}));_CardFieldInput.ValidationState=ValidationState;})(CardFieldInput||(exports.CardFieldInput=CardFieldInput={}));
1
+ Object.defineProperty(exports,"__esModule",{value:true});exports.ValidationState=void 0;var ValidationState;exports.ValidationState=ValidationState;(function(ValidationState){ValidationState["Valid"]="Valid";ValidationState["Invalid"]="Invalid";ValidationState["Incomplete"]="Incomplete";ValidationState["Unknown"]="Unknown";})(ValidationState||(exports.ValidationState=ValidationState={}));
2
2
  //# sourceMappingURL=CardFieldInput.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["CardFieldInput.ts"],"names":["ValidationState","CardFieldInput"],"mappings":"8KAMcA,CAAAA,e,WAAAA,e,EAAAA,e,kBAAAA,e,sBAAAA,e,4BAAAA,e,yBAAAA,e,GAAAA,e,yDAFGC,c,0BAAAA,c","sourcesContent":["import type { NativeSyntheticEvent, StyleProp, ViewStyle } from 'react-native';\nimport type { Nullable } from '../';\nimport type { Card } from '../Card';\n\nexport namespace CardFieldInput {\n export type Names = 'CardNumber' | 'Cvc' | 'ExpiryDate' | 'PostalCode';\n export enum ValidationState {\n Valid = 'Valid',\n Invalid = 'Invalid',\n Incomplete = 'Incomplete',\n Unknown = 'Unknown',\n }\n\n export interface Details {\n last4: string;\n expiryMonth: number;\n expiryYear: number;\n postalCode?: string;\n brand: Card.Brand;\n complete: boolean;\n validExpiryDate: ValidationState;\n validCVC: ValidationState;\n validNumber: ValidationState;\n /**\n * WARNING: Full card details are only returned when the `dangerouslyGetFullCardDetails` prop\n * on the `CardField` component is set to `true`.\n * Only do this if you're certain that you fulfill the necessary PCI compliance requirements.\n * Make sure that you're not mistakenly logging or storing full card details!\n * See the docs for details: https://stripe.com/docs/security/guide#validating-pci-compliance\n */\n number?: string;\n }\n\n export interface Styles {\n borderWidth?: number;\n backgroundColor?: string;\n borderColor?: string;\n borderRadius?: number;\n textColor?: string;\n fontSize?: number;\n placeholderColor?: string;\n cursorColor?: string;\n textErrorColor?: string;\n fontFamily?: string;\n }\n\n export interface Placeholders {\n number?: string;\n expiration?: string;\n cvc?: string;\n postalCode?: string;\n }\n\n /**\n * @ignore\n */\n export interface NativeProps {\n style?: StyleProp<ViewStyle>;\n value?: Partial<Details>;\n postalCodeEnabled?: boolean;\n autofocus?: boolean;\n onCardChange(event: NativeSyntheticEvent<Details>): void;\n onFocusChange(\n event: NativeSyntheticEvent<{ focusedField: Nullable<Names> }>\n ): void;\n cardStyle?: Styles;\n placeholder?: Placeholders;\n }\n\n export interface Methods {\n focus(): void;\n blur(): void;\n clear(): void;\n }\n}\n"]}
1
+ {"version":3,"sources":["CardFieldInput.ts"],"names":["ValidationState"],"mappings":"2FAKYA,CAAAA,e,mDAAAA,e,EAAAA,e,kBAAAA,e,sBAAAA,e,4BAAAA,e,yBAAAA,e,2BAAAA,e","sourcesContent":["import type { NativeSyntheticEvent, StyleProp, ViewStyle } from 'react-native';\nimport type { CardBrand } from '../Token';\n\nexport type FieldName = 'CardNumber' | 'Cvc' | 'ExpiryDate' | 'PostalCode';\n\nexport enum ValidationState {\n Valid = 'Valid',\n Invalid = 'Invalid',\n Incomplete = 'Incomplete',\n Unknown = 'Unknown',\n}\n\nexport interface Details {\n last4: string;\n expiryMonth: number;\n expiryYear: number;\n postalCode?: string;\n brand: CardBrand;\n complete: boolean;\n validExpiryDate: ValidationState;\n validCVC: ValidationState;\n validNumber: ValidationState;\n /**\n * WARNING: Full card details are only returned when the `dangerouslyGetFullCardDetails` prop\n * on the `CardField` component is set to `true`.\n * Only do this if you're certain that you fulfill the necessary PCI compliance requirements.\n * Make sure that you're not mistakenly logging or storing full card details!\n * See the docs for details: https://stripe.com/docs/security/guide#validating-pci-compliance\n */\n number?: string;\n}\n\nexport interface Styles {\n borderWidth?: number;\n backgroundColor?: string;\n borderColor?: string;\n borderRadius?: number;\n textColor?: string;\n fontSize?: number;\n placeholderColor?: string;\n cursorColor?: string;\n textErrorColor?: string;\n fontFamily?: string;\n}\n\nexport interface Placeholders {\n number?: string;\n expiration?: string;\n cvc?: string;\n postalCode?: string;\n}\n\n/**\n * @ignore\n */\nexport interface NativeProps {\n style?: StyleProp<ViewStyle>;\n value?: Partial<Details>;\n postalCodeEnabled?: boolean;\n autofocus?: boolean;\n onCardChange(event: NativeSyntheticEvent<Details>): void;\n onFocusChange(\n event: NativeSyntheticEvent<{ focusedField: FieldName | null }>\n ): void;\n cardStyle?: Styles;\n placeholder?: Placeholders;\n}\n\nexport interface Methods {\n focus(): void;\n blur(): void;\n clear(): void;\n}\n"]}
@@ -1,2 +1,2 @@
1
- Object.defineProperty(exports,"__esModule",{value:true});exports.CardFormView=void 0;var CardFormView;exports.CardFormView=CardFormView;(function(_CardFormView){})(CardFormView||(exports.CardFormView=CardFormView={}));
1
+ Object.defineProperty(exports,"__esModule",{value:true});
2
2
  //# sourceMappingURL=CardFormView.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["CardFormView.ts"],"names":["CardFormView"],"mappings":"oKAIiBA,Y,wBAAAA,Y","sourcesContent":["import type { NativeSyntheticEvent, StyleProp, ViewStyle } from 'react-native';\nimport type { Nullable } from '..';\nimport type { Card } from '../Card';\n\nexport namespace CardFormView {\n export type Names = 'CardNumber' | 'Cvc' | 'ExpiryDate' | 'PostalCode';\n\n export interface Details {\n last4: string;\n expiryMonth: number;\n expiryYear: number;\n postalCode?: string;\n brand: Card.Brand;\n complete: boolean;\n country: string;\n /**\n * WARNING: Full card details are only returned when the `dangerouslyGetFullCardDetails` prop\n * on the `CardField` component is set to `true`.\n * Only do this if you're certain that you fulfill the necessary PCI compliance requirements.\n * Make sure that you're not mistakenly logging or storing full card details!\n * See the docs for details: https://stripe.com/docs/security/guide#validating-pci-compliance\n */\n number?: string;\n }\n\n export interface Styles {\n backgroundColor?: string;\n // disabledBackgroundColor?: string;\n // type?: 'borderless' | 'standard';\n }\n\n export interface Placeholders {\n number?: string;\n expiration?: string;\n cvc?: string;\n postalCode?: string;\n }\n\n /**\n * @ignore\n */\n export interface NativeProps {\n style?: StyleProp<ViewStyle>;\n autofocus?: boolean;\n // isUserInteractionEnabledValue?: boolean;\n cardStyle?: Styles;\n // placeholder: Placeholders;\n // postalCodeEnabled: boolean;\n onFocusChange(\n event: NativeSyntheticEvent<{ focusedField: Nullable<Names> }>\n ): void;\n onFormComplete(event: NativeSyntheticEvent<Details>): void;\n }\n\n export interface Methods {\n focus(): void;\n blur(): void;\n }\n}\n"]}
1
+ {"version":3,"sources":[],"names":[],"mappings":"","sourcesContent":[]}
@@ -1,2 +1,2 @@
1
- Object.defineProperty(exports,"__esModule",{value:true});var _ApplePay=require("./ApplePay");Object.keys(_ApplePay).forEach(function(key){if(key==="default"||key==="__esModule")return;if(key in exports&&exports[key]===_ApplePay[key])return;Object.defineProperty(exports,key,{enumerable:true,get:function get(){return _ApplePay[key];}});});var _PaymentIntents=require("./PaymentIntents");Object.keys(_PaymentIntents).forEach(function(key){if(key==="default"||key==="__esModule")return;if(key in exports&&exports[key]===_PaymentIntents[key])return;Object.defineProperty(exports,key,{enumerable:true,get:function get(){return _PaymentIntents[key];}});});var _PaymentMethods=require("./PaymentMethods");Object.keys(_PaymentMethods).forEach(function(key){if(key==="default"||key==="__esModule")return;if(key in exports&&exports[key]===_PaymentMethods[key])return;Object.defineProperty(exports,key,{enumerable:true,get:function get(){return _PaymentMethods[key];}});});var _SetupIntent=require("./SetupIntent");Object.keys(_SetupIntent).forEach(function(key){if(key==="default"||key==="__esModule")return;if(key in exports&&exports[key]===_SetupIntent[key])return;Object.defineProperty(exports,key,{enumerable:true,get:function get(){return _SetupIntent[key];}});});var _GooglePay=require("./GooglePay");Object.keys(_GooglePay).forEach(function(key){if(key==="default"||key==="__esModule")return;if(key in exports&&exports[key]===_GooglePay[key])return;Object.defineProperty(exports,key,{enumerable:true,get:function get(){return _GooglePay[key];}});});var _ThreeDSecure=require("./ThreeDSecure");Object.keys(_ThreeDSecure).forEach(function(key){if(key==="default"||key==="__esModule")return;if(key in exports&&exports[key]===_ThreeDSecure[key])return;Object.defineProperty(exports,key,{enumerable:true,get:function get(){return _ThreeDSecure[key];}});});var _ApplePayButtonComponent=require("./components/ApplePayButtonComponent");Object.keys(_ApplePayButtonComponent).forEach(function(key){if(key==="default"||key==="__esModule")return;if(key in exports&&exports[key]===_ApplePayButtonComponent[key])return;Object.defineProperty(exports,key,{enumerable:true,get:function get(){return _ApplePayButtonComponent[key];}});});var _AuBECSDebitForm=require("./components/AuBECSDebitForm");Object.keys(_AuBECSDebitForm).forEach(function(key){if(key==="default"||key==="__esModule")return;if(key in exports&&exports[key]===_AuBECSDebitForm[key])return;Object.defineProperty(exports,key,{enumerable:true,get:function get(){return _AuBECSDebitForm[key];}});});var _CardFieldInput=require("./components/CardFieldInput");Object.keys(_CardFieldInput).forEach(function(key){if(key==="default"||key==="__esModule")return;if(key in exports&&exports[key]===_CardFieldInput[key])return;Object.defineProperty(exports,key,{enumerable:true,get:function get(){return _CardFieldInput[key];}});});var _CardFormView=require("./components/CardFormView");Object.keys(_CardFormView).forEach(function(key){if(key==="default"||key==="__esModule")return;if(key in exports&&exports[key]===_CardFormView[key])return;Object.defineProperty(exports,key,{enumerable:true,get:function get(){return _CardFormView[key];}});});var _Card=require("./Card");Object.keys(_Card).forEach(function(key){if(key==="default"||key==="__esModule")return;if(key in exports&&exports[key]===_Card[key])return;Object.defineProperty(exports,key,{enumerable:true,get:function get(){return _Card[key];}});});var _Errors=require("./Errors");Object.keys(_Errors).forEach(function(key){if(key==="default"||key==="__esModule")return;if(key in exports&&exports[key]===_Errors[key])return;Object.defineProperty(exports,key,{enumerable:true,get:function get(){return _Errors[key];}});});var _PaymentSheet=require("./PaymentSheet");Object.keys(_PaymentSheet).forEach(function(key){if(key==="default"||key==="__esModule")return;if(key in exports&&exports[key]===_PaymentSheet[key])return;Object.defineProperty(exports,key,{enumerable:true,get:function get(){return _PaymentSheet[key];}});});
1
+ Object.defineProperty(exports,"__esModule",{value:true});var _exportNames={ApplePay:true,PaymentIntent:true,PaymentMethod:true,PaymentSheet:true,SetupIntent:true,ThreeDSecure:true,GooglePay:true,ApplePayButtonComponent:true,AuBECSDebitFormComponent:true,CardFieldInput:true,CardFormView:true,Token:true,Address:true,BillingDetails:true};Object.defineProperty(exports,"Address",{enumerable:true,get:function get(){return _Common.Address;}});exports.AuBECSDebitFormComponent=exports.ApplePayButtonComponent=exports.ApplePay=void 0;Object.defineProperty(exports,"BillingDetails",{enumerable:true,get:function get(){return _Common.BillingDetails;}});exports.Token=exports.ThreeDSecure=exports.SetupIntent=exports.PaymentSheet=exports.PaymentMethod=exports.PaymentIntent=exports.GooglePay=exports.CardFormView=exports.CardFieldInput=void 0;var ApplePay=_interopRequireWildcard(require("./ApplePay"));exports.ApplePay=ApplePay;var PaymentIntent=_interopRequireWildcard(require("./PaymentIntent"));exports.PaymentIntent=PaymentIntent;var PaymentMethod=_interopRequireWildcard(require("./PaymentMethod"));exports.PaymentMethod=PaymentMethod;var PaymentSheet=_interopRequireWildcard(require("./PaymentSheet"));exports.PaymentSheet=PaymentSheet;var SetupIntent=_interopRequireWildcard(require("./SetupIntent"));exports.SetupIntent=SetupIntent;var ThreeDSecure=_interopRequireWildcard(require("./ThreeDSecure"));exports.ThreeDSecure=ThreeDSecure;var GooglePay=_interopRequireWildcard(require("./GooglePay"));exports.GooglePay=GooglePay;var ApplePayButtonComponent=_interopRequireWildcard(require("./components/ApplePayButtonComponent"));exports.ApplePayButtonComponent=ApplePayButtonComponent;var AuBECSDebitFormComponent=_interopRequireWildcard(require("./components/AuBECSDebitFormComponent"));exports.AuBECSDebitFormComponent=AuBECSDebitFormComponent;var CardFieldInput=_interopRequireWildcard(require("./components/CardFieldInput"));exports.CardFieldInput=CardFieldInput;var CardFormView=_interopRequireWildcard(require("./components/CardFormView"));exports.CardFormView=CardFormView;var Token=_interopRequireWildcard(require("./Token"));exports.Token=Token;var _Errors=require("./Errors");Object.keys(_Errors).forEach(function(key){if(key==="default"||key==="__esModule")return;if(Object.prototype.hasOwnProperty.call(_exportNames,key))return;if(key in exports&&exports[key]===_Errors[key])return;Object.defineProperty(exports,key,{enumerable:true,get:function get(){return _Errors[key];}});});var _Common=require("./Common");function _getRequireWildcardCache(nodeInterop){if(typeof WeakMap!=="function")return null;var cacheBabelInterop=new WeakMap();var cacheNodeInterop=new WeakMap();return(_getRequireWildcardCache=function _getRequireWildcardCache(nodeInterop){return nodeInterop?cacheNodeInterop:cacheBabelInterop;})(nodeInterop);}function _interopRequireWildcard(obj,nodeInterop){if(!nodeInterop&&obj&&obj.__esModule){return obj;}if(obj===null||typeof obj!=="object"&&typeof obj!=="function"){return{default:obj};}var cache=_getRequireWildcardCache(nodeInterop);if(cache&&cache.has(obj)){return cache.get(obj);}var newObj={};var hasPropertyDescriptor=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var key in obj){if(key!=="default"&&Object.prototype.hasOwnProperty.call(obj,key)){var desc=hasPropertyDescriptor?Object.getOwnPropertyDescriptor(obj,key):null;if(desc&&(desc.get||desc.set)){Object.defineProperty(newObj,key,desc);}else{newObj[key]=obj[key];}}}newObj.default=obj;if(cache){cache.set(obj,newObj);}return newObj;}
2
2
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["index.ts"],"names":[],"mappings":"yDAuBA,0RACA,wTACA,wTACA,ySACA,+RACA,8SACA,gXACA,wUACA,mUACA,yTACA,sQACA,gRACA","sourcesContent":["import type { Card } from './Card';\nimport type {\n ApplePayError,\n CardActionError,\n ConfirmPaymentError,\n ConfirmSetupIntentError,\n CreatePaymentMethodError,\n CreateTokenError,\n GooglePayError,\n PaymentSheetError,\n RetrievePaymentIntentError,\n RetrieveSetupIntentError,\n StripeError,\n} from './Errors';\nimport type { PaymentIntent } from './PaymentIntents';\nimport type {\n PaymentMethod,\n PaymentMethodCreateParams,\n} from './PaymentMethods';\nimport type { PaymentSheet } from './PaymentSheet';\nimport type { SetupIntent } from './SetupIntent';\nimport type { ThreeDSecureConfigurationParams } from './ThreeDSecure';\n\nexport * from './ApplePay';\nexport * from './PaymentIntents';\nexport * from './PaymentMethods';\nexport * from './SetupIntent';\nexport * from './GooglePay';\nexport * from './ThreeDSecure';\nexport * from './components/ApplePayButtonComponent';\nexport * from './components/AuBECSDebitForm';\nexport * from './components/CardFieldInput';\nexport * from './components/CardFormView';\nexport * from './Card';\nexport * from './Errors';\nexport * from './PaymentSheet';\n\n/**\n * @ignore\n */\nexport type Dictionary<T> = {\n [key: string]: T;\n};\n\n/**\n * @ignore\n */\nexport type Nullable<T> = T | null;\n\nexport interface AppInfo {\n name?: string;\n partnerId?: string;\n url?: string;\n version?: string;\n}\n\nexport type CreatePaymentMethodResult =\n | {\n paymentMethod: PaymentMethod;\n error?: undefined;\n }\n | {\n paymentMethod?: undefined;\n error: StripeError<CreatePaymentMethodError>;\n };\n\nexport type RetrievePaymentIntentResult =\n | {\n paymentIntent: PaymentIntent;\n error?: undefined;\n }\n | {\n paymentIntent?: undefined;\n error: StripeError<RetrievePaymentIntentError>;\n };\n\nexport type RetrieveSetupIntentResult =\n | {\n setupIntent: SetupIntent;\n error?: undefined;\n }\n | {\n setupIntent?: undefined;\n error: StripeError<RetrieveSetupIntentError>;\n };\n\nexport type ConfirmPaymentResult =\n | {\n paymentIntent: PaymentIntent;\n error?: undefined;\n }\n | {\n paymentIntent?: undefined;\n error: StripeError<ConfirmPaymentError>;\n };\n\nexport type HandleNextActionResult =\n | {\n paymentIntent: PaymentIntent;\n error?: undefined;\n }\n | {\n paymentIntent?: undefined;\n error: StripeError<CardActionError>;\n };\n\nexport type ConfirmSetupIntentResult =\n | {\n setupIntent: SetupIntent;\n error?: undefined;\n }\n | {\n setupIntent?: undefined;\n error: StripeError<ConfirmSetupIntentError>;\n };\n\nexport type CreateTokenForCVCUpdateResult =\n | {\n tokenId: string;\n error?: undefined;\n }\n | {\n tokenId?: undefined;\n error: StripeError<ConfirmSetupIntentError>;\n };\n\nexport type InitPaymentSheetResult =\n | {\n paymentOption?: PaymentSheet.PaymentOption;\n error?: undefined;\n }\n | {\n paymentOption?: undefined;\n error: StripeError<PaymentSheetError>;\n };\n\nexport type PresentPaymentSheetResult =\n | {\n paymentOption?: undefined;\n error?: undefined;\n }\n | {\n paymentOption?: PaymentSheet.PaymentOption;\n error?: undefined;\n }\n | {\n paymentOption?: undefined;\n error: StripeError<PaymentSheetError>;\n };\n\nexport type CreateTokenResult =\n | {\n token: Card.Token;\n error?: undefined;\n }\n | {\n token?: undefined;\n error: StripeError<CreateTokenError>;\n };\n\nexport type ConfirmPaymentSheetPaymentResult = {\n error?: StripeError<PaymentSheetError>;\n};\n\nexport type ApplePayResult =\n | {\n paymentMethod: PaymentMethod;\n error?: undefined;\n }\n | {\n paymentMethod?: undefined;\n error: StripeError<ApplePayError>;\n };\n\nexport interface InitStripeParams {\n publishableKey: string;\n merchantIdentifier?: string;\n threeDSecureParams?: ThreeDSecureConfigurationParams;\n stripeAccountId?: string;\n urlScheme?: string;\n setReturnUrlSchemeOnAndroid?: boolean;\n /**\n * @deprecated Use setReturnUrlSchemeOnAndroid instead\n */\n setUrlSchemeOnAndroid?: boolean;\n}\n\nexport interface InitialiseParams extends InitStripeParams {\n appInfo: AppInfo;\n}\n\nexport type GooglePayInitResult =\n | {\n error?: undefined;\n }\n | {\n error: StripeError<GooglePayError>;\n };\n\nexport type PayWithGooglePayResult =\n | {\n error?: undefined;\n }\n | {\n error: StripeError<GooglePayError>;\n };\n\nexport type CreateGooglePayPaymentMethodResult =\n | {\n paymentMethod: PaymentMethod;\n error?: undefined;\n }\n | {\n paymentMethod?: undefined;\n error: StripeError<GooglePayError>;\n };\n\nexport type OpenApplePaySetupResult =\n | {\n error?: undefined;\n }\n | {\n error: StripeError<ApplePayError>;\n };\n\nexport type CreateTokenParams =\n | CreateTokenCardParams\n | CreateTokenBankAccountParams;\n\nexport type CreateTokenCardParams = {\n type: 'Card';\n address?: Card.Address;\n name?: string;\n currency?: string;\n};\n\nexport type BankAcccountHolderType = 'Company' | 'Individual';\n\nexport type BankAcccountType = 'Checking' | 'Savings';\n\nexport type CreateTokenBankAccountParams = {\n type: 'BankAccount';\n accountHolderName?: string;\n accountHolderType?: BankAcccountHolderType;\n accountNumber: string;\n country: string;\n currency: string;\n routingNumber?: string;\n};\n\nexport type VerifyMicrodepositsParams =\n | {\n amounts: number[];\n descriptorCode?: undefined;\n }\n | {\n amounts?: undefined;\n descriptorCode: string;\n };\n\nexport type CollectBankAccountParams =\n PaymentMethodCreateParams.USBankAccountParams & {\n billingDetails: {\n name: string;\n email?: string;\n };\n };\n"]}
1
+ {"version":3,"sources":["index.ts"],"names":[],"mappings":"m0BAeA,4D,0BACA,sE,oCACA,sE,oCACA,oE,kCACA,kE,gCACA,oE,kCACA,8D,4BACA,qG,wDACA,uG,0DACA,mF,sCACA,+E,kCACA,sD,oBAiBA,iVACA,gC","sourcesContent":["import type {\n ApplePayError,\n CardActionError,\n ConfirmPaymentError,\n ConfirmSetupIntentError,\n CreatePaymentMethodError,\n CreateTokenError,\n GooglePayError,\n PaymentSheetError,\n RetrievePaymentIntentError,\n RetrieveSetupIntentError,\n StripeError,\n VerifyMicrodepositsError,\n CollectBankAccountError,\n} from './Errors';\nimport * as ApplePay from './ApplePay';\nimport * as PaymentIntent from './PaymentIntent';\nimport * as PaymentMethod from './PaymentMethod';\nimport * as PaymentSheet from './PaymentSheet';\nimport * as SetupIntent from './SetupIntent';\nimport * as ThreeDSecure from './ThreeDSecure';\nimport * as GooglePay from './GooglePay';\nimport * as ApplePayButtonComponent from './components/ApplePayButtonComponent';\nimport * as AuBECSDebitFormComponent from './components/AuBECSDebitFormComponent';\nimport * as CardFieldInput from './components/CardFieldInput';\nimport * as CardFormView from './components/CardFormView';\nimport * as Token from './Token';\n\nexport {\n ApplePay,\n PaymentIntent,\n PaymentMethod,\n PaymentSheet,\n SetupIntent,\n ThreeDSecure,\n GooglePay,\n ApplePayButtonComponent,\n AuBECSDebitFormComponent,\n CardFieldInput,\n CardFormView,\n Token,\n};\n\nexport * from './Errors';\nexport { Address, BillingDetails } from './Common';\n\n/**\n * @ignore\n */\nexport type Dictionary<T> = {\n [key: string]: T;\n};\n\nexport interface AppInfo {\n name?: string;\n partnerId?: string;\n url?: string;\n version?: string;\n}\n\nexport type CreatePaymentMethodResult =\n | {\n paymentMethod: PaymentMethod.Result;\n error?: undefined;\n }\n | {\n paymentMethod?: undefined;\n error: StripeError<CreatePaymentMethodError>;\n };\n\nexport type RetrievePaymentIntentResult =\n | {\n paymentIntent: PaymentIntent.Result;\n error?: undefined;\n }\n | {\n paymentIntent?: undefined;\n error: StripeError<RetrievePaymentIntentError>;\n };\n\nexport type RetrieveSetupIntentResult =\n | {\n setupIntent: SetupIntent.Result;\n error?: undefined;\n }\n | {\n setupIntent?: undefined;\n error: StripeError<RetrieveSetupIntentError>;\n };\n\nexport type ConfirmPaymentResult =\n | {\n paymentIntent: PaymentIntent.Result;\n error?: undefined;\n }\n | {\n paymentIntent?: undefined;\n error: StripeError<ConfirmPaymentError>;\n };\n\nexport type HandleNextActionResult =\n | {\n paymentIntent: PaymentIntent.Result;\n error?: undefined;\n }\n | {\n paymentIntent?: undefined;\n error: StripeError<CardActionError>;\n };\n\nexport type ConfirmSetupIntentResult =\n | {\n setupIntent: SetupIntent.Result;\n error?: undefined;\n }\n | {\n setupIntent?: undefined;\n error: StripeError<ConfirmSetupIntentError>;\n };\n\nexport type CreateTokenForCVCUpdateResult =\n | {\n tokenId: string;\n error?: undefined;\n }\n | {\n tokenId?: undefined;\n error: StripeError<ConfirmSetupIntentError>;\n };\n\nexport type InitPaymentSheetResult =\n | {\n paymentOption?: PaymentSheet.PaymentOption;\n error?: undefined;\n }\n | {\n paymentOption?: undefined;\n error: StripeError<PaymentSheetError>;\n };\n\nexport type PresentPaymentSheetResult =\n | {\n paymentOption?: undefined;\n error?: undefined;\n }\n | {\n paymentOption?: PaymentSheet.PaymentOption;\n error?: undefined;\n }\n | {\n paymentOption?: undefined;\n error: StripeError<PaymentSheetError>;\n };\n\nexport type CreateTokenResult =\n | {\n token: Token.Result;\n error?: undefined;\n }\n | {\n token?: undefined;\n error: StripeError<CreateTokenError>;\n };\n\nexport type ConfirmPaymentSheetPaymentResult = {\n error?: StripeError<PaymentSheetError>;\n};\n\nexport type ApplePayResult =\n | {\n paymentMethod: PaymentMethod.Result;\n error?: undefined;\n }\n | {\n paymentMethod?: undefined;\n error: StripeError<ApplePayError>;\n };\n\nexport interface InitStripeParams {\n publishableKey: string;\n stripeAccountId?: string;\n threeDSecureParams?: ThreeDSecure.ConfigurationParams;\n merchantIdentifier?: string;\n urlScheme?: string;\n setReturnUrlSchemeOnAndroid?: boolean;\n}\n\nexport interface InitialiseParams extends InitStripeParams {\n appInfo: AppInfo;\n}\n\nexport type GooglePayInitResult =\n | {\n error?: undefined;\n }\n | {\n error: StripeError<GooglePayError>;\n };\n\nexport type PayWithGooglePayResult =\n | {\n error?: undefined;\n }\n | {\n error: StripeError<GooglePayError>;\n };\n\nexport type CreateGooglePayPaymentMethodResult =\n | {\n paymentMethod: PaymentMethod.Result;\n error?: undefined;\n }\n | {\n paymentMethod?: undefined;\n error: StripeError<GooglePayError>;\n };\n\nexport type OpenApplePaySetupResult =\n | {\n error?: undefined;\n }\n | {\n error: StripeError<ApplePayError>;\n };\n\nexport type VerifyMicrodepositsParams =\n | {\n amounts: number[];\n descriptorCode?: undefined;\n }\n | {\n amounts?: undefined;\n descriptorCode: string;\n };\n\nexport type VerifyMicrodepositsForPaymentResult =\n | {\n paymentIntent: PaymentIntent.Result;\n error?: undefined;\n }\n | {\n paymentIntent?: undefined;\n error: StripeError<VerifyMicrodepositsError>;\n };\n\nexport type VerifyMicrodepositsForSetupResult =\n | {\n setupIntent: SetupIntent.Result;\n error?: undefined;\n }\n | {\n setupIntent?: undefined;\n error: StripeError<VerifyMicrodepositsError>;\n };\n\nexport type CollectBankAccountForPaymentResult =\n | {\n paymentIntent: PaymentIntent.Result;\n error?: undefined;\n }\n | {\n paymentIntent?: undefined;\n error: StripeError<CollectBankAccountError>;\n };\n\nexport type CollectBankAccountForSetupResult =\n | {\n setupIntent: SetupIntent.Result;\n error?: undefined;\n }\n | {\n setupIntent?: undefined;\n error: StripeError<CollectBankAccountError>;\n };\n"]}
@@ -1,9 +1,9 @@
1
- import type { PaymentMethodCreateParams, ApplePay, PaymentSheet, ConfirmSetupIntent, InitialiseParams, CreatePaymentMethodResult, RetrievePaymentIntentResult, RetrieveSetupIntentResult, ConfirmPaymentResult, HandleNextActionResult, ConfirmSetupIntentResult, CreateTokenForCVCUpdateResult, InitPaymentSheetResult, PresentPaymentSheetResult, ConfirmPaymentSheetPaymentResult, ApplePayResult, CreateTokenResult, GooglePayInitResult, PayWithGooglePayResult, CreateGooglePayPaymentMethodResult, GooglePay, OpenApplePaySetupResult, CreateTokenParams, VerifyMicrodepositsParams, CollectBankAccountParams } from './types';
1
+ import type { PaymentMethod, ApplePay, PaymentSheet, SetupIntent, InitialiseParams, CreatePaymentMethodResult, RetrievePaymentIntentResult, RetrieveSetupIntentResult, ConfirmPaymentResult, HandleNextActionResult, ConfirmSetupIntentResult, CreateTokenForCVCUpdateResult, InitPaymentSheetResult, PresentPaymentSheetResult, ConfirmPaymentSheetPaymentResult, ApplePayResult, CreateTokenResult, GooglePayInitResult, PayWithGooglePayResult, CreateGooglePayPaymentMethodResult, GooglePay, OpenApplePaySetupResult, Token, VerifyMicrodepositsParams } from './types';
2
2
  declare type NativeStripeSdkType = {
3
3
  initialise(params: InitialiseParams): Promise<void>;
4
- createPaymentMethod(data: PaymentMethodCreateParams.Params, options: PaymentMethodCreateParams.Options): Promise<CreatePaymentMethodResult>;
4
+ createPaymentMethod(params: PaymentMethod.CreateParams, options: PaymentMethod.CreateOptions): Promise<CreatePaymentMethodResult>;
5
5
  handleNextAction(paymentIntentClientSecret: string): Promise<HandleNextActionResult>;
6
- confirmPayment(paymentIntentClientSecret: string, data: PaymentMethodCreateParams.Params, options: PaymentMethodCreateParams.Options): Promise<ConfirmPaymentResult>;
6
+ confirmPayment(paymentIntentClientSecret: string, params: PaymentMethod.ConfirmParams, options: PaymentMethod.ConfirmOptions): Promise<ConfirmPaymentResult>;
7
7
  isApplePaySupported(): Promise<boolean>;
8
8
  presentApplePay(params: ApplePay.PresentParams): Promise<ApplePayResult>;
9
9
  confirmApplePayPayment(clientSecret: string): Promise<void>;
@@ -11,7 +11,7 @@ declare type NativeStripeSdkType = {
11
11
  field: ApplePay.AddressFields;
12
12
  message?: string;
13
13
  }>): Promise<void>;
14
- confirmSetupIntent(paymentIntentClientSecret: string, data: ConfirmSetupIntent.Params, options: ConfirmSetupIntent.Options): Promise<ConfirmSetupIntentResult>;
14
+ confirmSetupIntent(paymentIntentClientSecret: string, params: SetupIntent.ConfirmParams, options: SetupIntent.ConfirmOptions): Promise<ConfirmSetupIntentResult>;
15
15
  retrievePaymentIntent(clientSecret: string): Promise<RetrievePaymentIntentResult>;
16
16
  retrieveSetupIntent(clientSecret: string): Promise<RetrieveSetupIntentResult>;
17
17
  initPaymentSheet(params: PaymentSheet.SetupParams): Promise<InitPaymentSheetResult>;
@@ -19,14 +19,14 @@ declare type NativeStripeSdkType = {
19
19
  confirmPaymentSheetPayment(): Promise<ConfirmPaymentSheetPaymentResult>;
20
20
  createTokenForCVCUpdate(cvc: string): Promise<CreateTokenForCVCUpdateResult>;
21
21
  handleURLCallback(url: string): Promise<boolean>;
22
- createToken(params: CreateTokenParams): Promise<CreateTokenResult>;
23
- isGooglePaySupported(params: GooglePay.IsGooglePaySupportedParams): Promise<boolean>;
22
+ createToken(params: Token.CreateParams): Promise<CreateTokenResult>;
23
+ isGooglePaySupported(params: GooglePay.IsSupportedParams): Promise<boolean>;
24
24
  initGooglePay(params: GooglePay.InitParams): Promise<GooglePayInitResult>;
25
- presentGooglePay(params: GooglePay.PresentGooglePayParams): Promise<PayWithGooglePayResult>;
25
+ presentGooglePay(params: GooglePay.PresentParams): Promise<PayWithGooglePayResult>;
26
26
  createGooglePayPaymentMethod(params: GooglePay.CreatePaymentMethodParams): Promise<CreateGooglePayPaymentMethodResult>;
27
27
  openApplePaySetup(): Promise<OpenApplePaySetupResult>;
28
- verifyMicrodeposits(type: 'payment' | 'setup', clientSecret: string, params: VerifyMicrodepositsParams): Promise<ConfirmSetupIntentResult | ConfirmPaymentResult>;
29
- collectBankAccount(type: 'payment' | 'setup', clientSecret: string, params: CollectBankAccountParams): Promise<ConfirmSetupIntentResult | ConfirmPaymentResult>;
28
+ verifyMicrodeposits(isPaymentIntent: boolean, clientSecret: string, params: VerifyMicrodepositsParams): Promise<ConfirmSetupIntentResult | ConfirmPaymentResult>;
29
+ collectBankAccount(isPaymentIntent: boolean, clientSecret: string, params: PaymentMethod.CollectBankAccountParams): Promise<ConfirmSetupIntentResult | ConfirmPaymentResult>;
30
30
  };
31
31
  declare const _default: NativeStripeSdkType;
32
32
  export default _default;
@@ -5,8 +5,8 @@ import { AccessibilityProps, StyleProp, ViewStyle } from 'react-native';
5
5
  */
6
6
  export interface Props extends AccessibilityProps {
7
7
  style?: StyleProp<ViewStyle>;
8
- type?: ApplePayButtonComponent.Types;
9
- buttonStyle?: ApplePayButtonComponent.Styles;
8
+ type?: ApplePayButtonComponent.Type;
9
+ buttonStyle?: ApplePayButtonComponent.Style;
10
10
  borderRadius?: number;
11
11
  onPress(): void;
12
12
  testID?: string;
@@ -1,4 +1,4 @@
1
- import type { CardFieldInput, Nullable } from '../types';
1
+ import type { CardFieldInput } from '../types';
2
2
  import React from 'react';
3
3
  import { AccessibilityProps, StyleProp, ViewStyle } from 'react-native';
4
4
  /**
@@ -12,7 +12,7 @@ export interface Props extends AccessibilityProps {
12
12
  autofocus?: boolean;
13
13
  onCardChange?(card: CardFieldInput.Details): void;
14
14
  onBlur?(): void;
15
- onFocus?(focusedField: Nullable<CardFieldInput.Names>): void;
15
+ onFocus?(focusedField: CardFieldInput.FieldName | null): void;
16
16
  testID?: string;
17
17
  /**
18
18
  * WARNING: If set to `true` the full card number will be returned in the `onCardChange` handler.
@@ -27,4 +27,4 @@ export declare const initStripe: (params: InitStripeParams) => Promise<void>;
27
27
  * @returns JSX.Element
28
28
  * @category ReactComponents
29
29
  */
30
- export declare function StripeProvider({ children, publishableKey, merchantIdentifier, threeDSecureParams, stripeAccountId, urlScheme, setReturnUrlSchemeOnAndroid, setUrlSchemeOnAndroid, }: Props): JSX.Element;
30
+ export declare function StripeProvider({ children, publishableKey, merchantIdentifier, threeDSecureParams, stripeAccountId, urlScheme, setReturnUrlSchemeOnAndroid, }: Props): JSX.Element;
@@ -1,9 +1,9 @@
1
- import { ApplePay, ApplePayError, ApplePayResult, ConfirmPaymentResult, ConfirmPaymentSheetPaymentResult, ConfirmSetupIntent, ConfirmSetupIntentResult, CreatePaymentMethodResult, CreateTokenForCVCUpdateResult, CreateTokenResult, GooglePayInitResult, HandleNextActionResult, InitPaymentSheetResult, PaymentMethodCreateParams, PaymentSheet, PayWithGooglePayResult, PresentPaymentSheetResult, RetrievePaymentIntentResult, RetrieveSetupIntentResult, StripeError, GooglePay, CreateGooglePayPaymentMethodResult, OpenApplePaySetupResult, CreateTokenParams, VerifyMicrodepositsParams, CollectBankAccountParams } from './types';
2
- export declare const createPaymentMethod: (data: PaymentMethodCreateParams.Params, options?: PaymentMethodCreateParams.Options) => Promise<CreatePaymentMethodResult>;
3
- export declare const createToken: (params: CreateTokenParams) => Promise<CreateTokenResult>;
1
+ import { ApplePay, ApplePayError, ApplePayResult, ConfirmPaymentResult, ConfirmPaymentSheetPaymentResult, SetupIntent, PaymentIntent, ConfirmSetupIntentResult, CreatePaymentMethodResult, CreateTokenForCVCUpdateResult, CreateTokenResult, GooglePayInitResult, HandleNextActionResult, InitPaymentSheetResult, PaymentMethod, PaymentSheet, PayWithGooglePayResult, PresentPaymentSheetResult, RetrievePaymentIntentResult, RetrieveSetupIntentResult, StripeError, GooglePay, CreateGooglePayPaymentMethodResult, OpenApplePaySetupResult, Token, VerifyMicrodepositsParams, VerifyMicrodepositsForPaymentResult, VerifyMicrodepositsForSetupResult, CollectBankAccountForPaymentResult, CollectBankAccountForSetupResult } from './types';
2
+ export declare const createPaymentMethod: (params: PaymentMethod.CreateParams, options?: PaymentMethod.CreateOptions) => Promise<CreatePaymentMethodResult>;
3
+ export declare const createToken: (params: Token.CreateParams) => Promise<CreateTokenResult>;
4
4
  export declare const retrievePaymentIntent: (clientSecret: string) => Promise<RetrievePaymentIntentResult>;
5
5
  export declare const retrieveSetupIntent: (clientSecret: string) => Promise<RetrieveSetupIntentResult>;
6
- export declare const confirmPayment: (paymentIntentClientSecret: string, data: PaymentMethodCreateParams.Params, options?: PaymentMethodCreateParams.Options) => Promise<ConfirmPaymentResult>;
6
+ export declare const confirmPayment: (paymentIntentClientSecret: string, params: PaymentIntent.ConfirmParams, options?: PaymentIntent.ConfirmOptions) => Promise<ConfirmPaymentResult>;
7
7
  export declare const isApplePaySupported: () => Promise<boolean>;
8
8
  export declare const presentApplePay: (params: ApplePay.PresentParams) => Promise<ApplePayResult>;
9
9
  export declare const updateApplePaySummaryItems: (summaryItems: ApplePay.CartSummaryItem[], errorAddressFields?: Array<{
@@ -16,22 +16,18 @@ export declare const confirmApplePayPayment: (clientSecret: string) => Promise<{
16
16
  error?: StripeError<ApplePayError>;
17
17
  }>;
18
18
  export declare const handleNextAction: (paymentIntentClientSecret: string) => Promise<HandleNextActionResult>;
19
- /**
20
- * @deprecated This method is deprecated, you should use `handleNextAction` as a drop-in replacement instead.
21
- */
22
- export declare const handleCardAction: (paymentIntentClientSecret: string) => Promise<HandleNextActionResult>;
23
- export declare const confirmSetupIntent: (paymentIntentClientSecret: string, data: ConfirmSetupIntent.Params, options?: ConfirmSetupIntent.Options) => Promise<ConfirmSetupIntentResult>;
19
+ export declare const confirmSetupIntent: (paymentIntentClientSecret: string, params: SetupIntent.ConfirmParams, options?: SetupIntent.ConfirmOptions) => Promise<ConfirmSetupIntentResult>;
24
20
  export declare const createTokenForCVCUpdate: (cvc: string) => Promise<CreateTokenForCVCUpdateResult>;
25
21
  export declare const handleURLCallback: (url: string) => Promise<boolean>;
26
- export declare const verifyMicrodepositsForPayment: (clientSecret: string, params: VerifyMicrodepositsParams) => Promise<ConfirmPaymentResult>;
27
- export declare const verifyMicrodepositsForSetup: (clientSecret: string, params: VerifyMicrodepositsParams) => Promise<ConfirmSetupIntentResult>;
22
+ export declare const verifyMicrodepositsForPayment: (clientSecret: string, params: VerifyMicrodepositsParams) => Promise<VerifyMicrodepositsForPaymentResult>;
23
+ export declare const verifyMicrodepositsForSetup: (clientSecret: string, params: VerifyMicrodepositsParams) => Promise<VerifyMicrodepositsForSetupResult>;
28
24
  export declare const initPaymentSheet: (params: PaymentSheet.SetupParams) => Promise<InitPaymentSheetResult>;
29
25
  export declare const presentPaymentSheet: () => Promise<PresentPaymentSheetResult>;
30
26
  export declare const confirmPaymentSheetPayment: () => Promise<ConfirmPaymentSheetPaymentResult>;
31
- export declare const isGooglePaySupported: (params?: GooglePay.IsGooglePaySupportedParams | undefined) => Promise<boolean>;
27
+ export declare const isGooglePaySupported: (params?: GooglePay.IsSupportedParams | undefined) => Promise<boolean>;
32
28
  export declare const initGooglePay: (params: GooglePay.InitParams) => Promise<GooglePayInitResult>;
33
- export declare const presentGooglePay: (params: GooglePay.SetupIntentParams) => Promise<PayWithGooglePayResult>;
29
+ export declare const presentGooglePay: (params: GooglePay.PresentParams) => Promise<PayWithGooglePayResult>;
34
30
  export declare const createGooglePayPaymentMethod: (params: GooglePay.CreatePaymentMethodParams) => Promise<CreateGooglePayPaymentMethodResult>;
35
31
  export declare const openApplePaySetup: () => Promise<OpenApplePaySetupResult>;
36
- export declare const collectBankAccountForPayment: (clientSecret: string, params: CollectBankAccountParams) => Promise<ConfirmPaymentResult>;
37
- export declare const collectBankAccountForSetup: (clientSecret: string, params: CollectBankAccountParams) => Promise<ConfirmSetupIntentResult>;
32
+ export declare const collectBankAccountForPayment: (clientSecret: string, params: PaymentMethod.CollectBankAccountParams) => Promise<CollectBankAccountForPaymentResult>;
33
+ export declare const collectBankAccountForSetup: (clientSecret: string, params: PaymentMethod.CollectBankAccountParams) => Promise<CollectBankAccountForSetupResult>;
@@ -1,8 +1,9 @@
1
+ import type React from 'react';
1
2
  import type { StripeError } from './types';
2
3
  /**
3
4
  * Determines whether or not this library is being used inside of
4
5
  * an "Expo" project by identifying if Expo's native module
5
- * infrastructure (react-native-unimodules) is available.
6
+ * infrastructure (react-native-unimodules AKA expo-modules) is available.
6
7
  */
7
8
  export declare const shouldAttributeExpo: () => boolean;
8
9
  export declare const isiOS: boolean;
@@ -1,8 +1,8 @@
1
- import type { PaymentMethodCreateParams } from '../types';
1
+ import type { PaymentMethod } from '../types';
2
2
  /**
3
3
  * useConfirmPayment hook
4
4
  */
5
5
  export declare function useConfirmPayment(): {
6
- confirmPayment: (paymentIntentClientSecret: string, data: PaymentMethodCreateParams.Params, options?: PaymentMethodCreateParams.Options) => Promise<import("../types").ConfirmPaymentResult>;
6
+ confirmPayment: (paymentIntentClientSecret: string, data: PaymentMethod.ConfirmParams, options?: PaymentMethod.ConfirmOptions) => Promise<import("../types").ConfirmPaymentResult>;
7
7
  loading: boolean;
8
8
  };
@@ -1,8 +1,8 @@
1
- import type { ConfirmSetupIntent } from '../types';
1
+ import type { SetupIntent } from '../types';
2
2
  /**
3
3
  * useConfirmSetupIntent hook
4
4
  */
5
5
  export declare function useConfirmSetupIntent(): {
6
- confirmSetupIntent: (paymentIntentClientSecret: string, data: ConfirmSetupIntent.Params, options?: ConfirmSetupIntent.Options) => Promise<import("../types").ConfirmSetupIntentResult>;
6
+ confirmSetupIntent: (paymentIntentClientSecret: string, data: SetupIntent.ConfirmParams, options?: SetupIntent.ConfirmOptions) => Promise<import("../types").ConfirmSetupIntentResult>;
7
7
  loading: boolean;
8
8
  };
@@ -4,8 +4,8 @@ import type { GooglePay } from '../types';
4
4
  */
5
5
  export declare function useGooglePay(): {
6
6
  loading: boolean;
7
- isGooglePaySupported: (params?: GooglePay.IsGooglePaySupportedParams | undefined) => Promise<boolean>;
7
+ isGooglePaySupported: (params?: GooglePay.IsSupportedParams | undefined) => Promise<boolean>;
8
8
  initGooglePay: (params: GooglePay.InitParams) => Promise<import("../types").GooglePayInitResult>;
9
- presentGooglePay: (params: GooglePay.PresentGooglePayParams) => Promise<import("../types").PayWithGooglePayResult>;
9
+ presentGooglePay: (params: GooglePay.PresentParams) => Promise<import("../types").PayWithGooglePayResult>;
10
10
  createGooglePayPaymentMethod: (params: GooglePay.CreatePaymentMethodParams) => Promise<import("../types").CreateGooglePayPaymentMethodResult>;
11
11
  };