@stripe/stripe-react-native 0.4.0 → 0.6.1

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 (295) hide show
  1. package/CHANGELOG.md +38 -0
  2. package/README.md +6 -1
  3. package/android/build/.transforms/{c731e6bf5b480f659bf1c341f3f0657c → 253af79d247c9f91c901f2038cdc6938}/results.bin +0 -0
  4. package/android/build/.transforms/253af79d247c9f91c901f2038cdc6938/transformed/classes/classes.dex +0 -0
  5. package/android/build/.transforms/{e9391f6bbf8da46ff748ca7feadbce73 → 3cbaee99352386a9df7b22dbbb69831e}/results.bin +0 -0
  6. package/android/build/.transforms/3cbaee99352386a9df7b22dbbb69831e/transformed/classes/classes.dex +0 -0
  7. package/android/build/.transforms/{f0b2868ed2d4a4bb73b1ace98fe4ccfa → 8d3571dbfd2a31ee669f64a85b02f3fc}/results.bin +0 -0
  8. package/android/build/.transforms/8d3571dbfd2a31ee669f64a85b02f3fc/transformed/classes/classes.dex +0 -0
  9. package/android/build/.transforms/bcac5194839639e17669a07fd0143335/results.bin +1 -0
  10. package/android/build/.transforms/bcac5194839639e17669a07fd0143335/transformed/classes/classes.dex +0 -0
  11. package/android/build/intermediates/aapt_friendly_merged_manifests/debug/aapt/output-metadata.json +4 -2
  12. package/android/build/intermediates/aar_metadata/debug/aar-metadata.properties +1 -0
  13. package/android/build/intermediates/compile_library_classes_jar/debug/classes.jar +0 -0
  14. package/android/build/intermediates/compile_r_class_jar/debug/R.jar +0 -0
  15. package/android/build/intermediates/compile_symbol_list/debug/R.txt +553 -29
  16. package/android/build/intermediates/incremental/packageDebugResources/compile-file-map.properties +1 -1
  17. package/android/build/intermediates/javac/debug/classes/com/reactnativestripesdk/databinding/GooglepayButtonBinding.class +0 -0
  18. package/android/build/intermediates/javac/debug/classes/com/reactnativestripesdk/databinding/GooglepayButtonNoShadowBinding.class +0 -0
  19. package/android/build/intermediates/javac/debug/classes/com/reactnativestripesdk/databinding/PayWithGooglepayButtonBinding.class +0 -0
  20. package/android/build/intermediates/javac/debug/classes/com/reactnativestripesdk/databinding/PayWithGooglepayButtonNoShadowBinding.class +0 -0
  21. package/android/build/intermediates/library_java_res/debug/res.jar +0 -0
  22. package/android/build/intermediates/packaged_manifests/debug/output-metadata.json +4 -2
  23. package/android/build/intermediates/runtime_library_classes_jar/debug/classes.jar +0 -0
  24. package/android/build/intermediates/symbol_list_with_package_name/debug/package-aware-r.txt +523 -29
  25. package/android/build/kotlin/compileDebugKotlin/build-history.bin +0 -0
  26. package/android/build/kotlin/compileDebugKotlin/caches-jvm/inputs/source-to-output.tab +0 -0
  27. package/android/build/kotlin/compileDebugKotlin/caches-jvm/inputs/source-to-output.tab.keystream +0 -0
  28. package/android/build/kotlin/compileDebugKotlin/caches-jvm/inputs/source-to-output.tab.keystream.len +0 -0
  29. package/android/build/kotlin/compileDebugKotlin/caches-jvm/inputs/source-to-output.tab.len +0 -0
  30. package/android/build/kotlin/compileDebugKotlin/caches-jvm/inputs/source-to-output.tab.values.at +0 -0
  31. package/android/build/kotlin/compileDebugKotlin/caches-jvm/inputs/source-to-output.tab_i +0 -0
  32. package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/class-attributes.tab +0 -0
  33. package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/class-attributes.tab.keystream +0 -0
  34. package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/class-attributes.tab.keystream.len +0 -0
  35. package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/class-attributes.tab.len +0 -0
  36. package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/class-attributes.tab.values.at +0 -0
  37. package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/class-attributes.tab_i +0 -0
  38. package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab +0 -0
  39. package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab.keystream +0 -0
  40. package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab.keystream.len +0 -0
  41. package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab.len +0 -0
  42. package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab.values.at +0 -0
  43. package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab_i +0 -0
  44. package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/constants.tab +0 -0
  45. package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/constants.tab.keystream +0 -0
  46. package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/constants.tab.keystream.len +0 -0
  47. package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/constants.tab.len +0 -0
  48. package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/constants.tab.values.at +0 -0
  49. package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/constants.tab_i +0 -0
  50. package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/internal-name-to-source.tab +0 -0
  51. package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/internal-name-to-source.tab.keystream +0 -0
  52. package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/internal-name-to-source.tab.keystream.len +0 -0
  53. package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/internal-name-to-source.tab.len +0 -0
  54. package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/internal-name-to-source.tab.values.at +0 -0
  55. package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/internal-name-to-source.tab_i +0 -0
  56. package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/package-parts.tab +0 -0
  57. package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/package-parts.tab.values.at +0 -0
  58. package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/proto.tab +0 -0
  59. package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/proto.tab.keystream +0 -0
  60. package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/proto.tab.keystream.len +0 -0
  61. package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/proto.tab.len +0 -0
  62. package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/proto.tab.values +0 -0
  63. package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/proto.tab.values.at +0 -0
  64. package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/proto.tab.values.s +1 -1
  65. package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/proto.tab_i +0 -0
  66. package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/source-to-classes.tab +0 -0
  67. package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/source-to-classes.tab.keystream +0 -0
  68. package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/source-to-classes.tab.keystream.len +0 -0
  69. package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/source-to-classes.tab.len +0 -0
  70. package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/source-to-classes.tab.values.at +0 -0
  71. package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/source-to-classes.tab_i +0 -0
  72. package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/subtypes.tab +0 -0
  73. package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/subtypes.tab.keystream +0 -0
  74. package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/subtypes.tab.keystream.len +0 -0
  75. package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/subtypes.tab.len +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/subtypes.tab_i +0 -0
  78. package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/supertypes.tab +0 -0
  79. package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/supertypes.tab.keystream +0 -0
  80. package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/supertypes.tab.keystream.len +0 -0
  81. package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/supertypes.tab.len +0 -0
  82. package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/supertypes.tab.values.at +0 -0
  83. package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/supertypes.tab_i +0 -0
  84. package/android/build/kotlin/compileDebugKotlin/caches-jvm/lookups/counters.tab +2 -2
  85. package/android/build/kotlin/compileDebugKotlin/caches-jvm/lookups/file-to-id.tab +0 -0
  86. package/android/build/kotlin/compileDebugKotlin/caches-jvm/lookups/file-to-id.tab.keystream +0 -0
  87. package/android/build/kotlin/compileDebugKotlin/caches-jvm/lookups/file-to-id.tab.keystream.len +0 -0
  88. package/android/build/kotlin/compileDebugKotlin/caches-jvm/lookups/file-to-id.tab.len +0 -0
  89. package/android/build/kotlin/compileDebugKotlin/caches-jvm/lookups/file-to-id.tab.values.at +0 -0
  90. package/android/build/kotlin/compileDebugKotlin/caches-jvm/lookups/file-to-id.tab_i +0 -0
  91. package/android/build/kotlin/compileDebugKotlin/caches-jvm/lookups/id-to-file.tab +0 -0
  92. package/android/build/kotlin/compileDebugKotlin/caches-jvm/lookups/id-to-file.tab.keystream +0 -0
  93. package/android/build/kotlin/compileDebugKotlin/caches-jvm/lookups/id-to-file.tab.keystream.len +0 -0
  94. package/android/build/kotlin/compileDebugKotlin/caches-jvm/lookups/id-to-file.tab.len +0 -0
  95. package/android/build/kotlin/compileDebugKotlin/caches-jvm/lookups/id-to-file.tab.values.at +0 -0
  96. package/android/build/kotlin/compileDebugKotlin/caches-jvm/lookups/id-to-file.tab_i +0 -0
  97. package/android/build/kotlin/compileDebugKotlin/caches-jvm/lookups/lookups.tab +0 -0
  98. package/android/build/kotlin/compileDebugKotlin/caches-jvm/lookups/lookups.tab.keystream +0 -0
  99. package/android/build/kotlin/compileDebugKotlin/caches-jvm/lookups/lookups.tab.keystream.len +0 -0
  100. package/android/build/kotlin/compileDebugKotlin/caches-jvm/lookups/lookups.tab.len +0 -0
  101. package/android/build/kotlin/compileDebugKotlin/caches-jvm/lookups/lookups.tab.values +0 -0
  102. package/android/build/kotlin/compileDebugKotlin/caches-jvm/lookups/lookups.tab.values.at +0 -0
  103. package/android/build/kotlin/compileDebugKotlin/caches-jvm/lookups/lookups.tab.values.s +1 -1
  104. package/android/build/kotlin/compileDebugKotlin/caches-jvm/lookups/lookups.tab_i +0 -0
  105. package/android/build/kotlin/compileDebugKotlin/last-build.bin +0 -0
  106. package/android/build/tmp/compileDebugJavaWithJavac/previous-compilation-data.bin +0 -0
  107. package/android/build/tmp/kotlin-classes/debug/META-INF/reactnativestripesdk_debug.kotlin_module +0 -0
  108. package/android/build/tmp/kotlin-classes/debug/com/reactnativestripesdk/AuBECSDebitFormView$setListeners$1.class +0 -0
  109. package/android/build/tmp/kotlin-classes/debug/com/reactnativestripesdk/AuBECSDebitFormView.class +0 -0
  110. package/android/build/tmp/kotlin-classes/debug/com/reactnativestripesdk/AuBECSDebitFormViewManager.class +0 -0
  111. package/android/build/tmp/kotlin-classes/debug/com/reactnativestripesdk/CardChangedEvent$Companion.class +0 -0
  112. package/android/build/tmp/kotlin-classes/debug/com/reactnativestripesdk/CardChangedEvent.class +0 -0
  113. package/android/build/tmp/kotlin-classes/debug/com/reactnativestripesdk/CardFieldView$setListeners$10.class +0 -0
  114. package/android/build/tmp/kotlin-classes/debug/com/reactnativestripesdk/CardFieldView$setListeners$6.class +0 -0
  115. package/android/build/tmp/kotlin-classes/debug/com/reactnativestripesdk/CardFieldView$setListeners$7.class +0 -0
  116. package/android/build/tmp/kotlin-classes/debug/com/reactnativestripesdk/CardFieldView$setListeners$8.class +0 -0
  117. package/android/build/tmp/kotlin-classes/debug/com/reactnativestripesdk/CardFieldView$setListeners$9.class +0 -0
  118. package/android/build/tmp/kotlin-classes/debug/com/reactnativestripesdk/CardFieldView.class +0 -0
  119. package/android/build/tmp/kotlin-classes/debug/com/reactnativestripesdk/CardFieldViewManager.class +0 -0
  120. package/android/build/tmp/kotlin-classes/debug/com/reactnativestripesdk/CardFocusEvent$Companion.class +0 -0
  121. package/android/build/tmp/kotlin-classes/debug/com/reactnativestripesdk/CardFocusEvent.class +0 -0
  122. package/android/build/tmp/kotlin-classes/debug/com/reactnativestripesdk/CardFormCompleteEvent$Companion.class +0 -0
  123. package/android/build/tmp/kotlin-classes/debug/com/reactnativestripesdk/CardFormCompleteEvent.class +0 -0
  124. package/android/build/tmp/kotlin-classes/debug/com/reactnativestripesdk/CardFormView.class +0 -0
  125. package/android/build/tmp/kotlin-classes/debug/com/reactnativestripesdk/CardFormViewManager.class +0 -0
  126. package/android/build/tmp/kotlin-classes/debug/com/reactnativestripesdk/CollectBankAccountLauncherFragment$createBankAccountLauncher$1.class +0 -0
  127. package/android/build/tmp/kotlin-classes/debug/com/reactnativestripesdk/CollectBankAccountLauncherFragment.class +0 -0
  128. package/android/build/tmp/kotlin-classes/debug/com/reactnativestripesdk/ConfirmPaymentErrorType.class +0 -0
  129. package/android/build/tmp/kotlin-classes/debug/com/reactnativestripesdk/ConfirmSetupIntentErrorType.class +0 -0
  130. package/android/build/tmp/kotlin-classes/debug/com/reactnativestripesdk/CreateTokenErrorType.class +0 -0
  131. package/android/build/tmp/kotlin-classes/debug/com/reactnativestripesdk/DefaultPushProvisioningProxy.class +0 -0
  132. package/android/build/tmp/kotlin-classes/debug/com/reactnativestripesdk/ErrorType.class +0 -0
  133. package/android/build/tmp/kotlin-classes/debug/com/reactnativestripesdk/ErrorsKt.class +0 -0
  134. package/android/build/tmp/kotlin-classes/debug/com/reactnativestripesdk/ExtensionsKt.class +0 -0
  135. package/android/build/tmp/kotlin-classes/debug/com/reactnativestripesdk/FormCompleteEvent$Companion.class +0 -0
  136. package/android/build/tmp/kotlin-classes/debug/com/reactnativestripesdk/FormCompleteEvent.class +0 -0
  137. package/android/build/tmp/kotlin-classes/debug/com/reactnativestripesdk/GooglePayButtonManager$Companion.class +0 -0
  138. package/android/build/tmp/kotlin-classes/debug/com/reactnativestripesdk/GooglePayButtonManager.class +0 -0
  139. package/android/build/tmp/kotlin-classes/debug/com/reactnativestripesdk/GooglePayButtonView.class +0 -0
  140. package/android/build/tmp/kotlin-classes/debug/com/reactnativestripesdk/GooglePayErrorType.class +0 -0
  141. package/android/build/tmp/kotlin-classes/debug/com/reactnativestripesdk/GooglePayFragment$onViewCreated$1.class +0 -0
  142. package/android/build/tmp/kotlin-classes/debug/com/reactnativestripesdk/GooglePayFragment$onViewCreated$2.class +0 -0
  143. package/android/build/tmp/kotlin-classes/debug/com/reactnativestripesdk/GooglePayFragment$onViewCreated$3.class +0 -0
  144. package/android/build/tmp/kotlin-classes/debug/com/reactnativestripesdk/GooglePayFragment$onViewCreated$4.class +0 -0
  145. package/android/build/tmp/kotlin-classes/debug/com/reactnativestripesdk/GooglePayFragment.class +0 -0
  146. package/android/build/tmp/kotlin-classes/debug/com/reactnativestripesdk/GooglePayPaymentMethodLauncherFragment.class +0 -0
  147. package/android/build/tmp/kotlin-classes/debug/com/reactnativestripesdk/MappersKt$WhenMappings.class +0 -0
  148. package/android/build/tmp/kotlin-classes/debug/com/reactnativestripesdk/MappersKt.class +0 -0
  149. package/android/build/tmp/kotlin-classes/debug/com/reactnativestripesdk/PaymentLauncherFragment$WhenMappings.class +0 -0
  150. package/android/build/tmp/kotlin-classes/debug/com/reactnativestripesdk/PaymentLauncherFragment$retrievePaymentIntent$1$WhenMappings.class +0 -0
  151. package/android/build/tmp/kotlin-classes/debug/com/reactnativestripesdk/PaymentLauncherFragment$retrievePaymentIntent$1.class +0 -0
  152. package/android/build/tmp/kotlin-classes/debug/com/reactnativestripesdk/PaymentLauncherFragment$retrieveSetupIntent$1$WhenMappings.class +0 -0
  153. package/android/build/tmp/kotlin-classes/debug/com/reactnativestripesdk/PaymentLauncherFragment$retrieveSetupIntent$1.class +0 -0
  154. package/android/build/tmp/kotlin-classes/debug/com/reactnativestripesdk/PaymentLauncherFragment.class +0 -0
  155. package/android/build/tmp/kotlin-classes/debug/com/reactnativestripesdk/PaymentMethodCreateParamsException.class +0 -0
  156. package/android/build/tmp/kotlin-classes/debug/com/reactnativestripesdk/PaymentMethodCreateParamsFactory$WhenMappings.class +0 -0
  157. package/android/build/tmp/kotlin-classes/debug/com/reactnativestripesdk/PaymentMethodCreateParamsFactory.class +0 -0
  158. package/android/build/tmp/kotlin-classes/debug/com/reactnativestripesdk/PaymentSheetErrorType.class +0 -0
  159. package/android/build/tmp/kotlin-classes/debug/com/reactnativestripesdk/PaymentSheetFragment.class +0 -0
  160. package/android/build/tmp/kotlin-classes/debug/com/reactnativestripesdk/PaymentSheetFragmentKt.class +0 -0
  161. package/android/build/tmp/kotlin-classes/debug/com/reactnativestripesdk/PushProvisioningProxy$createActivityEventListener$listener$1.class +0 -0
  162. package/android/build/tmp/kotlin-classes/debug/com/reactnativestripesdk/PushProvisioningProxy.class +0 -0
  163. package/android/build/tmp/kotlin-classes/debug/com/reactnativestripesdk/RetrievePaymentIntentErrorType.class +0 -0
  164. package/android/build/tmp/kotlin-classes/debug/com/reactnativestripesdk/RetrieveSetupIntentErrorType.class +0 -0
  165. package/android/build/tmp/kotlin-classes/debug/com/reactnativestripesdk/StripeContainerManager.class +0 -0
  166. package/android/build/tmp/kotlin-classes/debug/com/reactnativestripesdk/StripeContainerView.class +0 -0
  167. package/android/build/tmp/kotlin-classes/debug/com/reactnativestripesdk/StripeSdkModule$Companion.class +0 -0
  168. package/android/build/tmp/kotlin-classes/debug/com/reactnativestripesdk/StripeSdkModule$createPaymentMethod$1.class +0 -0
  169. package/android/build/tmp/kotlin-classes/debug/com/reactnativestripesdk/StripeSdkModule$createTokenForCVCUpdate$1.class +0 -0
  170. package/android/build/tmp/kotlin-classes/debug/com/reactnativestripesdk/StripeSdkModule$createTokenFromBankAccount$1.class +0 -0
  171. package/android/build/tmp/kotlin-classes/debug/com/reactnativestripesdk/StripeSdkModule$createTokenFromCard$1.class +0 -0
  172. package/android/build/tmp/kotlin-classes/debug/com/reactnativestripesdk/StripeSdkModule$mActivityEventListener$1.class +0 -0
  173. package/android/build/tmp/kotlin-classes/debug/com/reactnativestripesdk/StripeSdkModule$retrievePaymentIntent$1.class +0 -0
  174. package/android/build/tmp/kotlin-classes/debug/com/reactnativestripesdk/StripeSdkModule$retrieveSetupIntent$1.class +0 -0
  175. package/android/build/tmp/kotlin-classes/debug/com/reactnativestripesdk/StripeSdkModule$verifyMicrodeposits$paymentCallback$1.class +0 -0
  176. package/android/build/tmp/kotlin-classes/debug/com/reactnativestripesdk/StripeSdkModule$verifyMicrodeposits$setupCallback$1.class +0 -0
  177. package/android/build/tmp/kotlin-classes/debug/com/reactnativestripesdk/StripeSdkModule.class +0 -0
  178. package/android/build/tmp/kotlin-classes/debug/com/reactnativestripesdk/StripeSdkPackage.class +0 -0
  179. package/android/build/tmp/kotlin-classes/debug/com/reactnativestripesdk/pushprovisioning/AddToWalletButtonManager.class +0 -0
  180. package/android/build/tmp/kotlin-classes/debug/com/reactnativestripesdk/pushprovisioning/AddToWalletButtonView$onAfterUpdateTransaction$1.class +0 -0
  181. package/android/build/tmp/kotlin-classes/debug/com/reactnativestripesdk/pushprovisioning/AddToWalletButtonView.class +0 -0
  182. package/android/build/tmp/kotlin-classes/debug/com/reactnativestripesdk/pushprovisioning/AddToWalletCompleteEvent$Companion.class +0 -0
  183. package/android/build/tmp/kotlin-classes/debug/com/reactnativestripesdk/pushprovisioning/AddToWalletCompleteEvent.class +0 -0
  184. package/android/build/tmp/kotlin-classes/debug/com/reactnativestripesdk/pushprovisioning/EphemeralKeyProvider$CREATOR.class +0 -0
  185. package/android/build/tmp/kotlin-classes/debug/com/reactnativestripesdk/pushprovisioning/EphemeralKeyProvider.class +0 -0
  186. package/android/build/tmp/kotlin-classes/debug/com/reactnativestripesdk/pushprovisioning/TapAndPayProxy.class +0 -0
  187. package/android/build.gradle +1 -1
  188. package/android/src/main/java/com/reactnativestripesdk/AuBECSDebitFormView.kt +1 -10
  189. package/android/src/main/java/com/reactnativestripesdk/AuBECSDebitFormViewManager.kt +4 -2
  190. package/android/src/main/java/com/reactnativestripesdk/CardChangedEvent.kt +0 -4
  191. package/android/src/main/java/com/reactnativestripesdk/{StripeSdkCardView.kt → CardFieldView.kt} +6 -9
  192. package/android/src/main/java/com/reactnativestripesdk/{StripeSdkCardViewManager.kt → CardFieldViewManager.kt} +20 -16
  193. package/android/src/main/java/com/reactnativestripesdk/CardFormView.kt +23 -23
  194. package/android/src/main/java/com/reactnativestripesdk/CardFormViewManager.kt +9 -6
  195. package/android/src/main/java/com/reactnativestripesdk/Errors.kt +3 -3
  196. package/android/src/main/java/com/reactnativestripesdk/FormCompleteEvent.kt +0 -1
  197. package/android/src/main/java/com/reactnativestripesdk/GooglePayButtonManager.kt +1 -0
  198. package/android/src/main/java/com/reactnativestripesdk/GooglePayButtonView.kt +1 -1
  199. package/android/src/main/java/com/reactnativestripesdk/GooglePayPaymentMethodLauncherFragment.kt +1 -1
  200. package/android/src/main/java/com/reactnativestripesdk/Mappers.kt +51 -12
  201. package/android/src/main/java/com/reactnativestripesdk/PaymentLauncherFragment.kt +122 -0
  202. package/android/src/main/java/com/reactnativestripesdk/PaymentMethodCreateParamsFactory.kt +103 -98
  203. package/android/src/main/java/com/reactnativestripesdk/PaymentSheetFragment.kt +51 -58
  204. package/android/src/main/java/com/reactnativestripesdk/StripeContainerManager.kt +2 -1
  205. package/android/src/main/java/com/reactnativestripesdk/StripeSdkModule.kt +84 -124
  206. package/android/src/main/java/com/reactnativestripesdk/StripeSdkPackage.kt +1 -1
  207. package/ios/.DS_Store +0 -0
  208. package/ios/AuBECSDebitFormView.swift +15 -0
  209. package/ios/Errors.swift +9 -35
  210. package/ios/Mappers.swift +110 -5
  211. package/ios/PaymentMethodFactory.swift +46 -1
  212. package/ios/StripeSdk.m +15 -1
  213. package/ios/StripeSdk.swift +287 -105
  214. package/jest/mock.js +1 -1
  215. package/lib/commonjs/NativeStripeSdk.js.map +1 -1
  216. package/lib/commonjs/components/StripeProvider.js +1 -1
  217. package/lib/commonjs/components/StripeProvider.js.map +1 -1
  218. package/lib/commonjs/functions.js +1 -1
  219. package/lib/commonjs/functions.js.map +1 -1
  220. package/lib/commonjs/hooks/useStripe.js +1 -1
  221. package/lib/commonjs/hooks/useStripe.js.map +1 -1
  222. package/lib/commonjs/types/Card.js.map +1 -1
  223. package/lib/commonjs/types/NextAction.js +2 -0
  224. package/lib/commonjs/types/NextAction.js.map +1 -0
  225. package/lib/commonjs/types/PaymentIntents.js.map +1 -1
  226. package/lib/commonjs/types/PaymentMethods.js.map +1 -1
  227. package/lib/commonjs/types/SetupIntent.js.map +1 -1
  228. package/lib/commonjs/types/index.js.map +1 -1
  229. package/lib/module/NativeStripeSdk.js.map +1 -1
  230. package/lib/module/components/StripeProvider.js +1 -1
  231. package/lib/module/components/StripeProvider.js.map +1 -1
  232. package/lib/module/functions.js +1 -1
  233. package/lib/module/functions.js.map +1 -1
  234. package/lib/module/hooks/useStripe.js +1 -1
  235. package/lib/module/hooks/useStripe.js.map +1 -1
  236. package/lib/module/types/Card.js.map +1 -1
  237. package/lib/module/types/NextAction.js +2 -0
  238. package/lib/module/types/NextAction.js.map +1 -0
  239. package/lib/module/types/PaymentIntents.js.map +1 -1
  240. package/lib/module/types/PaymentMethods.js.map +1 -1
  241. package/lib/module/types/SetupIntent.js.map +1 -1
  242. package/lib/module/types/index.js.map +1 -1
  243. package/lib/typescript/e2e/helpers.d.ts +1 -0
  244. package/lib/typescript/e2e/screenObject/BasicPaymentScreen.d.ts +1 -0
  245. package/lib/typescript/e2e/screenObject/HomeScreen.d.ts +1 -1
  246. package/lib/typescript/example/src/App.d.ts +2 -0
  247. package/lib/typescript/example/src/screens/ACHPaymentScreen.d.ts +1 -0
  248. package/lib/typescript/example/src/screens/ACHSetupScreen.d.ts +1 -0
  249. package/lib/typescript/src/NativeStripeSdk.d.ts +4 -2
  250. package/lib/typescript/src/components/StripeProvider.d.ts +4 -10
  251. package/lib/typescript/src/functions.d.ts +10 -2
  252. package/lib/typescript/src/hooks/useStripe.d.ts +7 -2
  253. package/lib/typescript/src/types/Card.d.ts +1 -0
  254. package/lib/typescript/src/types/NextAction.d.ts +32 -0
  255. package/lib/typescript/src/types/PaymentIntents.d.ts +2 -0
  256. package/lib/typescript/src/types/PaymentMethods.d.ts +28 -2
  257. package/lib/typescript/src/types/SetupIntent.d.ts +4 -2
  258. package/lib/typescript/src/types/index.d.ts +23 -4
  259. package/package.json +4 -4
  260. package/src/NativeStripeSdk.tsx +15 -3
  261. package/src/components/StripeProvider.tsx +7 -15
  262. package/src/functions.ts +174 -3
  263. package/src/hooks/useStripe.tsx +57 -6
  264. package/src/types/Card.ts +1 -0
  265. package/src/types/NextAction.ts +44 -0
  266. package/src/types/PaymentIntents.ts +2 -0
  267. package/src/types/PaymentMethods.ts +31 -2
  268. package/src/types/SetupIntent.ts +9 -2
  269. package/src/types/index.ts +32 -4
  270. package/stripe-react-native.podspec +3 -2
  271. package/android/build/.transforms/c731e6bf5b480f659bf1c341f3f0657c/transformed/classes/classes.dex +0 -0
  272. package/android/build/.transforms/e9391f6bbf8da46ff748ca7feadbce73/transformed/classes/classes.dex +0 -0
  273. package/android/build/.transforms/f0b2868ed2d4a4bb73b1ace98fe4ccfa/transformed/classes/classes.dex +0 -0
  274. package/android/build/kotlin/compileDebugKotlin/caches-jvm/inputs/source-to-output.tab.values +0 -0
  275. package/android/build/kotlin/compileDebugKotlin/caches-jvm/inputs/source-to-output.tab.values.s +0 -1
  276. package/android/build/tmp/compileDebugJavaWithJavac/source-classes-mapping.txt +0 -10
  277. package/android/build/tmp/kotlin-classes/debug/com/reactnativestripesdk/ConstantsKt.class +0 -0
  278. package/android/build/tmp/kotlin-classes/debug/com/reactnativestripesdk/NextPaymentActionErrorType.class +0 -0
  279. package/android/build/tmp/kotlin-classes/debug/com/reactnativestripesdk/PaymentSheetFragment$configureFlowController$onFlowControllerConfigure$1.class +0 -0
  280. package/android/build/tmp/kotlin-classes/debug/com/reactnativestripesdk/PaymentSheetFragment$onViewCreated$paymentOptionCallback$1.class +0 -0
  281. package/android/build/tmp/kotlin-classes/debug/com/reactnativestripesdk/PaymentSheetFragment$onViewCreated$paymentResultCallback$1.class +0 -0
  282. package/android/build/tmp/kotlin-classes/debug/com/reactnativestripesdk/StripeSdkCardView$setListeners$2.class +0 -0
  283. package/android/build/tmp/kotlin-classes/debug/com/reactnativestripesdk/StripeSdkCardView$setListeners$3.class +0 -0
  284. package/android/build/tmp/kotlin-classes/debug/com/reactnativestripesdk/StripeSdkCardView$setListeners$4.class +0 -0
  285. package/android/build/tmp/kotlin-classes/debug/com/reactnativestripesdk/StripeSdkCardView$setListeners$5.class +0 -0
  286. package/android/build/tmp/kotlin-classes/debug/com/reactnativestripesdk/StripeSdkCardView$setListeners$6.class +0 -0
  287. package/android/build/tmp/kotlin-classes/debug/com/reactnativestripesdk/StripeSdkCardView.class +0 -0
  288. package/android/build/tmp/kotlin-classes/debug/com/reactnativestripesdk/StripeSdkCardViewManager.class +0 -0
  289. package/android/build/tmp/kotlin-classes/debug/com/reactnativestripesdk/StripeSdkModule$googlePayReceiver$1.class +0 -0
  290. package/android/build/tmp/kotlin-classes/debug/com/reactnativestripesdk/StripeSdkModule$mActivityEventListener$1$onActivityResult$2$WhenMappings.class +0 -0
  291. package/android/build/tmp/kotlin-classes/debug/com/reactnativestripesdk/StripeSdkModule$mActivityEventListener$1$onActivityResult$2.class +0 -0
  292. package/android/build/tmp/kotlin-classes/debug/com/reactnativestripesdk/StripeSdkModule$mActivityEventListener$1$onActivityResult$3$WhenMappings.class +0 -0
  293. package/android/build/tmp/kotlin-classes/debug/com/reactnativestripesdk/StripeSdkModule$mActivityEventListener$1$onActivityResult$3.class +0 -0
  294. package/android/build/tmp/kotlin-classes/debug/com/reactnativestripesdk/StripeSdkModule$mPaymentSheetReceiver$1.class +0 -0
  295. package/android/build/tmp/kotlin-classes/debug/com/reactnativestripesdk/StripeSdkModule$payWithWeChatPay$1.class +0 -0
@@ -1,4 +1,4 @@
1
- import { ApplePay, ApplePayError, ApplePayResult, ConfirmPaymentResult, ConfirmPaymentSheetPaymentResult, ConfirmSetupIntent, ConfirmSetupIntentResult, CreatePaymentMethodResult, CreateTokenForCVCUpdateResult, CreateTokenResult, GooglePayInitResult, HandleCardActionResult, InitPaymentSheetResult, PaymentMethodCreateParams, PaymentSheet, PayWithGooglePayResult, PresentPaymentSheetResult, RetrievePaymentIntentResult, RetrieveSetupIntentResult, StripeError, GooglePay, CreateGooglePayPaymentMethodResult, OpenApplePaySetupResult, CreateTokenParams } from './types';
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
2
  export declare const createPaymentMethod: (data: PaymentMethodCreateParams.Params, options?: PaymentMethodCreateParams.Options) => Promise<CreatePaymentMethodResult>;
3
3
  export declare const createToken: (params: CreateTokenParams) => Promise<CreateTokenResult>;
4
4
  export declare const retrievePaymentIntent: (clientSecret: string) => Promise<RetrievePaymentIntentResult>;
@@ -15,10 +15,16 @@ export declare const updateApplePaySummaryItems: (summaryItems: ApplePay.CartSum
15
15
  export declare const confirmApplePayPayment: (clientSecret: string) => Promise<{
16
16
  error?: StripeError<ApplePayError>;
17
17
  }>;
18
- export declare const handleCardAction: (paymentIntentClientSecret: string) => Promise<HandleCardActionResult>;
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>;
19
23
  export declare const confirmSetupIntent: (paymentIntentClientSecret: string, data: ConfirmSetupIntent.Params, options?: ConfirmSetupIntent.Options) => Promise<ConfirmSetupIntentResult>;
20
24
  export declare const createTokenForCVCUpdate: (cvc: string) => Promise<CreateTokenForCVCUpdateResult>;
21
25
  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
28
  export declare const initPaymentSheet: (params: PaymentSheet.SetupParams) => Promise<InitPaymentSheetResult>;
23
29
  export declare const presentPaymentSheet: () => Promise<PresentPaymentSheetResult>;
24
30
  export declare const confirmPaymentSheetPayment: () => Promise<ConfirmPaymentSheetPaymentResult>;
@@ -27,3 +33,5 @@ export declare const initGooglePay: (params: GooglePay.InitParams) => Promise<Go
27
33
  export declare const presentGooglePay: (params: GooglePay.SetupIntentParams) => Promise<PayWithGooglePayResult>;
28
34
  export declare const createGooglePayPaymentMethod: (params: GooglePay.CreatePaymentMethodParams) => Promise<CreateGooglePayPaymentMethodResult>;
29
35
  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>;
@@ -1,4 +1,4 @@
1
- import type { PaymentMethodCreateParams, ApplePay, PaymentSheet, CreatePaymentMethodResult, RetrievePaymentIntentResult, RetrieveSetupIntentResult, ConfirmPaymentResult, HandleCardActionResult, ConfirmSetupIntentResult, CreateTokenForCVCUpdateResult, ApplePayResult, ApplePayError, StripeError, InitPaymentSheetResult, PresentPaymentSheetResult, ConfirmPaymentSheetPaymentResult, ConfirmSetupIntent, CreateTokenResult, PayWithGooglePayResult, GooglePayInitResult, GooglePay, CreateGooglePayPaymentMethodResult, OpenApplePaySetupResult, CreateTokenParams } from '../types';
1
+ import type { PaymentMethodCreateParams, ApplePay, PaymentSheet, CreatePaymentMethodResult, RetrievePaymentIntentResult, RetrieveSetupIntentResult, ConfirmPaymentResult, HandleNextActionResult, ConfirmSetupIntentResult, CreateTokenForCVCUpdateResult, ApplePayResult, ApplePayError, StripeError, InitPaymentSheetResult, PresentPaymentSheetResult, ConfirmPaymentSheetPaymentResult, ConfirmSetupIntent, CreateTokenResult, PayWithGooglePayResult, GooglePayInitResult, GooglePay, CreateGooglePayPaymentMethodResult, OpenApplePaySetupResult, CreateTokenParams, VerifyMicrodepositsParams, CollectBankAccountParams } from '../types';
2
2
  /**
3
3
  * useStripe hook
4
4
  */
@@ -7,7 +7,8 @@ export declare function useStripe(): {
7
7
  retrieveSetupIntent: (clientSecret: string) => Promise<RetrieveSetupIntentResult>;
8
8
  confirmPayment: (paymentIntentClientSecret: string, data: PaymentMethodCreateParams.Params, options?: PaymentMethodCreateParams.Options) => Promise<ConfirmPaymentResult>;
9
9
  createPaymentMethod: (data: PaymentMethodCreateParams.Params, options?: PaymentMethodCreateParams.Options) => Promise<CreatePaymentMethodResult>;
10
- handleCardAction: (paymentIntentClientSecret: string) => Promise<HandleCardActionResult>;
10
+ handleNextAction: (paymentIntentClientSecret: string) => Promise<HandleNextActionResult>;
11
+ handleCardAction: (paymentIntentClientSecret: string) => Promise<HandleNextActionResult>;
11
12
  isApplePaySupported: boolean | null;
12
13
  presentApplePay: (params: ApplePay.PresentParams) => Promise<ApplePayResult>;
13
14
  confirmApplePayPayment: (clientSecret: string) => Promise<{
@@ -31,4 +32,8 @@ export declare function useStripe(): {
31
32
  presentGooglePay: (params: GooglePay.PresentGooglePayParams) => Promise<PayWithGooglePayResult>;
32
33
  createGooglePayPaymentMethod: (params: GooglePay.CreatePaymentMethodParams) => Promise<CreateGooglePayPaymentMethodResult>;
33
34
  openApplePaySetup: () => Promise<OpenApplePaySetupResult>;
35
+ collectBankAccountForPayment: (clientSecret: string, params: CollectBankAccountParams) => Promise<ConfirmPaymentResult>;
36
+ collectBankAccountForSetup: (clientSecret: string, params: CollectBankAccountParams) => Promise<ConfirmSetupIntentResult>;
37
+ verifyMicrodepositsForPayment: (clientSecret: string, params: VerifyMicrodepositsParams) => Promise<ConfirmPaymentResult>;
38
+ verifyMicrodepositsForSetup: (clientSecret: string, params: VerifyMicrodepositsParams) => Promise<ConfirmSetupIntentResult>;
34
39
  };
@@ -20,6 +20,7 @@ export declare namespace Card {
20
20
  status: 'Errored' | 'New' | 'Validated' | 'VerificationFailed' | 'Verified';
21
21
  }
22
22
  interface Params {
23
+ id: string;
23
24
  country: string;
24
25
  brand: Card.Brand;
25
26
  currency?: string;
@@ -0,0 +1,32 @@
1
+ export declare type NextAction = VerifyWithMicrodepositsAction | UrlRedirectAction | WeChatRedirectAction | AlipayRedirectAction | BoletoVoucherAction | OxxoVoucherAction;
2
+ export declare type VerifyWithMicrodepositsAction = {
3
+ type: 'verifyWithMicrodeposits';
4
+ redirectUrl: string;
5
+ microdepositType: string;
6
+ arrivalDate: string;
7
+ };
8
+ export declare type UrlRedirectAction = {
9
+ type: 'urlRedirect';
10
+ redirectUrl: string;
11
+ };
12
+ export declare type WeChatRedirectAction = {
13
+ type: 'weChatRedirect';
14
+ redirectUrl: string;
15
+ };
16
+ export declare type AlipayRedirectAction = {
17
+ type: 'alipayRedirect';
18
+ redirectUrl: string;
19
+ nativeRedirectUrl: string;
20
+ };
21
+ export declare type BoletoVoucherAction = {
22
+ type: 'boletoVoucher';
23
+ expiration: number;
24
+ voucherURL: string;
25
+ voucherNumber: string;
26
+ };
27
+ export declare type OxxoVoucherAction = {
28
+ type: 'oxxoVoucher';
29
+ expiration: number;
30
+ voucherURL: string;
31
+ voucherNumber: string;
32
+ };
@@ -1,4 +1,5 @@
1
1
  import type { Nullable, StripeError } from '.';
2
+ import type { NextAction } from './NextAction';
2
3
  import type { PaymentMethod } from './PaymentMethods';
3
4
  export interface PaymentIntent {
4
5
  id: string;
@@ -16,6 +17,7 @@ export interface PaymentIntent {
16
17
  confirmationMethod: 'Automatic' | 'Manual';
17
18
  lastPaymentError: Nullable<PaymentIntents.LastPaymentError>;
18
19
  shipping: Nullable<PaymentIntents.ShippingDetails>;
20
+ nextAction: NextAction | null;
19
21
  }
20
22
  export declare namespace PaymentIntents {
21
23
  type LastPaymentError = StripeError<string> & {
@@ -1,6 +1,7 @@
1
1
  import type { AuBECSDebitFormComponent } from './components/AuBECSDebitForm';
2
2
  import type { Card } from './Card';
3
3
  import type { PaymentIntents } from './PaymentIntents';
4
+ import type { BankAcccountHolderType, BankAcccountType } from './index';
4
5
  export interface PaymentMethod {
5
6
  id: string;
6
7
  liveMode: boolean;
@@ -17,7 +18,7 @@ export interface PaymentMethod {
17
18
  Upi: PaymentMethods.Upi;
18
19
  }
19
20
  export declare namespace PaymentMethodCreateParams {
20
- type Params = CardParams | IdealParams | OxxoParams | P24Params | AlipayParams | GiropayParams | SepaParams | EpsParams | AuBecsDebitParams | SofortParams | GrabPayParams | FPXParams | AfterpayClearpayParams | KlarnaParams | BancontactParams;
21
+ type Params = CardParams | IdealParams | OxxoParams | P24Params | AlipayParams | GiropayParams | SepaParams | EpsParams | AuBecsDebitParams | SofortParams | GrabPayParams | FPXParams | AfterpayClearpayParams | KlarnaParams | BancontactParams | USBankAccountParams;
21
22
  type BillingDetails = {
22
23
  email?: string;
23
24
  name?: string;
@@ -109,6 +110,20 @@ export declare namespace PaymentMethodCreateParams {
109
110
  type: 'AuBecsDebit';
110
111
  formDetails: AuBECSDebitFormComponent.FormDetails;
111
112
  }
113
+ /** Before using this payment method type, ensure you have already collected the bank information
114
+ * for this intent with `collectBankAccountForPayment`. Otherwise, you will need to pass in the bank account
115
+ * details manually.*/
116
+ type USBankAccountParams = {
117
+ type: 'USBankAccount';
118
+ billingDetails?: Pick<Required<BillingDetails>, 'name'> & BillingDetails;
119
+ accountNumber?: string;
120
+ routingNumber?: string;
121
+ /** Defaults to Individual */
122
+ accountHolderType?: BankAcccountHolderType;
123
+ /** Defaults to Checking */
124
+ accountType?: BankAcccountType;
125
+ setupFutureUsage?: PaymentIntents.FutureUsage;
126
+ };
112
127
  }
113
128
  export declare namespace PaymentMethods {
114
129
  interface BillingDetails {
@@ -163,5 +178,16 @@ export declare namespace PaymentMethods {
163
178
  interface Upi {
164
179
  vpa?: string;
165
180
  }
166
- type Types = 'AfterpayClearpay' | 'Card' | 'Alipay' | 'GrabPay' | 'Ideal' | 'Fpx' | 'CardPresent' | 'SepaDebit' | 'AuBecsDebit' | 'BacsDebit' | 'Giropay' | 'P24' | 'Eps' | 'Bancontact' | 'Oxxo' | 'Sofort' | 'Upi' | 'Unknown';
181
+ type USBankAccount = {
182
+ routingNumber?: string;
183
+ accountHolderType?: BankAcccountHolderType;
184
+ accountType?: BankAcccountType;
185
+ last4?: string;
186
+ bankName?: string;
187
+ linkedAccount?: string;
188
+ fingerprint?: string;
189
+ preferredNetwork?: string;
190
+ supportedNetworks?: string[];
191
+ };
192
+ type Types = 'AfterpayClearpay' | 'Card' | 'Alipay' | 'GrabPay' | 'Ideal' | 'Fpx' | 'CardPresent' | 'SepaDebit' | 'AuBecsDebit' | 'BacsDebit' | 'Giropay' | 'P24' | 'Eps' | 'Bancontact' | 'Oxxo' | 'Sofort' | 'Upi' | 'USBankAccount' | 'Unknown';
167
193
  }
@@ -1,6 +1,7 @@
1
1
  import type { Nullable, StripeError } from '.';
2
2
  import type { AuBECSDebitFormComponent } from './components/AuBECSDebitForm';
3
- import type { PaymentMethod, PaymentMethods } from './PaymentMethods';
3
+ import type { NextAction } from './NextAction';
4
+ import type { PaymentMethod, PaymentMethods, PaymentMethodCreateParams } from './PaymentMethods';
4
5
  export interface SetupIntent {
5
6
  id: string;
6
7
  clientSecret: string;
@@ -12,12 +13,13 @@ export interface SetupIntent {
12
13
  paymentMethodTypes: PaymentMethods.Types[];
13
14
  usage: SetupIntents.FutureUsage;
14
15
  description: Nullable<string>;
16
+ nextAction: NextAction | null;
15
17
  }
16
18
  export declare namespace ConfirmSetupIntent {
17
19
  type LastPaymentError = StripeError<string> & {
18
20
  paymentMethod: PaymentMethod;
19
21
  };
20
- type Params = CardParams | IdealParams | BancontactParams | SofortParams | AuBecsDebitParams | SepaParams;
22
+ type Params = CardParams | IdealParams | BancontactParams | SofortParams | AuBecsDebitParams | SepaParams | PaymentMethodCreateParams.USBankAccountParams;
21
23
  interface Options {
22
24
  }
23
25
  interface BaseParams {
@@ -1,7 +1,7 @@
1
1
  import type { Card } from './Card';
2
2
  import type { ApplePayError, CardActionError, ConfirmPaymentError, ConfirmSetupIntentError, CreatePaymentMethodError, CreateTokenError, GooglePayError, PaymentSheetError, RetrievePaymentIntentError, RetrieveSetupIntentError, StripeError } from './Errors';
3
3
  import type { PaymentIntent } from './PaymentIntents';
4
- import type { PaymentMethod } from './PaymentMethods';
4
+ import type { PaymentMethod, PaymentMethodCreateParams } from './PaymentMethods';
5
5
  import type { PaymentSheet } from './PaymentSheet';
6
6
  import type { SetupIntent } from './SetupIntent';
7
7
  import type { ThreeDSecureConfigurationParams } from './ThreeDSecure';
@@ -62,7 +62,7 @@ export declare type ConfirmPaymentResult = {
62
62
  paymentIntent?: undefined;
63
63
  error: StripeError<ConfirmPaymentError>;
64
64
  };
65
- export declare type HandleCardActionResult = {
65
+ export declare type HandleNextActionResult = {
66
66
  paymentIntent: PaymentIntent;
67
67
  error?: undefined;
68
68
  } | {
@@ -119,10 +119,14 @@ export declare type ApplePayResult = {
119
119
  };
120
120
  export interface InitStripeParams {
121
121
  publishableKey: string;
122
- stripeAccountId?: string;
123
- threeDSecureParams?: ThreeDSecureConfigurationParams;
124
122
  merchantIdentifier?: string;
123
+ threeDSecureParams?: ThreeDSecureConfigurationParams;
124
+ stripeAccountId?: string;
125
125
  urlScheme?: string;
126
+ setReturnUrlSchemeOnAndroid?: boolean;
127
+ /**
128
+ * @deprecated Use setReturnUrlSchemeOnAndroid instead
129
+ */
126
130
  setUrlSchemeOnAndroid?: boolean;
127
131
  }
128
132
  export interface InitialiseParams extends InitStripeParams {
@@ -155,8 +159,10 @@ export declare type CreateTokenCardParams = {
155
159
  type: 'Card';
156
160
  address?: Card.Address;
157
161
  name?: string;
162
+ currency?: string;
158
163
  };
159
164
  export declare type BankAcccountHolderType = 'Company' | 'Individual';
165
+ export declare type BankAcccountType = 'Checking' | 'Savings';
160
166
  export declare type CreateTokenBankAccountParams = {
161
167
  type: 'BankAccount';
162
168
  accountHolderName?: string;
@@ -166,3 +172,16 @@ export declare type CreateTokenBankAccountParams = {
166
172
  currency: string;
167
173
  routingNumber?: string;
168
174
  };
175
+ export declare type VerifyMicrodepositsParams = {
176
+ amounts: number[];
177
+ descriptorCode?: undefined;
178
+ } | {
179
+ amounts?: undefined;
180
+ descriptorCode: string;
181
+ };
182
+ export declare type CollectBankAccountParams = PaymentMethodCreateParams.USBankAccountParams & {
183
+ billingDetails: {
184
+ name: string;
185
+ email?: string;
186
+ };
187
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stripe/stripe-react-native",
3
- "version": "0.4.0",
3
+ "version": "0.6.1",
4
4
  "author": "Stripe",
5
5
  "description": "Stripe SDK for React Native",
6
6
  "main": "lib/commonjs/index",
@@ -29,7 +29,7 @@
29
29
  "bootstrap": "yarn example && yarn && yarn pods",
30
30
  "bootstrap-no-pods": "yarn example && yarn",
31
31
  "docs": "yarn typedoc ./src/index.tsx --out ./docs/api-reference --tsconfig ./tsconfig.json --readme none",
32
- "run-example-ios": "cd example;ENVFILE=.env.ci react-native run-ios --configuration Release --simulator \"iPhone 12\"",
32
+ "run-example-ios": "cd example;ENVFILE=.env.ci react-native run-ios --configuration Release --simulator \"iPhone 13 (15.2)\"",
33
33
  "run-example-android": "cd example;ENVFILE=.env.ci react-native run-android --variant=release",
34
34
  "test:ios": "mkdir -p .tmp/screenshots && node ./run-appium-tests.js ios",
35
35
  "test:android": "mkdir -p .tmp/screenshots && node ./run-appium-tests.js android"
@@ -58,7 +58,7 @@
58
58
  "@wdio/mocha-framework": "^7.16.15",
59
59
  "@wdio/spec-reporter": "^7.16.14",
60
60
  "@wdio/sync": "^7.16.15",
61
- "appium": "^1.22.1",
61
+ "appium": "^1.22.2",
62
62
  "appium-chromedriver": "4.26.2",
63
63
  "eslint": "^7.14.0",
64
64
  "eslint-config-prettier": "^6.11.0",
@@ -150,6 +150,6 @@
150
150
  ]
151
151
  },
152
152
  "dependencies": {
153
- "@expo/config-plugins": "^3.0.5"
153
+ "@expo/config-plugins": "^4.1.4"
154
154
  }
155
155
  }
@@ -9,7 +9,7 @@ import type {
9
9
  RetrievePaymentIntentResult,
10
10
  RetrieveSetupIntentResult,
11
11
  ConfirmPaymentResult,
12
- HandleCardActionResult,
12
+ HandleNextActionResult,
13
13
  ConfirmSetupIntentResult,
14
14
  CreateTokenForCVCUpdateResult,
15
15
  InitPaymentSheetResult,
@@ -23,6 +23,8 @@ import type {
23
23
  GooglePay,
24
24
  OpenApplePaySetupResult,
25
25
  CreateTokenParams,
26
+ VerifyMicrodepositsParams,
27
+ CollectBankAccountParams,
26
28
  } from './types';
27
29
 
28
30
  type NativeStripeSdkType = {
@@ -31,9 +33,9 @@ type NativeStripeSdkType = {
31
33
  data: PaymentMethodCreateParams.Params,
32
34
  options: PaymentMethodCreateParams.Options
33
35
  ): Promise<CreatePaymentMethodResult>;
34
- handleCardAction(
36
+ handleNextAction(
35
37
  paymentIntentClientSecret: string
36
- ): Promise<HandleCardActionResult>;
38
+ ): Promise<HandleNextActionResult>;
37
39
  confirmPayment(
38
40
  paymentIntentClientSecret: string,
39
41
  data: PaymentMethodCreateParams.Params,
@@ -77,6 +79,16 @@ type NativeStripeSdkType = {
77
79
  params: GooglePay.CreatePaymentMethodParams
78
80
  ): Promise<CreateGooglePayPaymentMethodResult>;
79
81
  openApplePaySetup(): Promise<OpenApplePaySetupResult>;
82
+ verifyMicrodeposits(
83
+ type: 'payment' | 'setup',
84
+ clientSecret: string,
85
+ params: VerifyMicrodepositsParams
86
+ ): Promise<ConfirmSetupIntentResult | ConfirmPaymentResult>;
87
+ collectBankAccount(
88
+ type: 'payment' | 'setup',
89
+ clientSecret: string,
90
+ params: CollectBankAccountParams
91
+ ): Promise<ConfirmSetupIntentResult | ConfirmPaymentResult>;
80
92
  };
81
93
 
82
94
  const { StripeSdk } = NativeModules;
@@ -2,12 +2,7 @@ import React, { useEffect } from 'react';
2
2
 
3
3
  import NativeStripeSdk from '../NativeStripeSdk';
4
4
  import { isAndroid, shouldAttributeExpo } from '../helpers';
5
- import type {
6
- AppInfo,
7
- ThreeDSecureConfigurationParams,
8
- InitStripeParams,
9
- InitialiseParams,
10
- } from '../types';
5
+ import type { AppInfo, InitStripeParams, InitialiseParams } from '../types';
11
6
  import pjson from '../../package.json';
12
7
 
13
8
  const EXPO_PARTNER_ID = 'pp_partner_JBN7LkABco2yUu';
@@ -15,15 +10,9 @@ const EXPO_PARTNER_ID = 'pp_partner_JBN7LkABco2yUu';
15
10
  /**
16
11
  * Stripe Provider Component Props
17
12
  */
18
- export interface Props {
19
- publishableKey: string;
20
- merchantIdentifier?: string;
21
- threeDSecureParams?: ThreeDSecureConfigurationParams;
22
- stripeAccountId?: string;
13
+ export type Props = InitStripeParams & {
23
14
  children: React.ReactElement | React.ReactElement[];
24
- urlScheme?: string;
25
- setUrlSchemeOnAndroid?: boolean;
26
- }
15
+ };
27
16
 
28
17
  const repository: any = pjson.repository;
29
18
 
@@ -69,6 +58,7 @@ export function StripeProvider({
69
58
  threeDSecureParams,
70
59
  stripeAccountId,
71
60
  urlScheme,
61
+ setReturnUrlSchemeOnAndroid,
72
62
  setUrlSchemeOnAndroid,
73
63
  }: Props) {
74
64
  useEffect(() => {
@@ -82,7 +72,8 @@ export function StripeProvider({
82
72
  stripeAccountId,
83
73
  threeDSecureParams,
84
74
  urlScheme,
85
- setUrlSchemeOnAndroid,
75
+ setReturnUrlSchemeOnAndroid:
76
+ setReturnUrlSchemeOnAndroid || setUrlSchemeOnAndroid,
86
77
  });
87
78
  } else {
88
79
  NativeStripeSdk.initialise({
@@ -100,6 +91,7 @@ export function StripeProvider({
100
91
  stripeAccountId,
101
92
  threeDSecureParams,
102
93
  urlScheme,
94
+ setReturnUrlSchemeOnAndroid,
103
95
  setUrlSchemeOnAndroid,
104
96
  ]);
105
97
 
package/src/functions.ts CHANGED
@@ -6,6 +6,8 @@ import {
6
6
  ApplePayError,
7
7
  ApplePayResult,
8
8
  ConfirmPaymentResult,
9
+ ConfirmPaymentError,
10
+ ConfirmSetupIntentError,
9
11
  ConfirmPaymentSheetPaymentResult,
10
12
  ConfirmSetupIntent,
11
13
  ConfirmSetupIntentResult,
@@ -13,7 +15,7 @@ import {
13
15
  CreateTokenForCVCUpdateResult,
14
16
  CreateTokenResult,
15
17
  GooglePayInitResult,
16
- HandleCardActionResult,
18
+ HandleNextActionResult,
17
19
  InitPaymentSheetResult,
18
20
  PaymentMethodCreateParams,
19
21
  PaymentSheet,
@@ -26,10 +28,14 @@ import {
26
28
  CreateGooglePayPaymentMethodResult,
27
29
  OpenApplePaySetupResult,
28
30
  CreateTokenParams,
31
+ VerifyMicrodepositsParams,
32
+ CollectBankAccountParams,
29
33
  } from './types';
30
34
 
31
35
  const APPLE_PAY_NOT_SUPPORTED_MESSAGE =
32
36
  'Apple pay is not supported on this device';
37
+ const PAYMENT_INTENT = 'payment';
38
+ const SETUP_INTENT = 'setup';
33
39
 
34
40
  export const createPaymentMethod = async (
35
41
  data: PaymentMethodCreateParams.Params,
@@ -239,11 +245,36 @@ export const confirmApplePayPayment = async (
239
245
  }
240
246
  };
241
247
 
248
+ export const handleNextAction = async (
249
+ paymentIntentClientSecret: string
250
+ ): Promise<HandleNextActionResult> => {
251
+ try {
252
+ const { paymentIntent, error } = await NativeStripeSdk.handleNextAction(
253
+ paymentIntentClientSecret
254
+ );
255
+ if (error) {
256
+ return {
257
+ error,
258
+ };
259
+ }
260
+ return {
261
+ paymentIntent: paymentIntent!,
262
+ };
263
+ } catch (error) {
264
+ return {
265
+ error: createError(error),
266
+ };
267
+ }
268
+ };
269
+
270
+ /**
271
+ * @deprecated This method is deprecated, you should use `handleNextAction` as a drop-in replacement instead.
272
+ */
242
273
  export const handleCardAction = async (
243
274
  paymentIntentClientSecret: string
244
- ): Promise<HandleCardActionResult> => {
275
+ ): Promise<HandleNextActionResult> => {
245
276
  try {
246
- const { paymentIntent, error } = await NativeStripeSdk.handleCardAction(
277
+ const { paymentIntent, error } = await NativeStripeSdk.handleNextAction(
247
278
  paymentIntentClientSecret
248
279
  );
249
280
  if (error) {
@@ -314,6 +345,76 @@ export const handleURLCallback = async (url: string): Promise<boolean> => {
314
345
  return stripeHandled;
315
346
  };
316
347
 
348
+ export const verifyMicrodepositsForPayment = async (
349
+ clientSecret: string,
350
+ params: VerifyMicrodepositsParams
351
+ ): Promise<ConfirmPaymentResult> => {
352
+ if (isAndroid) {
353
+ return {
354
+ error: createError({
355
+ code: ConfirmPaymentError.Failed,
356
+ message:
357
+ 'verifyMicrodepositsForPayment is only supported on iOS on this version of @stripe/stripe-react-native. Please verify with paymentIntent.nextAction.redirectUrl',
358
+ }),
359
+ };
360
+ }
361
+ try {
362
+ const { paymentIntent, error } = (await NativeStripeSdk.verifyMicrodeposits(
363
+ PAYMENT_INTENT,
364
+ clientSecret,
365
+ params
366
+ )) as ConfirmPaymentResult;
367
+
368
+ if (error) {
369
+ return {
370
+ error,
371
+ };
372
+ }
373
+ return {
374
+ paymentIntent: paymentIntent!,
375
+ };
376
+ } catch (error) {
377
+ return {
378
+ error: createError(error),
379
+ };
380
+ }
381
+ };
382
+
383
+ export const verifyMicrodepositsForSetup = async (
384
+ clientSecret: string,
385
+ params: VerifyMicrodepositsParams
386
+ ): Promise<ConfirmSetupIntentResult> => {
387
+ if (isAndroid) {
388
+ return {
389
+ error: createError({
390
+ code: ConfirmSetupIntentError.Failed,
391
+ message:
392
+ 'verifyMicrodepositsForSetup is only supported on iOS on this version of @stripe/stripe-react-native. Please verify with setupIntent.nextAction.redirectUrl',
393
+ }),
394
+ };
395
+ }
396
+ try {
397
+ const { setupIntent, error } = (await NativeStripeSdk.verifyMicrodeposits(
398
+ SETUP_INTENT,
399
+ clientSecret,
400
+ params
401
+ )) as ConfirmSetupIntentResult;
402
+
403
+ if (error) {
404
+ return {
405
+ error,
406
+ };
407
+ }
408
+ return {
409
+ setupIntent: setupIntent!,
410
+ };
411
+ } catch (error) {
412
+ return {
413
+ error: createError(error),
414
+ };
415
+ }
416
+ };
417
+
317
418
  export const initPaymentSheet = async (
318
419
  params: PaymentSheet.SetupParams
319
420
  ): Promise<InitPaymentSheetResult> => {
@@ -453,3 +554,73 @@ export const openApplePaySetup = async (): Promise<OpenApplePaySetupResult> => {
453
554
  };
454
555
  }
455
556
  };
557
+
558
+ export const collectBankAccountForPayment = async (
559
+ clientSecret: string,
560
+ params: CollectBankAccountParams
561
+ ): Promise<ConfirmPaymentResult> => {
562
+ if (isAndroid) {
563
+ return {
564
+ error: createError({
565
+ code: ConfirmPaymentError.Failed,
566
+ message:
567
+ 'collectBankAccountForPayment is only supported on iOS on this version of @stripe/stripe-react-native.',
568
+ }),
569
+ };
570
+ }
571
+ try {
572
+ const { paymentIntent, error } = (await NativeStripeSdk.collectBankAccount(
573
+ PAYMENT_INTENT,
574
+ clientSecret,
575
+ params
576
+ )) as ConfirmPaymentResult;
577
+
578
+ if (error) {
579
+ return {
580
+ error,
581
+ };
582
+ }
583
+ return {
584
+ paymentIntent: paymentIntent!,
585
+ };
586
+ } catch (error) {
587
+ return {
588
+ error: createError(error),
589
+ };
590
+ }
591
+ };
592
+
593
+ export const collectBankAccountForSetup = async (
594
+ clientSecret: string,
595
+ params: CollectBankAccountParams
596
+ ): Promise<ConfirmSetupIntentResult> => {
597
+ if (isAndroid) {
598
+ return {
599
+ error: createError({
600
+ code: ConfirmSetupIntentError.Failed,
601
+ message:
602
+ 'collectBankAccountForSetup is only supported on iOS on this version of @stripe/stripe-react-native.',
603
+ }),
604
+ };
605
+ }
606
+ try {
607
+ const { setupIntent, error } = (await NativeStripeSdk.collectBankAccount(
608
+ SETUP_INTENT,
609
+ clientSecret,
610
+ params
611
+ )) as ConfirmSetupIntentResult;
612
+
613
+ if (error) {
614
+ return {
615
+ error,
616
+ };
617
+ }
618
+ return {
619
+ setupIntent: setupIntent!,
620
+ };
621
+ } catch (error) {
622
+ return {
623
+ error: createError(error),
624
+ };
625
+ }
626
+ };