@stripe/stripe-react-native 0.2.3 → 0.2.4
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.
- package/CHANGELOG.md +16 -0
- package/README.md +1 -1
- package/android/{build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/java-sources-proto-map.tab.keystream → .DS_Store} +0 -0
- package/android/build/.transforms/{3ded3a6fbd7b23cd705e2483fe1d1141.bin → 58a84c8dde5bf16d639a134b8787b5f4.bin} +0 -0
- package/android/build/.transforms/b2dbf9d896f8ddb73fdd3eb4d127feb5/classes/classes.dex +0 -0
- package/android/build/.transforms/{62198f0e8486e525993aebfb57e3c70b.bin → b2dbf9d896f8ddb73fdd3eb4d127feb5.bin} +0 -0
- package/android/build/.transforms/{63a0deef207f9b16b121fda410ea7437 → f9b34f3ef926ba9375893474ef77045a}/debug/com/reactnativestripesdk/AuBECSDebitFormView$setListeners$1.dex +0 -0
- package/android/build/.transforms/{63a0deef207f9b16b121fda410ea7437 → f9b34f3ef926ba9375893474ef77045a}/debug/com/reactnativestripesdk/AuBECSDebitFormView.dex +0 -0
- package/android/build/.transforms/{63a0deef207f9b16b121fda410ea7437 → f9b34f3ef926ba9375893474ef77045a}/debug/com/reactnativestripesdk/AuBECSDebitFormViewManager.dex +0 -0
- package/android/build/.transforms/{63a0deef207f9b16b121fda410ea7437 → f9b34f3ef926ba9375893474ef77045a}/debug/com/reactnativestripesdk/BuildConfig.dex +0 -0
- package/android/build/.transforms/{8c7cefa1dcfb0baa172d019362b38cee → f9b34f3ef926ba9375893474ef77045a}/debug/com/reactnativestripesdk/CardChangedEvent$Companion.dex +0 -0
- package/android/build/.transforms/{8c7cefa1dcfb0baa172d019362b38cee → f9b34f3ef926ba9375893474ef77045a}/debug/com/reactnativestripesdk/CardChangedEvent.dex +0 -0
- package/android/build/.transforms/{63a0deef207f9b16b121fda410ea7437 → f9b34f3ef926ba9375893474ef77045a}/debug/com/reactnativestripesdk/CardFocusEvent$Companion.dex +0 -0
- package/android/build/.transforms/{63a0deef207f9b16b121fda410ea7437 → f9b34f3ef926ba9375893474ef77045a}/debug/com/reactnativestripesdk/CardFocusEvent.dex +0 -0
- package/android/build/.transforms/{63a0deef207f9b16b121fda410ea7437 → f9b34f3ef926ba9375893474ef77045a}/debug/com/reactnativestripesdk/CardFormCompleteEvent$Companion.dex +0 -0
- package/android/build/.transforms/{63a0deef207f9b16b121fda410ea7437 → f9b34f3ef926ba9375893474ef77045a}/debug/com/reactnativestripesdk/CardFormCompleteEvent.dex +0 -0
- package/android/build/.transforms/{63a0deef207f9b16b121fda410ea7437 → f9b34f3ef926ba9375893474ef77045a}/debug/com/reactnativestripesdk/CardFormView.dex +0 -0
- package/android/build/.transforms/{63a0deef207f9b16b121fda410ea7437 → f9b34f3ef926ba9375893474ef77045a}/debug/com/reactnativestripesdk/CardFormViewManager.dex +0 -0
- package/android/build/.transforms/{63a0deef207f9b16b121fda410ea7437 → f9b34f3ef926ba9375893474ef77045a}/debug/com/reactnativestripesdk/ConfirmPaymentErrorType.dex +0 -0
- package/android/build/.transforms/{63a0deef207f9b16b121fda410ea7437 → f9b34f3ef926ba9375893474ef77045a}/debug/com/reactnativestripesdk/ConfirmSetupIntentErrorType.dex +0 -0
- package/android/build/.transforms/{63a0deef207f9b16b121fda410ea7437 → f9b34f3ef926ba9375893474ef77045a}/debug/com/reactnativestripesdk/ConstantsKt.dex +0 -0
- package/android/build/.transforms/{63a0deef207f9b16b121fda410ea7437 → f9b34f3ef926ba9375893474ef77045a}/debug/com/reactnativestripesdk/CreateTokenErrorType.dex +0 -0
- package/android/build/.transforms/{63a0deef207f9b16b121fda410ea7437 → f9b34f3ef926ba9375893474ef77045a}/debug/com/reactnativestripesdk/ErrorsKt.dex +0 -0
- package/android/build/.transforms/{63a0deef207f9b16b121fda410ea7437 → f9b34f3ef926ba9375893474ef77045a}/debug/com/reactnativestripesdk/ExtensionsKt.dex +0 -0
- package/android/build/.transforms/{63a0deef207f9b16b121fda410ea7437 → f9b34f3ef926ba9375893474ef77045a}/debug/com/reactnativestripesdk/FormCompleteEvent$Companion.dex +0 -0
- package/android/build/.transforms/{63a0deef207f9b16b121fda410ea7437 → f9b34f3ef926ba9375893474ef77045a}/debug/com/reactnativestripesdk/FormCompleteEvent.dex +0 -0
- package/android/build/.transforms/{63a0deef207f9b16b121fda410ea7437 → f9b34f3ef926ba9375893474ef77045a}/debug/com/reactnativestripesdk/GooglePayButtonManager$Companion.dex +0 -0
- package/android/build/.transforms/{63a0deef207f9b16b121fda410ea7437 → f9b34f3ef926ba9375893474ef77045a}/debug/com/reactnativestripesdk/GooglePayButtonManager.dex +0 -0
- package/android/build/.transforms/{63a0deef207f9b16b121fda410ea7437 → f9b34f3ef926ba9375893474ef77045a}/debug/com/reactnativestripesdk/GooglePayButtonView.dex +0 -0
- package/android/build/.transforms/{63a0deef207f9b16b121fda410ea7437 → f9b34f3ef926ba9375893474ef77045a}/debug/com/reactnativestripesdk/GooglePayErrorType.dex +0 -0
- package/android/build/.transforms/{63a0deef207f9b16b121fda410ea7437 → f9b34f3ef926ba9375893474ef77045a}/debug/com/reactnativestripesdk/GooglePayFragment$onViewCreated$1.dex +0 -0
- package/android/build/.transforms/{63a0deef207f9b16b121fda410ea7437 → f9b34f3ef926ba9375893474ef77045a}/debug/com/reactnativestripesdk/GooglePayFragment$onViewCreated$2.dex +0 -0
- package/android/build/.transforms/{63a0deef207f9b16b121fda410ea7437 → f9b34f3ef926ba9375893474ef77045a}/debug/com/reactnativestripesdk/GooglePayFragment$onViewCreated$3.dex +0 -0
- package/android/build/.transforms/{63a0deef207f9b16b121fda410ea7437 → f9b34f3ef926ba9375893474ef77045a}/debug/com/reactnativestripesdk/GooglePayFragment$onViewCreated$4.dex +0 -0
- package/android/build/.transforms/f9b34f3ef926ba9375893474ef77045a/debug/com/reactnativestripesdk/GooglePayFragment.dex +0 -0
- package/android/build/.transforms/{63a0deef207f9b16b121fda410ea7437 → f9b34f3ef926ba9375893474ef77045a}/debug/com/reactnativestripesdk/MappersKt$WhenMappings.dex +0 -0
- package/android/build/.transforms/f9b34f3ef926ba9375893474ef77045a/debug/com/reactnativestripesdk/MappersKt.dex +0 -0
- package/android/build/.transforms/{63a0deef207f9b16b121fda410ea7437 → f9b34f3ef926ba9375893474ef77045a}/debug/com/reactnativestripesdk/NextPaymentActionErrorType.dex +0 -0
- package/android/build/.transforms/{63a0deef207f9b16b121fda410ea7437 → f9b34f3ef926ba9375893474ef77045a}/debug/com/reactnativestripesdk/PaymentMethodCreateParamsException.dex +0 -0
- package/android/build/.transforms/{63a0deef207f9b16b121fda410ea7437 → f9b34f3ef926ba9375893474ef77045a}/debug/com/reactnativestripesdk/PaymentMethodCreateParamsFactory$WhenMappings.dex +0 -0
- package/android/build/.transforms/{63a0deef207f9b16b121fda410ea7437 → f9b34f3ef926ba9375893474ef77045a}/debug/com/reactnativestripesdk/PaymentMethodCreateParamsFactory.dex +0 -0
- package/android/build/.transforms/{63a0deef207f9b16b121fda410ea7437 → f9b34f3ef926ba9375893474ef77045a}/debug/com/reactnativestripesdk/PaymentSheetErrorType.dex +0 -0
- package/android/build/.transforms/{63a0deef207f9b16b121fda410ea7437 → f9b34f3ef926ba9375893474ef77045a}/debug/com/reactnativestripesdk/PaymentSheetFragment$configureFlowController$onFlowControllerConfigure$1.dex +0 -0
- package/android/build/.transforms/{8c7cefa1dcfb0baa172d019362b38cee → f9b34f3ef926ba9375893474ef77045a}/debug/com/reactnativestripesdk/PaymentSheetFragment$onViewCreated$paymentOptionCallback$1.dex +0 -0
- package/android/build/.transforms/{63a0deef207f9b16b121fda410ea7437 → f9b34f3ef926ba9375893474ef77045a}/debug/com/reactnativestripesdk/PaymentSheetFragment$onViewCreated$paymentResultCallback$1.dex +0 -0
- package/android/build/.transforms/f9b34f3ef926ba9375893474ef77045a/debug/com/reactnativestripesdk/PaymentSheetFragment.dex +0 -0
- package/android/build/.transforms/{63a0deef207f9b16b121fda410ea7437 → f9b34f3ef926ba9375893474ef77045a}/debug/com/reactnativestripesdk/PaymentSheetFragmentKt.dex +0 -0
- package/android/build/.transforms/{63a0deef207f9b16b121fda410ea7437 → f9b34f3ef926ba9375893474ef77045a}/debug/com/reactnativestripesdk/RetrievePaymentIntentErrorType.dex +0 -0
- package/android/build/.transforms/{63a0deef207f9b16b121fda410ea7437 → f9b34f3ef926ba9375893474ef77045a}/debug/com/reactnativestripesdk/RetrieveSetupIntentErrorType.dex +0 -0
- package/android/build/.transforms/{63a0deef207f9b16b121fda410ea7437 → f9b34f3ef926ba9375893474ef77045a}/debug/com/reactnativestripesdk/StripeContainerManager.dex +0 -0
- package/android/build/.transforms/{63a0deef207f9b16b121fda410ea7437 → f9b34f3ef926ba9375893474ef77045a}/debug/com/reactnativestripesdk/StripeContainerView.dex +0 -0
- package/android/build/.transforms/{8c7cefa1dcfb0baa172d019362b38cee → f9b34f3ef926ba9375893474ef77045a}/debug/com/reactnativestripesdk/StripeSdkCardView$setListeners$2.dex +0 -0
- package/android/build/.transforms/{63a0deef207f9b16b121fda410ea7437 → f9b34f3ef926ba9375893474ef77045a}/debug/com/reactnativestripesdk/StripeSdkCardView$setListeners$3.dex +0 -0
- package/android/build/.transforms/{63a0deef207f9b16b121fda410ea7437 → f9b34f3ef926ba9375893474ef77045a}/debug/com/reactnativestripesdk/StripeSdkCardView$setListeners$4.dex +0 -0
- package/android/build/.transforms/{63a0deef207f9b16b121fda410ea7437 → f9b34f3ef926ba9375893474ef77045a}/debug/com/reactnativestripesdk/StripeSdkCardView$setListeners$5.dex +0 -0
- package/android/build/.transforms/{8c7cefa1dcfb0baa172d019362b38cee → f9b34f3ef926ba9375893474ef77045a}/debug/com/reactnativestripesdk/StripeSdkCardView$setListeners$6.dex +0 -0
- package/android/build/.transforms/f9b34f3ef926ba9375893474ef77045a/debug/com/reactnativestripesdk/StripeSdkCardView.dex +0 -0
- package/android/build/.transforms/{63a0deef207f9b16b121fda410ea7437 → f9b34f3ef926ba9375893474ef77045a}/debug/com/reactnativestripesdk/StripeSdkCardViewManager.dex +0 -0
- package/android/build/.transforms/{63a0deef207f9b16b121fda410ea7437 → f9b34f3ef926ba9375893474ef77045a}/debug/com/reactnativestripesdk/StripeSdkModule$Companion.dex +0 -0
- package/android/build/.transforms/{63a0deef207f9b16b121fda410ea7437 → f9b34f3ef926ba9375893474ef77045a}/debug/com/reactnativestripesdk/StripeSdkModule$createPaymentMethod$1.dex +0 -0
- package/android/build/.transforms/{63a0deef207f9b16b121fda410ea7437 → f9b34f3ef926ba9375893474ef77045a}/debug/com/reactnativestripesdk/StripeSdkModule$createToken$1.dex +0 -0
- package/android/build/.transforms/{63a0deef207f9b16b121fda410ea7437 → f9b34f3ef926ba9375893474ef77045a}/debug/com/reactnativestripesdk/StripeSdkModule$createTokenForCVCUpdate$1.dex +0 -0
- package/android/build/.transforms/{63a0deef207f9b16b121fda410ea7437 → f9b34f3ef926ba9375893474ef77045a}/debug/com/reactnativestripesdk/StripeSdkModule$googlePayReceiver$1.dex +0 -0
- package/android/build/.transforms/{63a0deef207f9b16b121fda410ea7437 → f9b34f3ef926ba9375893474ef77045a}/debug/com/reactnativestripesdk/StripeSdkModule$mActivityEventListener$1$onActivityResult$2$WhenMappings.dex +0 -0
- package/android/build/.transforms/{63a0deef207f9b16b121fda410ea7437 → f9b34f3ef926ba9375893474ef77045a}/debug/com/reactnativestripesdk/StripeSdkModule$mActivityEventListener$1$onActivityResult$2.dex +0 -0
- package/android/build/.transforms/{63a0deef207f9b16b121fda410ea7437 → f9b34f3ef926ba9375893474ef77045a}/debug/com/reactnativestripesdk/StripeSdkModule$mActivityEventListener$1$onActivityResult$3$WhenMappings.dex +0 -0
- package/android/build/.transforms/{63a0deef207f9b16b121fda410ea7437 → f9b34f3ef926ba9375893474ef77045a}/debug/com/reactnativestripesdk/StripeSdkModule$mActivityEventListener$1$onActivityResult$3.dex +0 -0
- package/android/build/.transforms/{63a0deef207f9b16b121fda410ea7437 → f9b34f3ef926ba9375893474ef77045a}/debug/com/reactnativestripesdk/StripeSdkModule$mActivityEventListener$1.dex +0 -0
- package/android/build/.transforms/{63a0deef207f9b16b121fda410ea7437 → f9b34f3ef926ba9375893474ef77045a}/debug/com/reactnativestripesdk/StripeSdkModule$mPaymentSheetReceiver$1.dex +0 -0
- package/android/build/.transforms/{63a0deef207f9b16b121fda410ea7437 → f9b34f3ef926ba9375893474ef77045a}/debug/com/reactnativestripesdk/StripeSdkModule$payWithWeChatPay$1.dex +0 -0
- package/android/build/.transforms/{63a0deef207f9b16b121fda410ea7437 → f9b34f3ef926ba9375893474ef77045a}/debug/com/reactnativestripesdk/StripeSdkModule.dex +0 -0
- package/android/build/.transforms/{63a0deef207f9b16b121fda410ea7437 → f9b34f3ef926ba9375893474ef77045a}/debug/com/reactnativestripesdk/StripeSdkPackage.dex +0 -0
- package/android/build/.transforms/{63a0deef207f9b16b121fda410ea7437 → f9b34f3ef926ba9375893474ef77045a}/debug/com/reactnativestripesdk/databinding/GooglepayButtonBinding.dex +0 -0
- package/android/build/.transforms/{63a0deef207f9b16b121fda410ea7437 → f9b34f3ef926ba9375893474ef77045a}/debug/com/reactnativestripesdk/databinding/GooglepayButtonNoShadowBinding.dex +0 -0
- package/android/build/.transforms/{63a0deef207f9b16b121fda410ea7437 → f9b34f3ef926ba9375893474ef77045a}/debug/com/reactnativestripesdk/databinding/PayWithGooglepayButtonBinding.dex +0 -0
- package/android/build/.transforms/{63a0deef207f9b16b121fda410ea7437 → f9b34f3ef926ba9375893474ef77045a}/debug/com/reactnativestripesdk/databinding/PayWithGooglepayButtonNoShadowBinding.dex +0 -0
- package/android/build/.transforms/{63a0deef207f9b16b121fda410ea7437 → f9b34f3ef926ba9375893474ef77045a}/desugar_graph.bin +0 -0
- package/android/build/.transforms/{63a0deef207f9b16b121fda410ea7437.bin → f9b34f3ef926ba9375893474ef77045a.bin} +0 -0
- package/android/build/intermediates/compile_library_classes_jar/debug/classes.jar +0 -0
- package/android/build/intermediates/compile_library_classes_jar/release/classes.jar +0 -0
- package/android/build/intermediates/compile_r_class_jar/debug/R.jar +0 -0
- package/android/build/intermediates/compile_r_class_jar/release/R.jar +0 -0
- package/android/build/intermediates/compile_symbol_list/debug/R.txt +45 -29
- package/android/build/intermediates/compile_symbol_list/release/R.txt +45 -29
- package/android/build/intermediates/incremental/packageDebugResources/compile-file-map.properties +1 -1
- package/android/build/intermediates/incremental/packageReleaseResources/compile-file-map.properties +1 -1
- package/android/build/intermediates/runtime_library_classes_dir/debug/com/reactnativestripesdk/CardChangedEvent$Companion.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/com/reactnativestripesdk/CardChangedEvent.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/com/reactnativestripesdk/GooglePayFragment.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/com/reactnativestripesdk/MappersKt.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/com/reactnativestripesdk/PaymentSheetFragment$configureFlowController$onFlowControllerConfigure$1.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/com/reactnativestripesdk/PaymentSheetFragment$onViewCreated$paymentOptionCallback$1.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/com/reactnativestripesdk/PaymentSheetFragment$onViewCreated$paymentResultCallback$1.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/com/reactnativestripesdk/PaymentSheetFragment.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/com/reactnativestripesdk/PaymentSheetFragmentKt.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/com/reactnativestripesdk/StripeSdkCardView$setListeners$2.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/com/reactnativestripesdk/StripeSdkCardView$setListeners$3.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/com/reactnativestripesdk/StripeSdkCardView$setListeners$4.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/com/reactnativestripesdk/StripeSdkCardView$setListeners$5.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/com/reactnativestripesdk/StripeSdkCardView$setListeners$6.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/com/reactnativestripesdk/StripeSdkCardView.class +0 -0
- package/android/build/intermediates/runtime_library_classes_jar/release/classes.jar +0 -0
- package/android/build/intermediates/symbol_list_with_package_name/debug/package-aware-r.txt +45 -29
- package/android/build/intermediates/symbol_list_with_package_name/release/package-aware-r.txt +45 -29
- package/android/build/kotlin/compileDebugKotlin/build-history.bin +0 -0
- package/android/build/kotlin/compileDebugKotlin/caches-jvm/inputs/source-to-output.tab +0 -0
- package/android/build/kotlin/compileDebugKotlin/caches-jvm/inputs/source-to-output.tab.values.at +0 -0
- package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/class-attributes.tab +0 -0
- package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/class-attributes.tab.keystream +0 -0
- package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/class-attributes.tab.keystream.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/class-attributes.tab.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/class-attributes.tab.values.at +0 -0
- package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/class-attributes.tab_i +0 -0
- package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab +0 -0
- package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab.keystream +0 -0
- package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab.keystream.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab.values.at +0 -0
- package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab_i +0 -0
- package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/constants.tab +0 -0
- package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/constants.tab.keystream +0 -0
- package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/constants.tab.keystream.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/constants.tab.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/constants.tab.values.at +0 -0
- package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/constants.tab_i +0 -0
- package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/internal-name-to-source.tab +0 -0
- package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/internal-name-to-source.tab.keystream +0 -0
- package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/internal-name-to-source.tab.keystream.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/internal-name-to-source.tab.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/internal-name-to-source.tab.values.at +0 -0
- package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/internal-name-to-source.tab_i +0 -0
- package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/package-parts.tab +0 -0
- package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/package-parts.tab.keystream +0 -0
- package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/package-parts.tab.keystream.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/package-parts.tab.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/package-parts.tab.values.at +0 -0
- package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/package-parts.tab_i +0 -0
- package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/proto.tab +0 -0
- package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/proto.tab.keystream +0 -0
- package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/proto.tab.keystream.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/proto.tab.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/proto.tab.values.at +0 -0
- package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/proto.tab_i +0 -0
- package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/source-to-classes.tab +0 -0
- package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/source-to-classes.tab.keystream +0 -0
- package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/source-to-classes.tab.keystream.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/source-to-classes.tab.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/source-to-classes.tab.values.at +0 -0
- package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/source-to-classes.tab_i +0 -0
- package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/subtypes.tab +0 -0
- package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/subtypes.tab.values.at +0 -0
- package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/supertypes.tab +0 -0
- package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/supertypes.tab.values.at +0 -0
- package/android/build/kotlin/compileDebugKotlin/caches-jvm/lookups/counters.tab +2 -2
- package/android/build/kotlin/compileDebugKotlin/caches-jvm/lookups/file-to-id.tab +0 -0
- package/android/build/kotlin/compileDebugKotlin/caches-jvm/lookups/file-to-id.tab.values.at +0 -0
- package/android/build/kotlin/compileDebugKotlin/caches-jvm/lookups/id-to-file.tab +0 -0
- package/android/build/kotlin/compileDebugKotlin/caches-jvm/lookups/id-to-file.tab.keystream +0 -0
- package/android/build/kotlin/compileDebugKotlin/caches-jvm/lookups/id-to-file.tab.keystream.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/caches-jvm/lookups/id-to-file.tab.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/caches-jvm/lookups/id-to-file.tab.values.at +0 -0
- package/android/build/kotlin/compileDebugKotlin/caches-jvm/lookups/id-to-file.tab_i +0 -0
- package/android/build/kotlin/compileDebugKotlin/caches-jvm/lookups/lookups.tab +0 -0
- package/android/build/kotlin/compileDebugKotlin/caches-jvm/lookups/lookups.tab.keystream +0 -0
- package/android/build/kotlin/compileDebugKotlin/caches-jvm/lookups/lookups.tab.keystream.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/caches-jvm/lookups/lookups.tab.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/caches-jvm/lookups/lookups.tab.values +0 -0
- package/android/build/kotlin/compileDebugKotlin/caches-jvm/lookups/lookups.tab.values.at +0 -0
- package/android/build/kotlin/compileDebugKotlin/caches-jvm/lookups/lookups.tab.values.s +1 -1
- package/android/build/kotlin/compileDebugKotlin/caches-jvm/lookups/lookups.tab_i +0 -0
- package/android/build/kotlin/compileDebugKotlin/last-build.bin +0 -0
- package/android/build/kotlin/compileReleaseKotlin/build-history.bin +0 -0
- package/android/build/kotlin/compileReleaseKotlin/caches-jvm/lookups/lookups.tab +0 -0
- package/android/build/kotlin/compileReleaseKotlin/caches-jvm/lookups/lookups.tab.keystream +0 -0
- package/android/build/kotlin/compileReleaseKotlin/caches-jvm/lookups/lookups.tab.keystream.len +0 -0
- package/android/build/kotlin/compileReleaseKotlin/caches-jvm/lookups/lookups.tab.len +0 -0
- package/android/build/kotlin/compileReleaseKotlin/caches-jvm/lookups/lookups.tab.values +0 -0
- package/android/build/kotlin/compileReleaseKotlin/caches-jvm/lookups/lookups.tab.values.at +0 -0
- package/android/build/kotlin/compileReleaseKotlin/caches-jvm/lookups/lookups.tab.values.s +1 -1
- package/android/build/kotlin/compileReleaseKotlin/caches-jvm/lookups/lookups.tab_i +0 -0
- package/android/build/kotlin/compileReleaseKotlin/last-build.bin +0 -0
- package/android/build/tmp/kotlin-classes/debug/com/reactnativestripesdk/CardChangedEvent$Companion.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/com/reactnativestripesdk/CardChangedEvent.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/com/reactnativestripesdk/GooglePayFragment.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/com/reactnativestripesdk/MappersKt.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/com/reactnativestripesdk/PaymentSheetFragment$configureFlowController$onFlowControllerConfigure$1.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/com/reactnativestripesdk/PaymentSheetFragment$onViewCreated$paymentOptionCallback$1.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/com/reactnativestripesdk/PaymentSheetFragment$onViewCreated$paymentResultCallback$1.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/com/reactnativestripesdk/PaymentSheetFragment.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/com/reactnativestripesdk/PaymentSheetFragmentKt.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/com/reactnativestripesdk/StripeSdkCardView$setListeners$2.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/com/reactnativestripesdk/StripeSdkCardView$setListeners$3.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/com/reactnativestripesdk/StripeSdkCardView$setListeners$4.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/com/reactnativestripesdk/StripeSdkCardView$setListeners$5.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/com/reactnativestripesdk/StripeSdkCardView$setListeners$6.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/com/reactnativestripesdk/StripeSdkCardView.class +0 -0
- package/android/build/tmp/kotlin-classes/release/com/reactnativestripesdk/CardChangedEvent$Companion.class +0 -0
- package/android/build/tmp/kotlin-classes/release/com/reactnativestripesdk/CardChangedEvent.class +0 -0
- package/android/build/tmp/kotlin-classes/release/com/reactnativestripesdk/GooglePayFragment.class +0 -0
- package/android/build/tmp/kotlin-classes/release/com/reactnativestripesdk/MappersKt.class +0 -0
- package/android/build/tmp/kotlin-classes/release/com/reactnativestripesdk/PaymentSheetFragment$configureFlowController$onFlowControllerConfigure$1.class +0 -0
- package/android/build/tmp/kotlin-classes/release/com/reactnativestripesdk/PaymentSheetFragment$onViewCreated$paymentOptionCallback$1.class +0 -0
- package/android/build/tmp/kotlin-classes/release/com/reactnativestripesdk/PaymentSheetFragment$onViewCreated$paymentResultCallback$1.class +0 -0
- package/android/build/tmp/kotlin-classes/release/com/reactnativestripesdk/PaymentSheetFragment.class +0 -0
- package/android/build/tmp/kotlin-classes/release/com/reactnativestripesdk/PaymentSheetFragmentKt.class +0 -0
- package/android/build/tmp/kotlin-classes/release/com/reactnativestripesdk/StripeSdkCardView$setListeners$2.class +0 -0
- package/android/build/tmp/kotlin-classes/release/com/reactnativestripesdk/StripeSdkCardView$setListeners$3.class +0 -0
- package/android/build/tmp/kotlin-classes/release/com/reactnativestripesdk/StripeSdkCardView$setListeners$4.class +0 -0
- package/android/build/tmp/kotlin-classes/release/com/reactnativestripesdk/StripeSdkCardView$setListeners$5.class +0 -0
- package/android/build/tmp/kotlin-classes/release/com/reactnativestripesdk/StripeSdkCardView$setListeners$6.class +0 -0
- package/android/build/tmp/kotlin-classes/release/com/reactnativestripesdk/StripeSdkCardView.class +0 -0
- package/android/build.gradle +3 -3
- package/android/gradle.properties +0 -3
- package/android/{build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/java-sources-proto-map.tab → src/.DS_Store} +0 -0
- package/android/src/main/java/com/reactnativestripesdk/CardChangedEvent.kt +3 -0
- package/android/src/main/java/com/reactnativestripesdk/Constants.kt +0 -1
- package/android/src/main/java/com/reactnativestripesdk/Errors.kt +2 -2
- package/android/src/main/java/com/reactnativestripesdk/Mappers.kt +33 -22
- package/android/src/main/java/com/reactnativestripesdk/PaymentSheetFragment.kt +3 -4
- package/android/src/main/java/com/reactnativestripesdk/StripeSdkCardView.kt +7 -2
- package/android/src/main/java/com/reactnativestripesdk/StripeSdkModule.kt +53 -18
- package/ios/CardFieldView.swift +7 -1
- package/ios/Mappers.swift +103 -83
- package/ios/StripeSdk.swift +49 -5
- package/lib/commonjs/NativeStripeSdk.js.map +1 -1
- package/lib/commonjs/components/AuBECSDebitForm.js +1 -1
- package/lib/commonjs/components/AuBECSDebitForm.js.map +1 -1
- package/lib/commonjs/components/CardField.js +1 -1
- package/lib/commonjs/components/CardField.js.map +1 -1
- package/lib/commonjs/components/StripeProvider.js +1 -1
- package/lib/commonjs/components/StripeProvider.js.map +1 -1
- package/lib/commonjs/functions.js +1 -1
- package/lib/commonjs/functions.js.map +1 -1
- package/lib/commonjs/hooks/useApplePay.js +1 -1
- package/lib/commonjs/hooks/useApplePay.js.map +1 -1
- package/lib/commonjs/hooks/usePaymentSheet.js +1 -1
- package/lib/commonjs/hooks/usePaymentSheet.js.map +1 -1
- package/lib/commonjs/hooks/useStripe.js.map +1 -1
- package/lib/commonjs/types/Card.js.map +1 -1
- package/lib/commonjs/types/GooglePay.js.map +1 -1
- package/lib/commonjs/types/components/CardFieldInput.js +1 -1
- package/lib/commonjs/types/components/CardFieldInput.js.map +1 -1
- package/lib/commonjs/types/index.js.map +1 -1
- package/lib/module/NativeStripeSdk.js.map +1 -1
- package/lib/module/components/AuBECSDebitForm.js +1 -1
- package/lib/module/components/AuBECSDebitForm.js.map +1 -1
- package/lib/module/components/CardField.js +1 -1
- package/lib/module/components/CardField.js.map +1 -1
- package/lib/module/components/StripeProvider.js +1 -1
- package/lib/module/components/StripeProvider.js.map +1 -1
- package/lib/module/functions.js +1 -1
- package/lib/module/functions.js.map +1 -1
- package/lib/module/hooks/useApplePay.js +1 -1
- package/lib/module/hooks/useApplePay.js.map +1 -1
- package/lib/module/hooks/usePaymentSheet.js +1 -1
- package/lib/module/hooks/usePaymentSheet.js.map +1 -1
- package/lib/module/hooks/useStripe.js.map +1 -1
- package/lib/module/types/Card.js.map +1 -1
- package/lib/module/types/GooglePay.js.map +1 -1
- package/lib/module/types/components/CardFieldInput.js +1 -1
- package/lib/module/types/components/CardFieldInput.js.map +1 -1
- package/lib/module/types/index.js.map +1 -1
- package/lib/typescript/e2e/helpers.d.ts +1 -0
- package/lib/typescript/e2e/{payments.test.android.d.ts → paymentsWithRedirects.test.d.ts} +0 -0
- package/lib/typescript/example/src/App.d.ts +39 -1
- package/lib/typescript/example/src/screens/HomeScreen.d.ts +0 -5
- package/lib/typescript/example/src/screens/PaymentResultScreen.d.ts +1 -1
- package/lib/typescript/src/NativeStripeSdk.d.ts +2 -2
- package/lib/typescript/src/components/StripeProvider.d.ts +1 -1
- package/lib/typescript/src/functions.d.ts +2 -3
- package/lib/typescript/src/hooks/useStripe.d.ts +2 -2
- package/lib/typescript/src/types/Card.d.ts +0 -5
- package/lib/typescript/src/types/GooglePay.d.ts +1 -1
- package/lib/typescript/src/types/PaymentSheet.d.ts +2 -0
- package/lib/typescript/src/types/components/CardFieldInput.d.ts +9 -0
- package/lib/typescript/src/types/index.d.ts +16 -0
- package/package.json +7 -6
- package/src/NativeStripeSdk.tsx +2 -2
- package/src/components/CardField.tsx +3 -0
- package/src/components/StripeProvider.tsx +1 -1
- package/src/functions.ts +2 -2
- package/src/hooks/useApplePay.tsx +4 -10
- package/src/hooks/useStripe.tsx +2 -2
- package/src/types/Card.ts +0 -6
- package/src/types/GooglePay.ts +1 -1
- package/src/types/PaymentSheet.ts +2 -0
- package/src/types/components/CardFieldInput.ts +9 -0
- package/src/types/index.ts +22 -0
- package/stripe-react-native.podspec +13 -15
- package/android/build/.transforms/62198f0e8486e525993aebfb57e3c70b/classes/classes.dex +0 -0
- package/android/build/.transforms/63a0deef207f9b16b121fda410ea7437/debug/com/reactnativestripesdk/CardChangedEvent$Companion.dex +0 -0
- package/android/build/.transforms/63a0deef207f9b16b121fda410ea7437/debug/com/reactnativestripesdk/CardChangedEvent.dex +0 -0
- package/android/build/.transforms/63a0deef207f9b16b121fda410ea7437/debug/com/reactnativestripesdk/GooglePayFragment.dex +0 -0
- package/android/build/.transforms/63a0deef207f9b16b121fda410ea7437/debug/com/reactnativestripesdk/MappersKt.dex +0 -0
- package/android/build/.transforms/63a0deef207f9b16b121fda410ea7437/debug/com/reactnativestripesdk/PaymentSheetFragment$onViewCreated$paymentOptionCallback$1.dex +0 -0
- package/android/build/.transforms/63a0deef207f9b16b121fda410ea7437/debug/com/reactnativestripesdk/PaymentSheetFragment.dex +0 -0
- package/android/build/.transforms/63a0deef207f9b16b121fda410ea7437/debug/com/reactnativestripesdk/StripeSdkCardView$setListeners$2.dex +0 -0
- package/android/build/.transforms/63a0deef207f9b16b121fda410ea7437/debug/com/reactnativestripesdk/StripeSdkCardView$setListeners$6.dex +0 -0
- package/android/build/.transforms/63a0deef207f9b16b121fda410ea7437/debug/com/reactnativestripesdk/StripeSdkCardView.dex +0 -0
- package/android/build/.transforms/8c7cefa1dcfb0baa172d019362b38cee/debug/com/reactnativestripesdk/AuBECSDebitFormView$setListeners$1.dex +0 -0
- package/android/build/.transforms/8c7cefa1dcfb0baa172d019362b38cee/debug/com/reactnativestripesdk/AuBECSDebitFormView.dex +0 -0
- package/android/build/.transforms/8c7cefa1dcfb0baa172d019362b38cee/debug/com/reactnativestripesdk/AuBECSDebitFormViewManager.dex +0 -0
- package/android/build/.transforms/8c7cefa1dcfb0baa172d019362b38cee/debug/com/reactnativestripesdk/BuildConfig.dex +0 -0
- package/android/build/.transforms/8c7cefa1dcfb0baa172d019362b38cee/debug/com/reactnativestripesdk/CardFocusEvent$Companion.dex +0 -0
- package/android/build/.transforms/8c7cefa1dcfb0baa172d019362b38cee/debug/com/reactnativestripesdk/CardFocusEvent.dex +0 -0
- package/android/build/.transforms/8c7cefa1dcfb0baa172d019362b38cee/debug/com/reactnativestripesdk/CardFormCompleteEvent$Companion.dex +0 -0
- package/android/build/.transforms/8c7cefa1dcfb0baa172d019362b38cee/debug/com/reactnativestripesdk/CardFormCompleteEvent.dex +0 -0
- package/android/build/.transforms/8c7cefa1dcfb0baa172d019362b38cee/debug/com/reactnativestripesdk/CardFormView.dex +0 -0
- package/android/build/.transforms/8c7cefa1dcfb0baa172d019362b38cee/debug/com/reactnativestripesdk/CardFormViewManager.dex +0 -0
- package/android/build/.transforms/8c7cefa1dcfb0baa172d019362b38cee/debug/com/reactnativestripesdk/ConfirmPaymentErrorType.dex +0 -0
- package/android/build/.transforms/8c7cefa1dcfb0baa172d019362b38cee/debug/com/reactnativestripesdk/ConfirmSetupIntentErrorType.dex +0 -0
- package/android/build/.transforms/8c7cefa1dcfb0baa172d019362b38cee/debug/com/reactnativestripesdk/ConstantsKt.dex +0 -0
- package/android/build/.transforms/8c7cefa1dcfb0baa172d019362b38cee/debug/com/reactnativestripesdk/CreateTokenErrorType.dex +0 -0
- package/android/build/.transforms/8c7cefa1dcfb0baa172d019362b38cee/debug/com/reactnativestripesdk/ErrorsKt.dex +0 -0
- package/android/build/.transforms/8c7cefa1dcfb0baa172d019362b38cee/debug/com/reactnativestripesdk/ExtensionsKt.dex +0 -0
- package/android/build/.transforms/8c7cefa1dcfb0baa172d019362b38cee/debug/com/reactnativestripesdk/FormCompleteEvent$Companion.dex +0 -0
- package/android/build/.transforms/8c7cefa1dcfb0baa172d019362b38cee/debug/com/reactnativestripesdk/FormCompleteEvent.dex +0 -0
- package/android/build/.transforms/8c7cefa1dcfb0baa172d019362b38cee/debug/com/reactnativestripesdk/GooglePayButtonManager$Companion.dex +0 -0
- package/android/build/.transforms/8c7cefa1dcfb0baa172d019362b38cee/debug/com/reactnativestripesdk/GooglePayButtonManager.dex +0 -0
- package/android/build/.transforms/8c7cefa1dcfb0baa172d019362b38cee/debug/com/reactnativestripesdk/GooglePayButtonView.dex +0 -0
- package/android/build/.transforms/8c7cefa1dcfb0baa172d019362b38cee/debug/com/reactnativestripesdk/GooglePayErrorType.dex +0 -0
- package/android/build/.transforms/8c7cefa1dcfb0baa172d019362b38cee/debug/com/reactnativestripesdk/GooglePayFragment$onViewCreated$1.dex +0 -0
- package/android/build/.transforms/8c7cefa1dcfb0baa172d019362b38cee/debug/com/reactnativestripesdk/GooglePayFragment$onViewCreated$2.dex +0 -0
- package/android/build/.transforms/8c7cefa1dcfb0baa172d019362b38cee/debug/com/reactnativestripesdk/GooglePayFragment$onViewCreated$3.dex +0 -0
- package/android/build/.transforms/8c7cefa1dcfb0baa172d019362b38cee/debug/com/reactnativestripesdk/GooglePayFragment$onViewCreated$4.dex +0 -0
- package/android/build/.transforms/8c7cefa1dcfb0baa172d019362b38cee/debug/com/reactnativestripesdk/GooglePayFragment.dex +0 -0
- package/android/build/.transforms/8c7cefa1dcfb0baa172d019362b38cee/debug/com/reactnativestripesdk/MappersKt$WhenMappings.dex +0 -0
- package/android/build/.transforms/8c7cefa1dcfb0baa172d019362b38cee/debug/com/reactnativestripesdk/MappersKt.dex +0 -0
- package/android/build/.transforms/8c7cefa1dcfb0baa172d019362b38cee/debug/com/reactnativestripesdk/NextPaymentActionErrorType.dex +0 -0
- package/android/build/.transforms/8c7cefa1dcfb0baa172d019362b38cee/debug/com/reactnativestripesdk/PaymentMethodCreateParamsException.dex +0 -0
- package/android/build/.transforms/8c7cefa1dcfb0baa172d019362b38cee/debug/com/reactnativestripesdk/PaymentMethodCreateParamsFactory$WhenMappings.dex +0 -0
- package/android/build/.transforms/8c7cefa1dcfb0baa172d019362b38cee/debug/com/reactnativestripesdk/PaymentMethodCreateParamsFactory.dex +0 -0
- package/android/build/.transforms/8c7cefa1dcfb0baa172d019362b38cee/debug/com/reactnativestripesdk/PaymentSheetErrorType.dex +0 -0
- package/android/build/.transforms/8c7cefa1dcfb0baa172d019362b38cee/debug/com/reactnativestripesdk/PaymentSheetFragment$configureFlowController$onFlowControllerConfigure$1.dex +0 -0
- package/android/build/.transforms/8c7cefa1dcfb0baa172d019362b38cee/debug/com/reactnativestripesdk/PaymentSheetFragment$onViewCreated$paymentResultCallback$1.dex +0 -0
- package/android/build/.transforms/8c7cefa1dcfb0baa172d019362b38cee/debug/com/reactnativestripesdk/PaymentSheetFragment.dex +0 -0
- package/android/build/.transforms/8c7cefa1dcfb0baa172d019362b38cee/debug/com/reactnativestripesdk/PaymentSheetFragmentKt.dex +0 -0
- package/android/build/.transforms/8c7cefa1dcfb0baa172d019362b38cee/debug/com/reactnativestripesdk/RetrievePaymentIntentErrorType.dex +0 -0
- package/android/build/.transforms/8c7cefa1dcfb0baa172d019362b38cee/debug/com/reactnativestripesdk/RetrieveSetupIntentErrorType.dex +0 -0
- package/android/build/.transforms/8c7cefa1dcfb0baa172d019362b38cee/debug/com/reactnativestripesdk/StripeContainerManager.dex +0 -0
- package/android/build/.transforms/8c7cefa1dcfb0baa172d019362b38cee/debug/com/reactnativestripesdk/StripeContainerView.dex +0 -0
- package/android/build/.transforms/8c7cefa1dcfb0baa172d019362b38cee/debug/com/reactnativestripesdk/StripeSdkCardView$setListeners$3.dex +0 -0
- package/android/build/.transforms/8c7cefa1dcfb0baa172d019362b38cee/debug/com/reactnativestripesdk/StripeSdkCardView$setListeners$4.dex +0 -0
- package/android/build/.transforms/8c7cefa1dcfb0baa172d019362b38cee/debug/com/reactnativestripesdk/StripeSdkCardView$setListeners$5.dex +0 -0
- package/android/build/.transforms/8c7cefa1dcfb0baa172d019362b38cee/debug/com/reactnativestripesdk/StripeSdkCardView.dex +0 -0
- package/android/build/.transforms/8c7cefa1dcfb0baa172d019362b38cee/debug/com/reactnativestripesdk/StripeSdkCardViewManager.dex +0 -0
- package/android/build/.transforms/8c7cefa1dcfb0baa172d019362b38cee/debug/com/reactnativestripesdk/StripeSdkModule$Companion.dex +0 -0
- package/android/build/.transforms/8c7cefa1dcfb0baa172d019362b38cee/debug/com/reactnativestripesdk/StripeSdkModule$createPaymentMethod$1.dex +0 -0
- package/android/build/.transforms/8c7cefa1dcfb0baa172d019362b38cee/debug/com/reactnativestripesdk/StripeSdkModule$createToken$1.dex +0 -0
- package/android/build/.transforms/8c7cefa1dcfb0baa172d019362b38cee/debug/com/reactnativestripesdk/StripeSdkModule$createTokenForCVCUpdate$1.dex +0 -0
- package/android/build/.transforms/8c7cefa1dcfb0baa172d019362b38cee/debug/com/reactnativestripesdk/StripeSdkModule$googlePayReceiver$1.dex +0 -0
- package/android/build/.transforms/8c7cefa1dcfb0baa172d019362b38cee/debug/com/reactnativestripesdk/StripeSdkModule$mActivityEventListener$1$onActivityResult$2$WhenMappings.dex +0 -0
- package/android/build/.transforms/8c7cefa1dcfb0baa172d019362b38cee/debug/com/reactnativestripesdk/StripeSdkModule$mActivityEventListener$1$onActivityResult$2.dex +0 -0
- package/android/build/.transforms/8c7cefa1dcfb0baa172d019362b38cee/debug/com/reactnativestripesdk/StripeSdkModule$mActivityEventListener$1$onActivityResult$3$WhenMappings.dex +0 -0
- package/android/build/.transforms/8c7cefa1dcfb0baa172d019362b38cee/debug/com/reactnativestripesdk/StripeSdkModule$mActivityEventListener$1$onActivityResult$3.dex +0 -0
- package/android/build/.transforms/8c7cefa1dcfb0baa172d019362b38cee/debug/com/reactnativestripesdk/StripeSdkModule$mActivityEventListener$1.dex +0 -0
- package/android/build/.transforms/8c7cefa1dcfb0baa172d019362b38cee/debug/com/reactnativestripesdk/StripeSdkModule$mPaymentSheetReceiver$1.dex +0 -0
- package/android/build/.transforms/8c7cefa1dcfb0baa172d019362b38cee/debug/com/reactnativestripesdk/StripeSdkModule$payWithWeChatPay$1.dex +0 -0
- package/android/build/.transforms/8c7cefa1dcfb0baa172d019362b38cee/debug/com/reactnativestripesdk/StripeSdkModule.dex +0 -0
- package/android/build/.transforms/8c7cefa1dcfb0baa172d019362b38cee/debug/com/reactnativestripesdk/StripeSdkPackage.dex +0 -0
- package/android/build/.transforms/8c7cefa1dcfb0baa172d019362b38cee/debug/com/reactnativestripesdk/databinding/GooglepayButtonBinding.dex +0 -0
- package/android/build/.transforms/8c7cefa1dcfb0baa172d019362b38cee/debug/com/reactnativestripesdk/databinding/GooglepayButtonNoShadowBinding.dex +0 -0
- package/android/build/.transforms/8c7cefa1dcfb0baa172d019362b38cee/debug/com/reactnativestripesdk/databinding/PayWithGooglepayButtonBinding.dex +0 -0
- package/android/build/.transforms/8c7cefa1dcfb0baa172d019362b38cee/debug/com/reactnativestripesdk/databinding/PayWithGooglepayButtonNoShadowBinding.dex +0 -0
- package/android/build/.transforms/8c7cefa1dcfb0baa172d019362b38cee/desugar_graph.bin +0 -0
- package/android/build/.transforms/8c7cefa1dcfb0baa172d019362b38cee.bin +0 -1
- package/android/build/.transforms/e51b77015a99a8525e73c9b65b4edf1b/classes/classes.dex +0 -0
- package/android/build/.transforms/e51b77015a99a8525e73c9b65b4edf1b.bin +0 -1
- package/android/build/.transforms/f2382343f042fcbb63366bbba54ca828/classes/classes.dex +0 -0
- package/android/build/.transforms/f2382343f042fcbb63366bbba54ca828.bin +0 -1
- package/android/build/intermediates/library_manifest/debug/AndroidManifest.xml +0 -11
- package/android/build/intermediates/runtime_library_classes_jar/debug/classes.jar +0 -0
- package/android/build/kotlin/compileDebugKotlin/caches-jvm/inputs/source-to-output.tab.values +0 -0
- package/android/build/kotlin/compileDebugKotlin/caches-jvm/inputs/source-to-output.tab.values.s +0 -1
- package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/internal-name-to-source.tab.values +0 -0
- package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/internal-name-to-source.tab.values.s +0 -1
- package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/java-sources-proto-map.tab.keystream.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/java-sources-proto-map.tab.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/java-sources-proto-map.tab.values.at +0 -0
- package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/java-sources-proto-map.tab_i +0 -0
- package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/java-sources-proto-map.tab_i.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/proto.tab.values +0 -0
- package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/proto.tab.values.s +0 -1
|
@@ -1,2 +1,40 @@
|
|
|
1
|
-
|
|
1
|
+
export declare type RootStackParamList = {
|
|
2
|
+
WebhookPaymentScreen: undefined;
|
|
3
|
+
HomeScreen: undefined;
|
|
4
|
+
NoWebhookPaymentScreen: undefined;
|
|
5
|
+
ApplePayScreen: undefined;
|
|
6
|
+
SetupFuturePaymentScreen: undefined;
|
|
7
|
+
PaymentsUICompleteScreen: undefined;
|
|
8
|
+
PaymentsUICustomScreen: undefined;
|
|
9
|
+
CVCReCollectionScreen: undefined;
|
|
10
|
+
IdealPaymentScreen: undefined;
|
|
11
|
+
IdealSetupFuturePaymentScreen: undefined;
|
|
12
|
+
AlipayPaymentScreen: undefined;
|
|
13
|
+
PaymentResultScreen: {
|
|
14
|
+
url: string;
|
|
15
|
+
};
|
|
16
|
+
SofortPaymentScreen: undefined;
|
|
17
|
+
SofortSetupFuturePaymentScreen: undefined;
|
|
18
|
+
FPXPaymentScreen: undefined;
|
|
19
|
+
BancontactPaymentScreen: undefined;
|
|
20
|
+
BancontactSetupFuturePaymentScreen: undefined;
|
|
21
|
+
SepaPaymentScreen: undefined;
|
|
22
|
+
SepaSetupFuturePaymentScreen: undefined;
|
|
23
|
+
OxxoPaymentScreen: undefined;
|
|
24
|
+
GiropayPaymentScreen: undefined;
|
|
25
|
+
EPSPaymentScreen: undefined;
|
|
26
|
+
GrabPayPaymentScreen: undefined;
|
|
27
|
+
P24PaymentScreen: undefined;
|
|
28
|
+
AuBECSDebitPaymentScreen: undefined;
|
|
29
|
+
AfterpayClearpayPaymentScreen: undefined;
|
|
30
|
+
AuBECSDebitSetupPaymentScreen: undefined;
|
|
31
|
+
MultilineWebhookPaymentScreen: undefined;
|
|
32
|
+
GooglePayScreen: undefined;
|
|
33
|
+
};
|
|
34
|
+
declare global {
|
|
35
|
+
namespace ReactNavigation {
|
|
36
|
+
interface RootParamList extends RootStackParamList {
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
}
|
|
2
40
|
export default function App(): JSX.Element;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { RouteProp } from '@react-navigation/native';
|
|
2
|
-
import type { RootStackParamList } from '
|
|
2
|
+
import type { RootStackParamList } from '../App';
|
|
3
3
|
declare type ScreenRouteProp = RouteProp<RootStackParamList, 'PaymentResultScreen'>;
|
|
4
4
|
declare type Props = {
|
|
5
5
|
route: ScreenRouteProp;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { PaymentMethodCreateParams, ApplePay, PaymentSheet, ConfirmSetupIntent, InitialiseParams, CreatePaymentMethodResult, RetrievePaymentIntentResult, RetrieveSetupIntentResult, ConfirmPaymentResult, HandleCardActionResult, ConfirmSetupIntentResult, CreateTokenForCVCUpdateResult, InitPaymentSheetResult, PresentPaymentSheetResult, ConfirmPaymentSheetPaymentResult,
|
|
1
|
+
import type { PaymentMethodCreateParams, ApplePay, PaymentSheet, ConfirmSetupIntent, InitialiseParams, CreatePaymentMethodResult, RetrievePaymentIntentResult, RetrieveSetupIntentResult, ConfirmPaymentResult, HandleCardActionResult, ConfirmSetupIntentResult, CreateTokenForCVCUpdateResult, InitPaymentSheetResult, PresentPaymentSheetResult, ConfirmPaymentSheetPaymentResult, ApplePayResult, CreateTokenResult, GooglePayInitResult, PayWithGooglePayResult, CreateGooglePayPaymentMethodResult, GooglePay, OpenApplePaySetupResult, CreateTokenParams } from './types';
|
|
2
2
|
declare type NativeStripeSdkType = {
|
|
3
3
|
initialise(params: InitialiseParams): Promise<void>;
|
|
4
4
|
createPaymentMethod(data: PaymentMethodCreateParams.Params, options: PaymentMethodCreateParams.Options): Promise<CreatePaymentMethodResult>;
|
|
@@ -19,7 +19,7 @@ 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:
|
|
22
|
+
createToken(params: CreateTokenParams): Promise<CreateTokenResult>;
|
|
23
23
|
initGooglePay(params: GooglePay.InitParams): Promise<GooglePayInitResult>;
|
|
24
24
|
presentGooglePay(params: GooglePay.PresentGooglePayParams): Promise<PayWithGooglePayResult>;
|
|
25
25
|
createGooglePayPaymentMethod(params: GooglePay.CreatePaymentMethodParams): Promise<CreateGooglePayPaymentMethodResult>;
|
|
@@ -33,4 +33,4 @@ export declare const initStripe: (params: InitStripeParams) => Promise<void>;
|
|
|
33
33
|
* @returns JSX.Element
|
|
34
34
|
* @category ReactComponents
|
|
35
35
|
*/
|
|
36
|
-
export declare function StripeProvider({ children, publishableKey, merchantIdentifier, threeDSecureParams, stripeAccountId, urlScheme, setUrlSchemeOnAndroid, }: Props):
|
|
36
|
+
export declare function StripeProvider({ children, publishableKey, merchantIdentifier, threeDSecureParams, stripeAccountId, urlScheme, setUrlSchemeOnAndroid, }: Props): JSX.Element;
|
|
@@ -1,7 +1,6 @@
|
|
|
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 } from './types';
|
|
2
|
-
import type { Card } from './types/Card';
|
|
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';
|
|
3
2
|
export declare const createPaymentMethod: (data: PaymentMethodCreateParams.Params, options?: PaymentMethodCreateParams.Options) => Promise<CreatePaymentMethodResult>;
|
|
4
|
-
export declare const createToken: (params:
|
|
3
|
+
export declare const createToken: (params: CreateTokenParams) => Promise<CreateTokenResult>;
|
|
5
4
|
export declare const retrievePaymentIntent: (clientSecret: string) => Promise<RetrievePaymentIntentResult>;
|
|
6
5
|
export declare const retrieveSetupIntent: (clientSecret: string) => Promise<RetrieveSetupIntentResult>;
|
|
7
6
|
export declare const confirmPayment: (paymentIntentClientSecret: string, data: PaymentMethodCreateParams.Params, options?: PaymentMethodCreateParams.Options) => Promise<ConfirmPaymentResult>;
|
|
@@ -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,
|
|
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';
|
|
2
2
|
/**
|
|
3
3
|
* useStripe hook
|
|
4
4
|
*/
|
|
@@ -25,7 +25,7 @@ export declare function useStripe(): {
|
|
|
25
25
|
confirmPaymentSheetPayment: () => Promise<ConfirmPaymentSheetPaymentResult>;
|
|
26
26
|
presentPaymentSheet: () => Promise<PresentPaymentSheetResult>;
|
|
27
27
|
initPaymentSheet: (params: PaymentSheet.SetupParams) => Promise<InitPaymentSheetResult>;
|
|
28
|
-
createToken: (params:
|
|
28
|
+
createToken: (params: CreateTokenParams) => Promise<CreateTokenResult>;
|
|
29
29
|
initGooglePay: (params: GooglePay.InitParams) => Promise<GooglePayInitResult>;
|
|
30
30
|
presentGooglePay: (params: GooglePay.PresentGooglePayParams) => Promise<PayWithGooglePayResult>;
|
|
31
31
|
createGooglePayPaymentMethod: (params: GooglePay.CreatePaymentMethodParams) => Promise<CreateGooglePayPaymentMethodResult>;
|
|
@@ -29,7 +29,7 @@ export declare namespace GooglePay {
|
|
|
29
29
|
* If `true`, Google Pay is considered ready if the customer's Google Pay wallet
|
|
30
30
|
* has existing payment methods.
|
|
31
31
|
*
|
|
32
|
-
* Default to `
|
|
32
|
+
* Default to `false`.
|
|
33
33
|
*/
|
|
34
34
|
existingPaymentMethodRequired?: boolean;
|
|
35
35
|
}
|
|
@@ -27,10 +27,12 @@ export declare namespace PaymentSheet {
|
|
|
27
27
|
type GooglePayParams = {
|
|
28
28
|
googlePay?: true;
|
|
29
29
|
merchantCountryCode: string;
|
|
30
|
+
currencyCode?: string;
|
|
30
31
|
testEnv?: boolean;
|
|
31
32
|
} | {
|
|
32
33
|
googlePay?: false;
|
|
33
34
|
merchantCountryCode?: string;
|
|
35
|
+
currencyCode?: string;
|
|
34
36
|
testEnv?: boolean;
|
|
35
37
|
};
|
|
36
38
|
interface Address {
|
|
@@ -3,6 +3,12 @@ import type { Nullable } from '../';
|
|
|
3
3
|
import type { Card } from '../Card';
|
|
4
4
|
export declare namespace CardFieldInput {
|
|
5
5
|
type Names = 'CardNumber' | 'Cvc' | 'ExpiryDate' | 'PostalCode';
|
|
6
|
+
enum ValidationState {
|
|
7
|
+
Valid = "Valid",
|
|
8
|
+
Invalid = "Invalid",
|
|
9
|
+
Incomplete = "Incomplete",
|
|
10
|
+
Unknown = "Unknown"
|
|
11
|
+
}
|
|
6
12
|
interface Details {
|
|
7
13
|
last4: string;
|
|
8
14
|
expiryMonth: number;
|
|
@@ -10,6 +16,9 @@ export declare namespace CardFieldInput {
|
|
|
10
16
|
postalCode?: string;
|
|
11
17
|
brand: Card.Brand;
|
|
12
18
|
complete: boolean;
|
|
19
|
+
validExpiryDate: ValidationState;
|
|
20
|
+
validCVC: ValidationState;
|
|
21
|
+
validNumber: ValidationState;
|
|
13
22
|
/**
|
|
14
23
|
* WARNING: Full card details are only returned when the `dangerouslyGetFullCardDetails` prop
|
|
15
24
|
* on the `CardField` component is set to `true`.
|
|
@@ -150,3 +150,19 @@ export declare type OpenApplePaySetupResult = {
|
|
|
150
150
|
} | {
|
|
151
151
|
error: StripeError<ApplePayError>;
|
|
152
152
|
};
|
|
153
|
+
export declare type CreateTokenParams = CreateTokenCardParams | CreateTokenBankAccountParams;
|
|
154
|
+
export declare type CreateTokenCardParams = {
|
|
155
|
+
type: 'Card';
|
|
156
|
+
address?: Card.Address;
|
|
157
|
+
name?: string;
|
|
158
|
+
};
|
|
159
|
+
export declare type BankAcccountHolderType = 'Company' | 'Individual';
|
|
160
|
+
export declare type CreateTokenBankAccountParams = {
|
|
161
|
+
type: 'BankAccount';
|
|
162
|
+
accountHolderName?: string;
|
|
163
|
+
accountHolderType?: BankAcccountHolderType;
|
|
164
|
+
accountNumber: string;
|
|
165
|
+
country: string;
|
|
166
|
+
currency: string;
|
|
167
|
+
routingNumber?: string;
|
|
168
|
+
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stripe/stripe-react-native",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.4",
|
|
4
4
|
"author": "Stripe",
|
|
5
5
|
"description": "Stripe SDK for React Native",
|
|
6
6
|
"main": "lib/commonjs/index",
|
|
@@ -60,21 +60,22 @@
|
|
|
60
60
|
"@wdio/mocha-framework": "^7.5.3",
|
|
61
61
|
"@wdio/spec-reporter": "^7.5.7",
|
|
62
62
|
"@wdio/sync": "^7.5.7",
|
|
63
|
-
"appium": "^1.
|
|
63
|
+
"appium": "^1.22.1",
|
|
64
64
|
"appium-chromedriver": "4.26.2",
|
|
65
65
|
"appium-doctor": "^1.16.0",
|
|
66
66
|
"commitlint": "^8.3.5",
|
|
67
|
-
"eslint": "^7.
|
|
67
|
+
"eslint": "^7.14.0",
|
|
68
68
|
"eslint-config-prettier": "^6.11.0",
|
|
69
69
|
"eslint-plugin-prettier": "^3.1.3",
|
|
70
70
|
"expect-webdriverio": "^2.0.1",
|
|
71
71
|
"husky": "^4.2.5",
|
|
72
|
-
"jest": "^26.
|
|
72
|
+
"jest": "^26.6.3",
|
|
73
|
+
"metro-react-native-babel-preset": "^0.67.0",
|
|
73
74
|
"mocha": "^8.3.2",
|
|
74
75
|
"pod-install": "^0.1.0",
|
|
75
76
|
"prettier": "^2.0.5",
|
|
76
|
-
"react": "
|
|
77
|
-
"react-native": "0.
|
|
77
|
+
"react": "17.0.2",
|
|
78
|
+
"react-native": "0.66.4",
|
|
78
79
|
"release-it": "^13.5.8",
|
|
79
80
|
"ts-node": "^9.1.1",
|
|
80
81
|
"typedoc": "^0.21.5",
|
package/src/NativeStripeSdk.tsx
CHANGED
|
@@ -15,7 +15,6 @@ import type {
|
|
|
15
15
|
InitPaymentSheetResult,
|
|
16
16
|
PresentPaymentSheetResult,
|
|
17
17
|
ConfirmPaymentSheetPaymentResult,
|
|
18
|
-
Card,
|
|
19
18
|
ApplePayResult,
|
|
20
19
|
CreateTokenResult,
|
|
21
20
|
GooglePayInitResult,
|
|
@@ -23,6 +22,7 @@ import type {
|
|
|
23
22
|
CreateGooglePayPaymentMethodResult,
|
|
24
23
|
GooglePay,
|
|
25
24
|
OpenApplePaySetupResult,
|
|
25
|
+
CreateTokenParams,
|
|
26
26
|
} from './types';
|
|
27
27
|
|
|
28
28
|
type NativeStripeSdkType = {
|
|
@@ -65,7 +65,7 @@ type NativeStripeSdkType = {
|
|
|
65
65
|
confirmPaymentSheetPayment(): Promise<ConfirmPaymentSheetPaymentResult>;
|
|
66
66
|
createTokenForCVCUpdate(cvc: string): Promise<CreateTokenForCVCUpdateResult>;
|
|
67
67
|
handleURLCallback(url: string): Promise<boolean>;
|
|
68
|
-
createToken(params:
|
|
68
|
+
createToken(params: CreateTokenParams): Promise<CreateTokenResult>;
|
|
69
69
|
initGooglePay(params: GooglePay.InitParams): Promise<GooglePayInitResult>;
|
|
70
70
|
presentGooglePay(
|
|
71
71
|
params: GooglePay.PresentGooglePayParams
|
|
@@ -90,6 +90,9 @@ export const CardField = forwardRef<CardFieldInput.Methods, Props>(
|
|
|
90
90
|
expiryYear: card.expiryYear,
|
|
91
91
|
complete: card.complete,
|
|
92
92
|
brand: card.brand,
|
|
93
|
+
validExpiryDate: card.validExpiryDate,
|
|
94
|
+
validNumber: card.validNumber,
|
|
95
|
+
validCVC: card.validCVC,
|
|
93
96
|
};
|
|
94
97
|
|
|
95
98
|
if (card.hasOwnProperty('postalCode')) {
|
package/src/functions.ts
CHANGED
|
@@ -24,8 +24,8 @@ import {
|
|
|
24
24
|
GooglePay,
|
|
25
25
|
CreateGooglePayPaymentMethodResult,
|
|
26
26
|
OpenApplePaySetupResult,
|
|
27
|
+
CreateTokenParams,
|
|
27
28
|
} from './types';
|
|
28
|
-
import type { Card } from './types/Card';
|
|
29
29
|
|
|
30
30
|
const APPLE_PAY_NOT_SUPPORTED_MESSAGE =
|
|
31
31
|
'Apple pay is not supported on this device';
|
|
@@ -55,7 +55,7 @@ export const createPaymentMethod = async (
|
|
|
55
55
|
};
|
|
56
56
|
|
|
57
57
|
export const createToken = async (
|
|
58
|
-
params:
|
|
58
|
+
params: CreateTokenParams
|
|
59
59
|
): Promise<CreateTokenResult> => {
|
|
60
60
|
try {
|
|
61
61
|
const { token, error } = await NativeStripeSdk.createToken(params);
|
|
@@ -105,24 +105,18 @@ export function useApplePay({
|
|
|
105
105
|
);
|
|
106
106
|
|
|
107
107
|
useEffect(() => {
|
|
108
|
-
eventEmitter.addListener(
|
|
108
|
+
const didSetShippingMethodListener = eventEmitter.addListener(
|
|
109
109
|
SET_SHIPPING_METHOD_CALLBACK_NAME,
|
|
110
110
|
onDidSetShippingMethod
|
|
111
111
|
);
|
|
112
|
-
eventEmitter.addListener(
|
|
112
|
+
const didSetShippingContactListener = eventEmitter.addListener(
|
|
113
113
|
SET_SHIPPING_CONTACT_CALLBACK_NAME,
|
|
114
114
|
onDidSetShippingContact
|
|
115
115
|
);
|
|
116
116
|
|
|
117
117
|
return () => {
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
onDidSetShippingMethod
|
|
121
|
-
);
|
|
122
|
-
eventEmitter.removeListener(
|
|
123
|
-
SET_SHIPPING_CONTACT_CALLBACK_NAME,
|
|
124
|
-
onDidSetShippingContact
|
|
125
|
-
);
|
|
118
|
+
didSetShippingMethodListener.remove();
|
|
119
|
+
didSetShippingContactListener.remove();
|
|
126
120
|
};
|
|
127
121
|
}, [onDidSetShippingContact, onDidSetShippingMethod]);
|
|
128
122
|
|
package/src/hooks/useStripe.tsx
CHANGED
|
@@ -17,12 +17,12 @@ import type {
|
|
|
17
17
|
ConfirmPaymentSheetPaymentResult,
|
|
18
18
|
ConfirmSetupIntent,
|
|
19
19
|
CreateTokenResult,
|
|
20
|
-
Card,
|
|
21
20
|
PayWithGooglePayResult,
|
|
22
21
|
GooglePayInitResult,
|
|
23
22
|
GooglePay,
|
|
24
23
|
CreateGooglePayPaymentMethodResult,
|
|
25
24
|
OpenApplePaySetupResult,
|
|
25
|
+
CreateTokenParams,
|
|
26
26
|
} from '../types';
|
|
27
27
|
import { useCallback, useEffect, useState } from 'react';
|
|
28
28
|
import { isiOS } from '../helpers';
|
|
@@ -78,7 +78,7 @@ export function useStripe() {
|
|
|
78
78
|
);
|
|
79
79
|
|
|
80
80
|
const _createToken = useCallback(
|
|
81
|
-
async (params:
|
|
81
|
+
async (params: CreateTokenParams): Promise<CreateTokenResult> => {
|
|
82
82
|
return createToken(params);
|
|
83
83
|
},
|
|
84
84
|
[]
|
package/src/types/Card.ts
CHANGED
package/src/types/GooglePay.ts
CHANGED
|
@@ -37,11 +37,13 @@ export declare namespace PaymentSheet {
|
|
|
37
37
|
| {
|
|
38
38
|
googlePay?: true;
|
|
39
39
|
merchantCountryCode: string;
|
|
40
|
+
currencyCode?: string;
|
|
40
41
|
testEnv?: boolean;
|
|
41
42
|
}
|
|
42
43
|
| {
|
|
43
44
|
googlePay?: false;
|
|
44
45
|
merchantCountryCode?: string;
|
|
46
|
+
currencyCode?: string;
|
|
45
47
|
testEnv?: boolean;
|
|
46
48
|
};
|
|
47
49
|
export interface Address {
|
|
@@ -4,6 +4,12 @@ import type { Card } from '../Card';
|
|
|
4
4
|
|
|
5
5
|
export namespace CardFieldInput {
|
|
6
6
|
export type Names = 'CardNumber' | 'Cvc' | 'ExpiryDate' | 'PostalCode';
|
|
7
|
+
export enum ValidationState {
|
|
8
|
+
Valid = 'Valid',
|
|
9
|
+
Invalid = 'Invalid',
|
|
10
|
+
Incomplete = 'Incomplete',
|
|
11
|
+
Unknown = 'Unknown',
|
|
12
|
+
}
|
|
7
13
|
|
|
8
14
|
export interface Details {
|
|
9
15
|
last4: string;
|
|
@@ -12,6 +18,9 @@ export namespace CardFieldInput {
|
|
|
12
18
|
postalCode?: string;
|
|
13
19
|
brand: Card.Brand;
|
|
14
20
|
complete: boolean;
|
|
21
|
+
validExpiryDate: ValidationState;
|
|
22
|
+
validCVC: ValidationState;
|
|
23
|
+
validNumber: ValidationState;
|
|
15
24
|
/**
|
|
16
25
|
* WARNING: Full card details are only returned when the `dangerouslyGetFullCardDetails` prop
|
|
17
26
|
* on the `CardField` component is set to `true`.
|
package/src/types/index.ts
CHANGED
|
@@ -215,3 +215,25 @@ export type OpenApplePaySetupResult =
|
|
|
215
215
|
| {
|
|
216
216
|
error: StripeError<ApplePayError>;
|
|
217
217
|
};
|
|
218
|
+
|
|
219
|
+
export type CreateTokenParams =
|
|
220
|
+
| CreateTokenCardParams
|
|
221
|
+
| CreateTokenBankAccountParams;
|
|
222
|
+
|
|
223
|
+
export type CreateTokenCardParams = {
|
|
224
|
+
type: 'Card';
|
|
225
|
+
address?: Card.Address;
|
|
226
|
+
name?: string;
|
|
227
|
+
};
|
|
228
|
+
|
|
229
|
+
export type BankAcccountHolderType = 'Company' | 'Individual';
|
|
230
|
+
|
|
231
|
+
export type CreateTokenBankAccountParams = {
|
|
232
|
+
type: 'BankAccount';
|
|
233
|
+
accountHolderName?: string;
|
|
234
|
+
accountHolderType?: BankAcccountHolderType;
|
|
235
|
+
accountNumber: string;
|
|
236
|
+
country: string;
|
|
237
|
+
currency: string;
|
|
238
|
+
routingNumber?: string;
|
|
239
|
+
};
|
|
@@ -1,22 +1,20 @@
|
|
|
1
|
-
require
|
|
1
|
+
require 'json'
|
|
2
2
|
|
|
3
|
-
package = JSON.parse(File.read(File.join(__dir__,
|
|
3
|
+
package = JSON.parse(File.read(File.join(__dir__, 'package.json')))
|
|
4
4
|
|
|
5
5
|
Pod::Spec.new do |s|
|
|
6
|
-
s.name =
|
|
7
|
-
s.version = package[
|
|
8
|
-
s.summary = package[
|
|
9
|
-
s.homepage = package[
|
|
10
|
-
s.license = package[
|
|
11
|
-
s.authors = package[
|
|
6
|
+
s.name = 'stripe-react-native'
|
|
7
|
+
s.version = package['version']
|
|
8
|
+
s.summary = package['description']
|
|
9
|
+
s.homepage = package['homepage']
|
|
10
|
+
s.license = package['license']
|
|
11
|
+
s.authors = package['author']
|
|
12
12
|
|
|
13
|
-
s.platforms = { :
|
|
14
|
-
s.source = { :
|
|
13
|
+
s.platforms = { ios: '11.0' }
|
|
14
|
+
s.source = { git: 'https://github.com/stripe/stripe-react-native.git', tag: s.version.to_s }
|
|
15
15
|
|
|
16
|
+
s.source_files = 'ios/**/*.{h,m,mm,swift}'
|
|
16
17
|
|
|
17
|
-
s.
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
s.dependency "React-Core"
|
|
21
|
-
s.dependency 'Stripe', '~> 21.9.0'
|
|
18
|
+
s.dependency 'React-Core'
|
|
19
|
+
s.dependency 'Stripe', '~> 21.11.1'
|
|
22
20
|
end
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|