@stripe/stripe-react-native 0.6.0 → 0.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +43 -0
- package/README.md +1 -1
- package/android/build/.transforms/{31ceac6fb5d33b3621129bf6bacef38e → 391dacf2d8747d5d964db20fd2dd8815}/results.bin +0 -0
- package/android/build/.transforms/391dacf2d8747d5d964db20fd2dd8815/transformed/classes/classes.dex +0 -0
- package/android/build/.transforms/{48791259e8e16eb93ec0e1ee5c2320d3 → 465a3f28c318295b6d1e745a1358f0e6}/results.bin +0 -0
- package/android/build/.transforms/465a3f28c318295b6d1e745a1358f0e6/transformed/classes/classes.dex +0 -0
- package/android/build/.transforms/{74570cf3214a596c51ea9185f02b2c7f → 538f1369a832b015f982db8e9f3e63d4}/results.bin +0 -0
- package/android/build/.transforms/538f1369a832b015f982db8e9f3e63d4/transformed/classes/classes.dex +0 -0
- package/android/build/.transforms/{82928fc3901d2ce5cedef114e23b9dd5 → 5821b0d6d2e0908c8ed0cd6c2f4e6587}/results.bin +0 -0
- package/android/build/.transforms/5821b0d6d2e0908c8ed0cd6c2f4e6587/transformed/classes/classes.dex +0 -0
- package/android/build/.transforms/{9338bfb74c726e5746db5e10b980917a → 60446a8b59a82b3ae8bcd81aa8d01afc}/results.bin +0 -0
- package/android/build/.transforms/60446a8b59a82b3ae8bcd81aa8d01afc/transformed/classes/classes.dex +0 -0
- package/android/build/.transforms/{c731e6bf5b480f659bf1c341f3f0657c → 87295b99343bf0db705fbc154493ffa4}/results.bin +0 -0
- package/android/build/.transforms/87295b99343bf0db705fbc154493ffa4/transformed/classes/classes.dex +0 -0
- package/android/build/.transforms/{d436978a4beecbc35d07543a01fe4a5c → ae18a466edb55818daf7c30291ff4843}/results.bin +0 -0
- package/android/build/.transforms/ae18a466edb55818daf7c30291ff4843/transformed/classes/classes.dex +0 -0
- package/android/build/.transforms/d42db6dbe74ca8dbcb5922d32e8646c4/transformed/classes/classes.dex +0 -0
- package/android/build/.transforms/e9a96dae20bdea4f5ebd602fc83f5f77/results.bin +1 -0
- package/android/build/.transforms/e9a96dae20bdea4f5ebd602fc83f5f77/transformed/classes/classes.dex +0 -0
- package/android/build/.transforms/f183966fd9230baa4d89c2c4e2fcb664/results.bin +1 -0
- package/android/build/.transforms/f183966fd9230baa4d89c2c4e2fcb664/transformed/classes/classes.dex +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 +108 -20
- package/android/build/intermediates/compile_symbol_list/release/R.txt +108 -20
- 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_jar/debug/classes.jar +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 +78 -20
- package/android/build/intermediates/symbol_list_with_package_name/release/package-aware-r.txt +78 -20
- 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.keystream +0 -0
- package/android/build/kotlin/compileDebugKotlin/caches-jvm/inputs/source-to-output.tab.keystream.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/caches-jvm/inputs/source-to-output.tab.len +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/inputs/source-to-output.tab_i +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.values.at +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.values.at +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.keystream +0 -0
- package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/supertypes.tab.keystream.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/supertypes.tab.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/supertypes.tab.values.at +0 -0
- package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/supertypes.tab_i +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.keystream +0 -0
- package/android/build/kotlin/compileDebugKotlin/caches-jvm/lookups/file-to-id.tab.keystream.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/caches-jvm/lookups/file-to-id.tab.len +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/file-to-id.tab_i +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/inputs/source-to-output.tab +0 -0
- package/android/build/kotlin/compileReleaseKotlin/caches-jvm/inputs/source-to-output.tab.keystream +0 -0
- package/android/build/kotlin/compileReleaseKotlin/caches-jvm/inputs/source-to-output.tab.keystream.len +0 -0
- package/android/build/kotlin/compileReleaseKotlin/caches-jvm/inputs/source-to-output.tab.len +0 -0
- package/android/build/kotlin/compileReleaseKotlin/caches-jvm/inputs/source-to-output.tab.values.at +0 -0
- package/android/build/kotlin/compileReleaseKotlin/caches-jvm/inputs/source-to-output.tab_i +0 -0
- package/android/build/kotlin/compileReleaseKotlin/caches-jvm/jvm/kotlin/class-attributes.tab +0 -0
- package/android/build/kotlin/compileReleaseKotlin/caches-jvm/jvm/kotlin/class-attributes.tab.keystream +0 -0
- package/android/build/kotlin/compileReleaseKotlin/caches-jvm/jvm/kotlin/class-attributes.tab.keystream.len +0 -0
- package/android/build/kotlin/compileReleaseKotlin/caches-jvm/jvm/kotlin/class-attributes.tab.len +0 -0
- package/android/build/kotlin/compileReleaseKotlin/caches-jvm/jvm/kotlin/class-attributes.tab.values.at +0 -0
- package/android/build/kotlin/compileReleaseKotlin/caches-jvm/jvm/kotlin/class-attributes.tab_i +0 -0
- package/android/build/kotlin/compileReleaseKotlin/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab +0 -0
- package/android/build/kotlin/compileReleaseKotlin/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab.keystream +0 -0
- package/android/build/kotlin/compileReleaseKotlin/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab.keystream.len +0 -0
- package/android/build/kotlin/compileReleaseKotlin/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab.len +0 -0
- package/android/build/kotlin/compileReleaseKotlin/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab.values.at +0 -0
- package/android/build/kotlin/compileReleaseKotlin/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab_i +0 -0
- package/android/build/kotlin/compileReleaseKotlin/caches-jvm/jvm/kotlin/constants.tab +0 -0
- package/android/build/kotlin/compileReleaseKotlin/caches-jvm/jvm/kotlin/internal-name-to-source.tab +0 -0
- package/android/build/kotlin/compileReleaseKotlin/caches-jvm/jvm/kotlin/internal-name-to-source.tab.keystream +0 -0
- package/android/build/kotlin/compileReleaseKotlin/caches-jvm/jvm/kotlin/internal-name-to-source.tab.keystream.len +0 -0
- package/android/build/kotlin/compileReleaseKotlin/caches-jvm/jvm/kotlin/internal-name-to-source.tab.len +0 -0
- package/android/build/kotlin/compileReleaseKotlin/caches-jvm/jvm/kotlin/internal-name-to-source.tab.values.at +0 -0
- package/android/build/kotlin/compileReleaseKotlin/caches-jvm/jvm/kotlin/internal-name-to-source.tab_i +0 -0
- package/android/build/kotlin/compileReleaseKotlin/caches-jvm/jvm/kotlin/proto.tab +0 -0
- package/android/build/kotlin/compileReleaseKotlin/caches-jvm/jvm/kotlin/proto.tab.keystream +0 -0
- package/android/build/kotlin/compileReleaseKotlin/caches-jvm/jvm/kotlin/proto.tab.keystream.len +0 -0
- package/android/build/kotlin/compileReleaseKotlin/caches-jvm/jvm/kotlin/proto.tab.len +0 -0
- package/android/build/kotlin/compileReleaseKotlin/caches-jvm/jvm/kotlin/proto.tab.values.at +0 -0
- package/android/build/kotlin/compileReleaseKotlin/caches-jvm/jvm/kotlin/proto.tab_i +0 -0
- package/android/build/kotlin/compileReleaseKotlin/caches-jvm/jvm/kotlin/source-to-classes.tab +0 -0
- package/android/build/kotlin/compileReleaseKotlin/caches-jvm/jvm/kotlin/source-to-classes.tab.keystream +0 -0
- package/android/build/kotlin/compileReleaseKotlin/caches-jvm/jvm/kotlin/source-to-classes.tab.keystream.len +0 -0
- package/android/build/kotlin/compileReleaseKotlin/caches-jvm/jvm/kotlin/source-to-classes.tab.len +0 -0
- package/android/build/kotlin/compileReleaseKotlin/caches-jvm/jvm/kotlin/source-to-classes.tab.values.at +0 -0
- package/android/build/kotlin/compileReleaseKotlin/caches-jvm/jvm/kotlin/source-to-classes.tab_i +0 -0
- package/android/build/kotlin/compileReleaseKotlin/caches-jvm/jvm/kotlin/subtypes.tab +0 -0
- package/android/build/kotlin/compileReleaseKotlin/caches-jvm/jvm/kotlin/subtypes.tab.values.at +0 -0
- package/android/build/kotlin/compileReleaseKotlin/caches-jvm/jvm/kotlin/supertypes.tab +0 -0
- package/android/build/kotlin/compileReleaseKotlin/caches-jvm/jvm/kotlin/supertypes.tab.keystream +0 -0
- package/android/build/kotlin/compileReleaseKotlin/caches-jvm/jvm/kotlin/supertypes.tab.keystream.len +0 -0
- package/android/build/kotlin/compileReleaseKotlin/caches-jvm/jvm/kotlin/supertypes.tab.len +0 -0
- package/android/build/kotlin/compileReleaseKotlin/caches-jvm/jvm/kotlin/supertypes.tab.values.at +0 -0
- package/android/build/kotlin/compileReleaseKotlin/caches-jvm/jvm/kotlin/supertypes.tab_i +0 -0
- package/android/build/kotlin/compileReleaseKotlin/caches-jvm/lookups/counters.tab +1 -1
- package/android/build/kotlin/compileReleaseKotlin/caches-jvm/lookups/file-to-id.tab +0 -0
- package/android/build/kotlin/compileReleaseKotlin/caches-jvm/lookups/file-to-id.tab.keystream +0 -0
- package/android/build/kotlin/compileReleaseKotlin/caches-jvm/lookups/file-to-id.tab.keystream.len +0 -0
- package/android/build/kotlin/compileReleaseKotlin/caches-jvm/lookups/file-to-id.tab.len +0 -0
- package/android/build/kotlin/compileReleaseKotlin/caches-jvm/lookups/file-to-id.tab.values.at +0 -0
- package/android/build/kotlin/compileReleaseKotlin/caches-jvm/lookups/file-to-id.tab_i +0 -0
- package/android/build/kotlin/compileReleaseKotlin/caches-jvm/lookups/id-to-file.tab +0 -0
- package/android/build/kotlin/compileReleaseKotlin/caches-jvm/lookups/id-to-file.tab.keystream +0 -0
- package/android/build/kotlin/compileReleaseKotlin/caches-jvm/lookups/id-to-file.tab.keystream.len +0 -0
- package/android/build/kotlin/compileReleaseKotlin/caches-jvm/lookups/id-to-file.tab.len +0 -0
- package/android/build/kotlin/compileReleaseKotlin/caches-jvm/lookups/id-to-file.tab.values.at +0 -0
- package/android/build/kotlin/compileReleaseKotlin/caches-jvm/lookups/id-to-file.tab_i +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/AuBECSDebitFormViewManager.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/com/reactnativestripesdk/CardFieldView$setListeners$10.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/com/reactnativestripesdk/CardFieldView$setListeners$6.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/com/reactnativestripesdk/{CardFieldView$setListeners$3.class → CardFieldView$setListeners$7.class} +0 -0
- package/android/build/tmp/kotlin-classes/debug/com/reactnativestripesdk/{CardFieldView$setListeners$4.class → CardFieldView$setListeners$8.class} +0 -0
- package/android/build/tmp/kotlin-classes/debug/com/reactnativestripesdk/{CardFieldView$setListeners$5.class → CardFieldView$setListeners$9.class} +0 -0
- package/android/build/tmp/kotlin-classes/debug/com/reactnativestripesdk/CardFieldView.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/com/reactnativestripesdk/CardFieldViewManager.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/com/reactnativestripesdk/CardFormViewManager.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/com/reactnativestripesdk/CollectBankAccountLauncherFragment$createBankAccountLauncher$1.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/com/reactnativestripesdk/CollectBankAccountLauncherFragment.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/com/reactnativestripesdk/ConfirmPaymentErrorType.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/com/reactnativestripesdk/ConfirmSetupIntentErrorType.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/com/reactnativestripesdk/ConstantsKt.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/com/reactnativestripesdk/CreateTokenErrorType.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/com/reactnativestripesdk/ErrorType.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/com/reactnativestripesdk/ErrorsKt.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/com/reactnativestripesdk/GooglePayButtonManager$Companion.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/com/reactnativestripesdk/GooglePayButtonManager.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/GooglePayPaymentMethodLauncherFragment.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/com/reactnativestripesdk/MappersKt$WhenMappings.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/PaymentLauncherFragment$retrievePaymentIntent$1$WhenMappings.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/com/reactnativestripesdk/PaymentLauncherFragment$retrievePaymentIntent$1.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/com/reactnativestripesdk/PaymentLauncherFragment$retrieveSetupIntent$1$WhenMappings.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/com/reactnativestripesdk/PaymentLauncherFragment$retrieveSetupIntent$1.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/com/reactnativestripesdk/PaymentLauncherFragment.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/com/reactnativestripesdk/PaymentMethodCreateParamsException.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/com/reactnativestripesdk/PaymentMethodCreateParamsFactory$WhenMappings.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/com/reactnativestripesdk/PaymentMethodCreateParamsFactory.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/com/reactnativestripesdk/StripeContainerManager.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/com/reactnativestripesdk/StripeSdkModule$Companion.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/com/reactnativestripesdk/StripeSdkModule$createPaymentMethod$1.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/com/reactnativestripesdk/StripeSdkModule$createTokenForCVCUpdate$1.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/com/reactnativestripesdk/StripeSdkModule$createTokenFromBankAccount$1.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/com/reactnativestripesdk/StripeSdkModule$createTokenFromCard$1.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/com/reactnativestripesdk/StripeSdkModule$googlePayReceiver$1.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/com/reactnativestripesdk/StripeSdkModule$mActivityEventListener$1.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/com/reactnativestripesdk/StripeSdkModule$mPaymentSheetReceiver$1.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/com/reactnativestripesdk/StripeSdkModule$retrievePaymentIntent$1.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/com/reactnativestripesdk/StripeSdkModule$retrieveSetupIntent$1.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/com/reactnativestripesdk/StripeSdkModule$verifyMicrodeposits$paymentCallback$1.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/com/reactnativestripesdk/StripeSdkModule$verifyMicrodeposits$setupCallback$1.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/com/reactnativestripesdk/StripeSdkModule.class +0 -0
- package/android/build/tmp/kotlin-classes/release/com/reactnativestripesdk/AuBECSDebitFormViewManager.class +0 -0
- package/android/build/tmp/kotlin-classes/release/com/reactnativestripesdk/CardFieldView$setListeners$10.class +0 -0
- package/android/build/tmp/kotlin-classes/release/com/reactnativestripesdk/CardFieldView$setListeners$6.class +0 -0
- package/android/build/tmp/kotlin-classes/release/com/reactnativestripesdk/{CardFieldView$setListeners$3.class → CardFieldView$setListeners$7.class} +0 -0
- package/android/build/tmp/kotlin-classes/release/com/reactnativestripesdk/{CardFieldView$setListeners$4.class → CardFieldView$setListeners$8.class} +0 -0
- package/android/build/tmp/kotlin-classes/release/com/reactnativestripesdk/{CardFieldView$setListeners$5.class → CardFieldView$setListeners$9.class} +0 -0
- package/android/build/tmp/kotlin-classes/release/com/reactnativestripesdk/CardFieldView.class +0 -0
- package/android/build/tmp/kotlin-classes/release/com/reactnativestripesdk/CardFieldViewManager.class +0 -0
- package/android/build/tmp/kotlin-classes/release/com/reactnativestripesdk/CardFormViewManager.class +0 -0
- package/android/build/tmp/kotlin-classes/release/com/reactnativestripesdk/CollectBankAccountLauncherFragment$createBankAccountLauncher$1.class +0 -0
- package/android/build/tmp/kotlin-classes/release/com/reactnativestripesdk/CollectBankAccountLauncherFragment.class +0 -0
- package/android/build/tmp/kotlin-classes/release/com/reactnativestripesdk/ConfirmPaymentErrorType.class +0 -0
- package/android/build/tmp/kotlin-classes/release/com/reactnativestripesdk/ConfirmSetupIntentErrorType.class +0 -0
- package/android/build/tmp/kotlin-classes/release/com/reactnativestripesdk/ConstantsKt.class +0 -0
- package/android/build/tmp/kotlin-classes/release/com/reactnativestripesdk/CreateTokenErrorType.class +0 -0
- package/android/build/tmp/kotlin-classes/release/com/reactnativestripesdk/ErrorType.class +0 -0
- package/android/build/tmp/kotlin-classes/release/com/reactnativestripesdk/ErrorsKt.class +0 -0
- package/android/build/tmp/kotlin-classes/release/com/reactnativestripesdk/GooglePayButtonManager$Companion.class +0 -0
- package/android/build/tmp/kotlin-classes/release/com/reactnativestripesdk/GooglePayButtonManager.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/GooglePayPaymentMethodLauncherFragment.class +0 -0
- package/android/build/tmp/kotlin-classes/release/com/reactnativestripesdk/MappersKt$WhenMappings.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/PaymentLauncherFragment$WhenMappings.class +0 -0
- package/android/build/tmp/kotlin-classes/release/com/reactnativestripesdk/PaymentLauncherFragment$retrievePaymentIntent$1$WhenMappings.class +0 -0
- package/android/build/tmp/kotlin-classes/release/com/reactnativestripesdk/PaymentLauncherFragment$retrievePaymentIntent$1.class +0 -0
- package/android/build/tmp/kotlin-classes/release/com/reactnativestripesdk/PaymentLauncherFragment$retrieveSetupIntent$1$WhenMappings.class +0 -0
- package/android/build/tmp/kotlin-classes/release/com/reactnativestripesdk/PaymentLauncherFragment$retrieveSetupIntent$1.class +0 -0
- package/android/build/tmp/kotlin-classes/release/com/reactnativestripesdk/PaymentLauncherFragment.class +0 -0
- package/android/build/tmp/kotlin-classes/release/com/reactnativestripesdk/PaymentMethodCreateParamsException.class +0 -0
- package/android/build/tmp/kotlin-classes/release/com/reactnativestripesdk/PaymentMethodCreateParamsFactory$WhenMappings.class +0 -0
- package/android/build/tmp/kotlin-classes/release/com/reactnativestripesdk/PaymentMethodCreateParamsFactory.class +0 -0
- package/android/build/tmp/kotlin-classes/release/com/reactnativestripesdk/StripeContainerManager.class +0 -0
- package/android/build/tmp/kotlin-classes/release/com/reactnativestripesdk/StripeSdkModule$Companion.class +0 -0
- package/android/build/tmp/kotlin-classes/release/com/reactnativestripesdk/StripeSdkModule$createPaymentMethod$1.class +0 -0
- package/android/build/tmp/kotlin-classes/release/com/reactnativestripesdk/StripeSdkModule$createTokenForCVCUpdate$1.class +0 -0
- package/android/build/tmp/kotlin-classes/release/com/reactnativestripesdk/StripeSdkModule$createTokenFromBankAccount$1.class +0 -0
- package/android/build/tmp/kotlin-classes/release/com/reactnativestripesdk/StripeSdkModule$createTokenFromCard$1.class +0 -0
- package/android/build/tmp/kotlin-classes/release/com/reactnativestripesdk/StripeSdkModule$googlePayReceiver$1.class +0 -0
- package/android/build/tmp/kotlin-classes/release/com/reactnativestripesdk/StripeSdkModule$mActivityEventListener$1.class +0 -0
- package/android/build/tmp/kotlin-classes/release/com/reactnativestripesdk/StripeSdkModule$mPaymentSheetReceiver$1.class +0 -0
- package/android/build/tmp/kotlin-classes/release/com/reactnativestripesdk/StripeSdkModule$retrievePaymentIntent$1.class +0 -0
- package/android/build/tmp/kotlin-classes/release/com/reactnativestripesdk/StripeSdkModule$retrieveSetupIntent$1.class +0 -0
- package/android/build/tmp/kotlin-classes/release/com/reactnativestripesdk/StripeSdkModule$verifyMicrodeposits$paymentCallback$1.class +0 -0
- package/android/build/tmp/kotlin-classes/release/com/reactnativestripesdk/StripeSdkModule$verifyMicrodeposits$setupCallback$1.class +0 -0
- package/android/build/tmp/kotlin-classes/release/com/reactnativestripesdk/StripeSdkModule.class +0 -0
- package/android/build.gradle +4 -2
- package/android/gradle.properties +1 -0
- package/android/src/main/java/com/reactnativestripesdk/AuBECSDebitFormViewManager.kt +0 -2
- package/android/src/main/java/com/reactnativestripesdk/CardFieldView.kt +48 -34
- package/android/src/main/java/com/reactnativestripesdk/CardFieldViewManager.kt +0 -5
- package/android/src/main/java/com/reactnativestripesdk/CardFormViewManager.kt +0 -4
- package/android/src/main/java/com/reactnativestripesdk/CollectBankAccountLauncherFragment.kt +84 -0
- package/android/src/main/java/com/reactnativestripesdk/Constants.kt +0 -1
- package/android/src/main/java/com/reactnativestripesdk/Errors.kt +16 -6
- package/android/src/main/java/com/reactnativestripesdk/GooglePayButtonManager.kt +0 -1
- package/android/src/main/java/com/reactnativestripesdk/GooglePayFragment.kt +0 -3
- package/android/src/main/java/com/reactnativestripesdk/GooglePayPaymentMethodLauncherFragment.kt +3 -2
- package/android/src/main/java/com/reactnativestripesdk/Mappers.kt +77 -40
- package/android/src/main/java/com/reactnativestripesdk/PaymentLauncherFragment.kt +77 -22
- package/android/src/main/java/com/reactnativestripesdk/PaymentMethodCreateParamsFactory.kt +81 -5
- package/android/src/main/java/com/reactnativestripesdk/StripeContainerManager.kt +0 -1
- package/android/src/main/java/com/reactnativestripesdk/StripeSdkModule.kt +199 -113
- package/ios/.DS_Store +0 -0
- package/ios/Mappers.swift +23 -18
- package/ios/StripeSdk.m +2 -2
- package/ios/StripeSdk.swift +16 -26
- package/lib/commonjs/NativeStripeSdk.js.map +1 -1
- package/lib/commonjs/components/ApplePayButton.js.map +1 -1
- package/lib/commonjs/components/CardField.js.map +1 -1
- package/lib/commonjs/components/CardForm.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/helpers.js.map +1 -1
- package/lib/commonjs/hooks/useConfirmPayment.js.map +1 -1
- package/lib/commonjs/hooks/useConfirmSetupIntent.js.map +1 -1
- package/lib/commonjs/hooks/useGooglePay.js.map +1 -1
- package/lib/commonjs/hooks/useStripe.js +1 -1
- package/lib/commonjs/hooks/useStripe.js.map +1 -1
- package/lib/commonjs/types/ApplePay.js +1 -1
- package/lib/commonjs/types/ApplePay.js.map +1 -1
- package/lib/commonjs/types/Common.js +2 -0
- package/lib/commonjs/types/Common.js.map +1 -0
- package/lib/commonjs/types/Errors.js +1 -1
- package/lib/commonjs/types/Errors.js.map +1 -1
- package/lib/commonjs/types/GooglePay.js +1 -1
- package/lib/commonjs/types/GooglePay.js.map +1 -1
- package/lib/commonjs/types/PaymentIntent.js +2 -0
- package/lib/commonjs/types/PaymentIntent.js.map +1 -0
- package/lib/commonjs/types/PaymentMethod.js +2 -0
- package/lib/commonjs/types/PaymentMethod.js.map +1 -0
- package/lib/commonjs/types/PaymentSheet.js +1 -1
- package/lib/commonjs/types/SetupIntent.js +1 -1
- package/lib/commonjs/types/SetupIntent.js.map +1 -1
- package/lib/commonjs/types/ThreeDSecure.js +1 -1
- package/lib/commonjs/types/ThreeDSecure.js.map +1 -1
- package/lib/commonjs/types/Token.js +2 -0
- package/lib/commonjs/types/Token.js.map +1 -0
- package/lib/commonjs/types/components/ApplePayButtonComponent.js +1 -1
- package/lib/commonjs/types/components/ApplePayButtonComponent.js.map +1 -1
- package/lib/commonjs/types/components/AuBECSDebitFormComponent.js +2 -0
- package/lib/commonjs/types/components/AuBECSDebitFormComponent.js.map +1 -0
- package/lib/commonjs/types/components/CardFieldInput.js +1 -1
- package/lib/commonjs/types/components/CardFieldInput.js.map +1 -1
- package/lib/commonjs/types/components/CardFormView.js +1 -1
- package/lib/commonjs/types/components/CardFormView.js.map +1 -1
- package/lib/commonjs/types/index.js +1 -1
- package/lib/commonjs/types/index.js.map +1 -1
- package/lib/module/NativeStripeSdk.js.map +1 -1
- package/lib/module/components/ApplePayButton.js.map +1 -1
- package/lib/module/components/CardField.js.map +1 -1
- package/lib/module/components/CardForm.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/helpers.js.map +1 -1
- package/lib/module/hooks/useConfirmPayment.js.map +1 -1
- package/lib/module/hooks/useConfirmSetupIntent.js.map +1 -1
- package/lib/module/hooks/useGooglePay.js.map +1 -1
- package/lib/module/hooks/useStripe.js +1 -1
- package/lib/module/hooks/useStripe.js.map +1 -1
- package/lib/module/types/ApplePay.js +1 -1
- package/lib/module/types/ApplePay.js.map +1 -1
- package/lib/module/types/Common.js +2 -0
- package/lib/module/types/Common.js.map +1 -0
- package/lib/module/types/Errors.js +1 -1
- package/lib/module/types/Errors.js.map +1 -1
- package/lib/module/types/GooglePay.js +1 -1
- package/lib/module/types/GooglePay.js.map +1 -1
- package/lib/module/types/PaymentIntent.js +2 -0
- package/lib/module/types/PaymentIntent.js.map +1 -0
- package/lib/module/types/PaymentMethod.js +2 -0
- package/lib/module/types/PaymentMethod.js.map +1 -0
- package/lib/module/types/PaymentSheet.js +1 -1
- package/lib/module/types/SetupIntent.js +1 -1
- package/lib/module/types/SetupIntent.js.map +1 -1
- package/lib/module/types/ThreeDSecure.js +1 -1
- package/lib/module/types/ThreeDSecure.js.map +1 -1
- package/lib/module/types/Token.js +2 -0
- package/lib/module/types/Token.js.map +1 -0
- package/lib/module/types/components/ApplePayButtonComponent.js +1 -1
- package/lib/module/types/components/ApplePayButtonComponent.js.map +1 -1
- package/lib/module/types/components/AuBECSDebitFormComponent.js +2 -0
- package/lib/module/types/components/AuBECSDebitFormComponent.js.map +1 -0
- package/lib/module/types/components/CardFieldInput.js +1 -1
- package/lib/module/types/components/CardFieldInput.js.map +1 -1
- package/lib/module/types/components/CardFormView.js +1 -1
- package/lib/module/types/components/CardFormView.js.map +1 -1
- package/lib/module/types/index.js +1 -1
- package/lib/module/types/index.js.map +1 -1
- package/lib/typescript/src/NativeStripeSdk.d.ts +9 -9
- package/lib/typescript/src/components/ApplePayButton.d.ts +2 -2
- package/lib/typescript/src/components/CardField.d.ts +2 -2
- package/lib/typescript/src/components/StripeProvider.d.ts +1 -1
- package/lib/typescript/src/functions.d.ts +11 -15
- package/lib/typescript/src/helpers.d.ts +2 -1
- package/lib/typescript/src/hooks/useConfirmPayment.d.ts +2 -2
- package/lib/typescript/src/hooks/useConfirmSetupIntent.d.ts +2 -2
- package/lib/typescript/src/hooks/useGooglePay.d.ts +2 -2
- package/lib/typescript/src/hooks/useStripe.d.ts +11 -12
- package/lib/typescript/src/types/ApplePay.d.ts +48 -50
- package/lib/typescript/src/types/Common.d.ts +14 -0
- package/lib/typescript/src/types/Errors.d.ts +10 -0
- package/lib/typescript/src/types/GooglePay.d.ts +45 -50
- package/lib/typescript/src/types/PaymentIntent.d.ts +46 -0
- package/lib/typescript/src/types/PaymentMethod.d.ts +167 -0
- package/lib/typescript/src/types/PaymentSheet.d.ts +41 -55
- package/lib/typescript/src/types/SetupIntent.d.ts +22 -56
- package/lib/typescript/src/types/ThreeDSecure.d.ts +62 -68
- package/lib/typescript/src/types/Token.d.ts +50 -0
- package/lib/typescript/src/types/components/ApplePayButtonComponent.d.ts +8 -10
- package/{src/types/components/AuBECSDebitForm.ts → lib/typescript/src/types/components/AuBECSDebitFormComponent.d.ts} +8 -13
- package/lib/typescript/src/types/components/CardFieldInput.d.ts +62 -65
- package/lib/typescript/src/types/components/CardFormView.d.ts +41 -44
- package/lib/typescript/src/types/index.d.ts +53 -61
- package/package.json +7 -3
- package/src/NativeStripeSdk.tsx +15 -18
- package/src/components/ApplePayButton.tsx +4 -4
- package/src/components/CardField.tsx +2 -2
- package/src/components/CardForm.tsx +1 -1
- package/src/components/StripeProvider.tsx +1 -4
- package/src/functions.ts +75 -136
- package/src/helpers.ts +3 -2
- package/src/hooks/useConfirmPayment.tsx +3 -3
- package/src/hooks/useConfirmSetupIntent.tsx +3 -3
- package/src/hooks/useGooglePay.tsx +2 -2
- package/src/hooks/useStripe.tsx +22 -20
- package/src/types/ApplePay.ts +60 -62
- package/src/types/Common.ts +15 -0
- package/src/types/Errors.ts +12 -0
- package/src/types/GooglePay.ts +67 -73
- package/src/types/PaymentIntent.ts +53 -0
- package/src/types/PaymentMethod.ts +242 -0
- package/src/types/PaymentSheet.ts +49 -63
- package/src/types/SetupIntent.ts +30 -82
- package/src/types/ThreeDSecure.ts +63 -69
- package/src/types/Token.ts +74 -0
- package/src/types/components/ApplePayButtonComponent.ts +25 -27
- package/src/types/components/AuBECSDebitFormComponent.ts +29 -0
- package/src/types/components/CardFieldInput.ts +65 -67
- package/src/types/components/CardFormView.ts +48 -51
- package/src/types/index.ts +78 -71
- package/android/build/.transforms/06225d218c14d1720edd690e5aad3666/results.bin +0 -0
- package/android/build/.transforms/31ceac6fb5d33b3621129bf6bacef38e/transformed/classes/classes.dex +0 -0
- package/android/build/.transforms/48791259e8e16eb93ec0e1ee5c2320d3/transformed/classes/classes.dex +0 -0
- package/android/build/.transforms/74570cf3214a596c51ea9185f02b2c7f/transformed/classes/classes.dex +0 -0
- package/android/build/.transforms/82928fc3901d2ce5cedef114e23b9dd5/transformed/classes/classes.dex +0 -0
- package/android/build/.transforms/9338bfb74c726e5746db5e10b980917a/transformed/classes/classes.dex +0 -0
- package/android/build/.transforms/c731e6bf5b480f659bf1c341f3f0657c/transformed/classes/classes.dex +0 -0
- package/android/build/.transforms/d436978a4beecbc35d07543a01fe4a5c/transformed/classes/classes.dex +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/proto.tab.values +0 -0
- package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/proto.tab.values.s +0 -1
- package/android/build/tmp/kotlin-classes/debug/com/reactnativestripesdk/CardFieldView$setListeners$2.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/com/reactnativestripesdk/NextPaymentActionErrorType.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/com/reactnativestripesdk/StripeSdkModule$mActivityEventListener$1$onActivityResult$2$WhenMappings.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/com/reactnativestripesdk/StripeSdkModule$mActivityEventListener$1$onActivityResult$2.class +0 -0
- package/android/build/tmp/kotlin-classes/release/com/reactnativestripesdk/CardFieldView$setListeners$2.class +0 -0
- package/android/build/tmp/kotlin-classes/release/com/reactnativestripesdk/NextPaymentActionErrorType.class +0 -0
- package/android/build/tmp/kotlin-classes/release/com/reactnativestripesdk/StripeSdkModule$mActivityEventListener$1$onActivityResult$2$WhenMappings.class +0 -0
- package/android/build/tmp/kotlin-classes/release/com/reactnativestripesdk/StripeSdkModule$mActivityEventListener$1$onActivityResult$2.class +0 -0
- package/lib/commonjs/types/Card.js +0 -2
- package/lib/commonjs/types/Card.js.map +0 -1
- package/lib/commonjs/types/PaymentIntents.js +0 -2
- package/lib/commonjs/types/PaymentIntents.js.map +0 -1
- package/lib/commonjs/types/PaymentMethods.js +0 -2
- package/lib/commonjs/types/PaymentMethods.js.map +0 -1
- package/lib/commonjs/types/components/AuBECSDebitForm.js +0 -2
- package/lib/commonjs/types/components/AuBECSDebitForm.js.map +0 -1
- package/lib/module/types/Card.js +0 -2
- package/lib/module/types/Card.js.map +0 -1
- package/lib/module/types/PaymentIntents.js +0 -2
- package/lib/module/types/PaymentIntents.js.map +0 -1
- package/lib/module/types/PaymentMethods.js +0 -2
- package/lib/module/types/PaymentMethods.js.map +0 -1
- package/lib/module/types/components/AuBECSDebitForm.js +0 -2
- package/lib/module/types/components/AuBECSDebitForm.js.map +0 -1
- package/lib/typescript/src/types/Card.d.ts +0 -42
- package/lib/typescript/src/types/PaymentIntents.d.ts +0 -52
- package/lib/typescript/src/types/PaymentMethods.d.ts +0 -193
- package/lib/typescript/src/types/components/AuBECSDebitForm.d.ts +0 -28
- package/src/types/Card.ts +0 -61
- package/src/types/PaymentIntents.ts +0 -58
- package/src/types/PaymentMethods.ts +0 -264
package/src/functions.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { isAndroid, isiOS, createError } from './helpers';
|
|
2
2
|
import { MissingRoutingNumber } from './types/Errors';
|
|
3
3
|
import NativeStripeSdk from './NativeStripeSdk';
|
|
4
4
|
import {
|
|
@@ -6,10 +6,9 @@ import {
|
|
|
6
6
|
ApplePayError,
|
|
7
7
|
ApplePayResult,
|
|
8
8
|
ConfirmPaymentResult,
|
|
9
|
-
ConfirmPaymentError,
|
|
10
|
-
ConfirmSetupIntentError,
|
|
11
9
|
ConfirmPaymentSheetPaymentResult,
|
|
12
|
-
|
|
10
|
+
SetupIntent,
|
|
11
|
+
PaymentIntent,
|
|
13
12
|
ConfirmSetupIntentResult,
|
|
14
13
|
CreatePaymentMethodResult,
|
|
15
14
|
CreateTokenForCVCUpdateResult,
|
|
@@ -17,7 +16,7 @@ import {
|
|
|
17
16
|
GooglePayInitResult,
|
|
18
17
|
HandleNextActionResult,
|
|
19
18
|
InitPaymentSheetResult,
|
|
20
|
-
|
|
19
|
+
PaymentMethod,
|
|
21
20
|
PaymentSheet,
|
|
22
21
|
PayWithGooglePayResult,
|
|
23
22
|
PresentPaymentSheetResult,
|
|
@@ -27,23 +26,24 @@ import {
|
|
|
27
26
|
GooglePay,
|
|
28
27
|
CreateGooglePayPaymentMethodResult,
|
|
29
28
|
OpenApplePaySetupResult,
|
|
30
|
-
|
|
29
|
+
Token,
|
|
31
30
|
VerifyMicrodepositsParams,
|
|
32
|
-
|
|
31
|
+
VerifyMicrodepositsForPaymentResult,
|
|
32
|
+
VerifyMicrodepositsForSetupResult,
|
|
33
|
+
CollectBankAccountForPaymentResult,
|
|
34
|
+
CollectBankAccountForSetupResult,
|
|
33
35
|
} from './types';
|
|
34
36
|
|
|
35
37
|
const APPLE_PAY_NOT_SUPPORTED_MESSAGE =
|
|
36
38
|
'Apple pay is not supported on this device';
|
|
37
|
-
const PAYMENT_INTENT = 'payment';
|
|
38
|
-
const SETUP_INTENT = 'setup';
|
|
39
39
|
|
|
40
40
|
export const createPaymentMethod = async (
|
|
41
|
-
|
|
42
|
-
options:
|
|
41
|
+
params: PaymentMethod.CreateParams,
|
|
42
|
+
options: PaymentMethod.CreateOptions = {}
|
|
43
43
|
): Promise<CreatePaymentMethodResult> => {
|
|
44
44
|
try {
|
|
45
45
|
const { paymentMethod, error } = await NativeStripeSdk.createPaymentMethod(
|
|
46
|
-
|
|
46
|
+
params,
|
|
47
47
|
options
|
|
48
48
|
);
|
|
49
49
|
if (error) {
|
|
@@ -54,7 +54,7 @@ export const createPaymentMethod = async (
|
|
|
54
54
|
return {
|
|
55
55
|
paymentMethod: paymentMethod!,
|
|
56
56
|
};
|
|
57
|
-
} catch (error) {
|
|
57
|
+
} catch (error: any) {
|
|
58
58
|
return {
|
|
59
59
|
error,
|
|
60
60
|
};
|
|
@@ -62,7 +62,7 @@ export const createPaymentMethod = async (
|
|
|
62
62
|
};
|
|
63
63
|
|
|
64
64
|
export const createToken = async (
|
|
65
|
-
params:
|
|
65
|
+
params: Token.CreateParams
|
|
66
66
|
): Promise<CreateTokenResult> => {
|
|
67
67
|
if (
|
|
68
68
|
params.type === 'BankAccount' &&
|
|
@@ -85,9 +85,9 @@ export const createToken = async (
|
|
|
85
85
|
return {
|
|
86
86
|
token: token!,
|
|
87
87
|
};
|
|
88
|
-
} catch (error) {
|
|
88
|
+
} catch (error: any) {
|
|
89
89
|
return {
|
|
90
|
-
error
|
|
90
|
+
error,
|
|
91
91
|
};
|
|
92
92
|
}
|
|
93
93
|
};
|
|
@@ -106,7 +106,7 @@ export const retrievePaymentIntent = async (
|
|
|
106
106
|
return {
|
|
107
107
|
paymentIntent: paymentIntent!,
|
|
108
108
|
};
|
|
109
|
-
} catch (error) {
|
|
109
|
+
} catch (error: any) {
|
|
110
110
|
return {
|
|
111
111
|
error,
|
|
112
112
|
};
|
|
@@ -128,7 +128,7 @@ export const retrieveSetupIntent = async (
|
|
|
128
128
|
return {
|
|
129
129
|
setupIntent: setupIntent!,
|
|
130
130
|
};
|
|
131
|
-
} catch (error) {
|
|
131
|
+
} catch (error: any) {
|
|
132
132
|
return {
|
|
133
133
|
error,
|
|
134
134
|
};
|
|
@@ -137,13 +137,13 @@ export const retrieveSetupIntent = async (
|
|
|
137
137
|
|
|
138
138
|
export const confirmPayment = async (
|
|
139
139
|
paymentIntentClientSecret: string,
|
|
140
|
-
|
|
141
|
-
options:
|
|
140
|
+
params: PaymentIntent.ConfirmParams,
|
|
141
|
+
options: PaymentIntent.ConfirmOptions = {}
|
|
142
142
|
): Promise<ConfirmPaymentResult> => {
|
|
143
143
|
try {
|
|
144
144
|
const { paymentIntent, error } = await NativeStripeSdk.confirmPayment(
|
|
145
145
|
paymentIntentClientSecret,
|
|
146
|
-
|
|
146
|
+
params,
|
|
147
147
|
options
|
|
148
148
|
);
|
|
149
149
|
if (error) {
|
|
@@ -154,7 +154,7 @@ export const confirmPayment = async (
|
|
|
154
154
|
return {
|
|
155
155
|
paymentIntent: paymentIntent!,
|
|
156
156
|
};
|
|
157
|
-
} catch (error) {
|
|
157
|
+
} catch (error: any) {
|
|
158
158
|
return {
|
|
159
159
|
error,
|
|
160
160
|
};
|
|
@@ -170,10 +170,10 @@ export const presentApplePay = async (
|
|
|
170
170
|
): Promise<ApplePayResult> => {
|
|
171
171
|
if (!(await NativeStripeSdk.isApplePaySupported())) {
|
|
172
172
|
return {
|
|
173
|
-
error:
|
|
173
|
+
error: {
|
|
174
174
|
code: ApplePayError.Canceled,
|
|
175
175
|
message: APPLE_PAY_NOT_SUPPORTED_MESSAGE,
|
|
176
|
-
}
|
|
176
|
+
},
|
|
177
177
|
};
|
|
178
178
|
}
|
|
179
179
|
|
|
@@ -187,7 +187,7 @@ export const presentApplePay = async (
|
|
|
187
187
|
};
|
|
188
188
|
}
|
|
189
189
|
return { paymentMethod: paymentMethod! };
|
|
190
|
-
} catch (error) {
|
|
190
|
+
} catch (error: any) {
|
|
191
191
|
return {
|
|
192
192
|
error,
|
|
193
193
|
};
|
|
@@ -203,10 +203,10 @@ export const updateApplePaySummaryItems = async (
|
|
|
203
203
|
): Promise<{ error?: StripeError<ApplePayError> }> => {
|
|
204
204
|
if (!(await NativeStripeSdk.isApplePaySupported())) {
|
|
205
205
|
return {
|
|
206
|
-
error:
|
|
206
|
+
error: {
|
|
207
207
|
code: ApplePayError.Canceled,
|
|
208
208
|
message: APPLE_PAY_NOT_SUPPORTED_MESSAGE,
|
|
209
|
-
}
|
|
209
|
+
},
|
|
210
210
|
};
|
|
211
211
|
}
|
|
212
212
|
|
|
@@ -217,9 +217,9 @@ export const updateApplePaySummaryItems = async (
|
|
|
217
217
|
);
|
|
218
218
|
|
|
219
219
|
return {};
|
|
220
|
-
} catch (error) {
|
|
220
|
+
} catch (error: any) {
|
|
221
221
|
return {
|
|
222
|
-
error
|
|
222
|
+
error,
|
|
223
223
|
};
|
|
224
224
|
}
|
|
225
225
|
};
|
|
@@ -229,18 +229,18 @@ export const confirmApplePayPayment = async (
|
|
|
229
229
|
): Promise<{ error?: StripeError<ApplePayError> }> => {
|
|
230
230
|
if (!(await NativeStripeSdk.isApplePaySupported())) {
|
|
231
231
|
return {
|
|
232
|
-
error:
|
|
232
|
+
error: {
|
|
233
233
|
code: ApplePayError.Canceled,
|
|
234
234
|
message: APPLE_PAY_NOT_SUPPORTED_MESSAGE,
|
|
235
|
-
}
|
|
235
|
+
},
|
|
236
236
|
};
|
|
237
237
|
}
|
|
238
238
|
try {
|
|
239
239
|
await NativeStripeSdk.confirmApplePayPayment(clientSecret);
|
|
240
240
|
return {};
|
|
241
|
-
} catch (error) {
|
|
241
|
+
} catch (error: any) {
|
|
242
242
|
return {
|
|
243
|
-
error
|
|
243
|
+
error,
|
|
244
244
|
};
|
|
245
245
|
}
|
|
246
246
|
};
|
|
@@ -260,32 +260,7 @@ export const handleNextAction = async (
|
|
|
260
260
|
return {
|
|
261
261
|
paymentIntent: paymentIntent!,
|
|
262
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
|
-
*/
|
|
273
|
-
export const handleCardAction = async (
|
|
274
|
-
paymentIntentClientSecret: string
|
|
275
|
-
): Promise<HandleNextActionResult> => {
|
|
276
|
-
try {
|
|
277
|
-
const { paymentIntent, error } = await NativeStripeSdk.handleNextAction(
|
|
278
|
-
paymentIntentClientSecret
|
|
279
|
-
);
|
|
280
|
-
if (error) {
|
|
281
|
-
return {
|
|
282
|
-
error,
|
|
283
|
-
};
|
|
284
|
-
}
|
|
285
|
-
return {
|
|
286
|
-
paymentIntent: paymentIntent!,
|
|
287
|
-
};
|
|
288
|
-
} catch (error) {
|
|
263
|
+
} catch (error: any) {
|
|
289
264
|
return {
|
|
290
265
|
error: createError(error),
|
|
291
266
|
};
|
|
@@ -294,13 +269,13 @@ export const handleCardAction = async (
|
|
|
294
269
|
|
|
295
270
|
export const confirmSetupIntent = async (
|
|
296
271
|
paymentIntentClientSecret: string,
|
|
297
|
-
|
|
298
|
-
options:
|
|
272
|
+
params: SetupIntent.ConfirmParams,
|
|
273
|
+
options: SetupIntent.ConfirmOptions = {}
|
|
299
274
|
): Promise<ConfirmSetupIntentResult> => {
|
|
300
275
|
try {
|
|
301
276
|
const { setupIntent, error } = await NativeStripeSdk.confirmSetupIntent(
|
|
302
277
|
paymentIntentClientSecret,
|
|
303
|
-
|
|
278
|
+
params,
|
|
304
279
|
options
|
|
305
280
|
);
|
|
306
281
|
if (error) {
|
|
@@ -311,9 +286,9 @@ export const confirmSetupIntent = async (
|
|
|
311
286
|
return {
|
|
312
287
|
setupIntent: setupIntent!,
|
|
313
288
|
};
|
|
314
|
-
} catch (error) {
|
|
289
|
+
} catch (error: any) {
|
|
315
290
|
return {
|
|
316
|
-
error
|
|
291
|
+
error,
|
|
317
292
|
};
|
|
318
293
|
}
|
|
319
294
|
};
|
|
@@ -333,9 +308,9 @@ export const createTokenForCVCUpdate = async (
|
|
|
333
308
|
return {
|
|
334
309
|
tokenId: tokenId!,
|
|
335
310
|
};
|
|
336
|
-
} catch (error) {
|
|
311
|
+
} catch (error: any) {
|
|
337
312
|
return {
|
|
338
|
-
error
|
|
313
|
+
error,
|
|
339
314
|
};
|
|
340
315
|
}
|
|
341
316
|
};
|
|
@@ -348,22 +323,13 @@ export const handleURLCallback = async (url: string): Promise<boolean> => {
|
|
|
348
323
|
export const verifyMicrodepositsForPayment = async (
|
|
349
324
|
clientSecret: string,
|
|
350
325
|
params: VerifyMicrodepositsParams
|
|
351
|
-
): Promise<
|
|
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
|
-
}
|
|
326
|
+
): Promise<VerifyMicrodepositsForPaymentResult> => {
|
|
361
327
|
try {
|
|
362
328
|
const { paymentIntent, error } = (await NativeStripeSdk.verifyMicrodeposits(
|
|
363
|
-
|
|
329
|
+
true,
|
|
364
330
|
clientSecret,
|
|
365
331
|
params
|
|
366
|
-
)) as
|
|
332
|
+
)) as VerifyMicrodepositsForPaymentResult;
|
|
367
333
|
|
|
368
334
|
if (error) {
|
|
369
335
|
return {
|
|
@@ -373,7 +339,7 @@ export const verifyMicrodepositsForPayment = async (
|
|
|
373
339
|
return {
|
|
374
340
|
paymentIntent: paymentIntent!,
|
|
375
341
|
};
|
|
376
|
-
} catch (error) {
|
|
342
|
+
} catch (error: any) {
|
|
377
343
|
return {
|
|
378
344
|
error: createError(error),
|
|
379
345
|
};
|
|
@@ -383,22 +349,13 @@ export const verifyMicrodepositsForPayment = async (
|
|
|
383
349
|
export const verifyMicrodepositsForSetup = async (
|
|
384
350
|
clientSecret: string,
|
|
385
351
|
params: VerifyMicrodepositsParams
|
|
386
|
-
): Promise<
|
|
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
|
-
}
|
|
352
|
+
): Promise<VerifyMicrodepositsForSetupResult> => {
|
|
396
353
|
try {
|
|
397
354
|
const { setupIntent, error } = (await NativeStripeSdk.verifyMicrodeposits(
|
|
398
|
-
|
|
355
|
+
false,
|
|
399
356
|
clientSecret,
|
|
400
357
|
params
|
|
401
|
-
)) as
|
|
358
|
+
)) as VerifyMicrodepositsForSetupResult;
|
|
402
359
|
|
|
403
360
|
if (error) {
|
|
404
361
|
return {
|
|
@@ -408,7 +365,7 @@ export const verifyMicrodepositsForSetup = async (
|
|
|
408
365
|
return {
|
|
409
366
|
setupIntent: setupIntent!,
|
|
410
367
|
};
|
|
411
|
-
} catch (error) {
|
|
368
|
+
} catch (error: any) {
|
|
412
369
|
return {
|
|
413
370
|
error: createError(error),
|
|
414
371
|
};
|
|
@@ -430,9 +387,9 @@ export const initPaymentSheet = async (
|
|
|
430
387
|
return {
|
|
431
388
|
paymentOption,
|
|
432
389
|
};
|
|
433
|
-
} catch (error) {
|
|
390
|
+
} catch (error: any) {
|
|
434
391
|
return {
|
|
435
|
-
error
|
|
392
|
+
error,
|
|
436
393
|
};
|
|
437
394
|
}
|
|
438
395
|
};
|
|
@@ -450,9 +407,9 @@ export const presentPaymentSheet =
|
|
|
450
407
|
return {
|
|
451
408
|
paymentOption: paymentOption,
|
|
452
409
|
};
|
|
453
|
-
} catch (error) {
|
|
410
|
+
} catch (error: any) {
|
|
454
411
|
return {
|
|
455
|
-
error
|
|
412
|
+
error,
|
|
456
413
|
};
|
|
457
414
|
}
|
|
458
415
|
};
|
|
@@ -467,15 +424,15 @@ export const confirmPaymentSheetPayment =
|
|
|
467
424
|
};
|
|
468
425
|
}
|
|
469
426
|
return {};
|
|
470
|
-
} catch (error) {
|
|
427
|
+
} catch (error: any) {
|
|
471
428
|
return {
|
|
472
|
-
error
|
|
429
|
+
error,
|
|
473
430
|
};
|
|
474
431
|
}
|
|
475
432
|
};
|
|
476
433
|
|
|
477
434
|
export const isGooglePaySupported = async (
|
|
478
|
-
params?: GooglePay.
|
|
435
|
+
params?: GooglePay.IsSupportedParams
|
|
479
436
|
): Promise<boolean> => {
|
|
480
437
|
return (
|
|
481
438
|
isAndroid && (await NativeStripeSdk.isGooglePaySupported(params ?? {}))
|
|
@@ -493,15 +450,15 @@ export const initGooglePay = async (
|
|
|
493
450
|
};
|
|
494
451
|
}
|
|
495
452
|
return {};
|
|
496
|
-
} catch (error) {
|
|
453
|
+
} catch (error: any) {
|
|
497
454
|
return {
|
|
498
|
-
error
|
|
455
|
+
error,
|
|
499
456
|
};
|
|
500
457
|
}
|
|
501
458
|
};
|
|
502
459
|
|
|
503
460
|
export const presentGooglePay = async (
|
|
504
|
-
params: GooglePay.
|
|
461
|
+
params: GooglePay.PresentParams
|
|
505
462
|
): Promise<PayWithGooglePayResult> => {
|
|
506
463
|
try {
|
|
507
464
|
const { error } = await NativeStripeSdk.presentGooglePay(params);
|
|
@@ -511,9 +468,9 @@ export const presentGooglePay = async (
|
|
|
511
468
|
};
|
|
512
469
|
}
|
|
513
470
|
return {};
|
|
514
|
-
} catch (error) {
|
|
471
|
+
} catch (error: any) {
|
|
515
472
|
return {
|
|
516
|
-
error
|
|
473
|
+
error,
|
|
517
474
|
};
|
|
518
475
|
}
|
|
519
476
|
};
|
|
@@ -532,9 +489,9 @@ export const createGooglePayPaymentMethod = async (
|
|
|
532
489
|
return {
|
|
533
490
|
paymentMethod: paymentMethod!,
|
|
534
491
|
};
|
|
535
|
-
} catch (error) {
|
|
492
|
+
} catch (error: any) {
|
|
536
493
|
return {
|
|
537
|
-
error
|
|
494
|
+
error,
|
|
538
495
|
};
|
|
539
496
|
}
|
|
540
497
|
};
|
|
@@ -548,32 +505,23 @@ export const openApplePaySetup = async (): Promise<OpenApplePaySetupResult> => {
|
|
|
548
505
|
};
|
|
549
506
|
}
|
|
550
507
|
return {};
|
|
551
|
-
} catch (error) {
|
|
508
|
+
} catch (error: any) {
|
|
552
509
|
return {
|
|
553
|
-
error
|
|
510
|
+
error,
|
|
554
511
|
};
|
|
555
512
|
}
|
|
556
513
|
};
|
|
557
514
|
|
|
558
515
|
export const collectBankAccountForPayment = async (
|
|
559
516
|
clientSecret: string,
|
|
560
|
-
params: CollectBankAccountParams
|
|
561
|
-
): Promise<
|
|
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
|
-
}
|
|
517
|
+
params: PaymentMethod.CollectBankAccountParams
|
|
518
|
+
): Promise<CollectBankAccountForPaymentResult> => {
|
|
571
519
|
try {
|
|
572
520
|
const { paymentIntent, error } = (await NativeStripeSdk.collectBankAccount(
|
|
573
|
-
|
|
521
|
+
true,
|
|
574
522
|
clientSecret,
|
|
575
523
|
params
|
|
576
|
-
)) as
|
|
524
|
+
)) as CollectBankAccountForPaymentResult;
|
|
577
525
|
|
|
578
526
|
if (error) {
|
|
579
527
|
return {
|
|
@@ -583,7 +531,7 @@ export const collectBankAccountForPayment = async (
|
|
|
583
531
|
return {
|
|
584
532
|
paymentIntent: paymentIntent!,
|
|
585
533
|
};
|
|
586
|
-
} catch (error) {
|
|
534
|
+
} catch (error: any) {
|
|
587
535
|
return {
|
|
588
536
|
error: createError(error),
|
|
589
537
|
};
|
|
@@ -592,23 +540,14 @@ export const collectBankAccountForPayment = async (
|
|
|
592
540
|
|
|
593
541
|
export const collectBankAccountForSetup = async (
|
|
594
542
|
clientSecret: string,
|
|
595
|
-
params: CollectBankAccountParams
|
|
596
|
-
): Promise<
|
|
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
|
-
}
|
|
543
|
+
params: PaymentMethod.CollectBankAccountParams
|
|
544
|
+
): Promise<CollectBankAccountForSetupResult> => {
|
|
606
545
|
try {
|
|
607
546
|
const { setupIntent, error } = (await NativeStripeSdk.collectBankAccount(
|
|
608
|
-
|
|
547
|
+
false,
|
|
609
548
|
clientSecret,
|
|
610
549
|
params
|
|
611
|
-
)) as
|
|
550
|
+
)) as CollectBankAccountForSetupResult;
|
|
612
551
|
|
|
613
552
|
if (error) {
|
|
614
553
|
return {
|
|
@@ -618,7 +557,7 @@ export const collectBankAccountForSetup = async (
|
|
|
618
557
|
return {
|
|
619
558
|
setupIntent: setupIntent!,
|
|
620
559
|
};
|
|
621
|
-
} catch (error) {
|
|
560
|
+
} catch (error: any) {
|
|
622
561
|
return {
|
|
623
562
|
error: createError(error),
|
|
624
563
|
};
|
package/src/helpers.ts
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
|
+
import type React from 'react';
|
|
1
2
|
import type { StripeError } from './types';
|
|
2
|
-
import { Platform, NativeModules } from 'react-native';
|
|
3
3
|
|
|
4
|
+
import { Platform, NativeModules } from 'react-native';
|
|
4
5
|
const TextInputState = require('react-native/Libraries/Components/TextInput/TextInputState');
|
|
5
6
|
|
|
6
7
|
/**
|
|
7
8
|
* Determines whether or not this library is being used inside of
|
|
8
9
|
* an "Expo" project by identifying if Expo's native module
|
|
9
|
-
* infrastructure (react-native-unimodules) is available.
|
|
10
|
+
* infrastructure (react-native-unimodules AKA expo-modules) is available.
|
|
10
11
|
*/
|
|
11
12
|
export const shouldAttributeExpo = () => {
|
|
12
13
|
try {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useCallback, useState } from 'react';
|
|
2
|
-
import type {
|
|
2
|
+
import type { PaymentMethod } from '../types';
|
|
3
3
|
import { useStripe } from './useStripe';
|
|
4
4
|
|
|
5
5
|
/**
|
|
@@ -12,8 +12,8 @@ export function useConfirmPayment() {
|
|
|
12
12
|
const _confirmPayment = useCallback(
|
|
13
13
|
async (
|
|
14
14
|
paymentIntentClientSecret: string,
|
|
15
|
-
data:
|
|
16
|
-
options:
|
|
15
|
+
data: PaymentMethod.ConfirmParams,
|
|
16
|
+
options: PaymentMethod.ConfirmOptions = {}
|
|
17
17
|
) => {
|
|
18
18
|
setLoading(true);
|
|
19
19
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useCallback, useState } from 'react';
|
|
2
|
-
import type {
|
|
2
|
+
import type { SetupIntent } from '../types';
|
|
3
3
|
import { useStripe } from './useStripe';
|
|
4
4
|
|
|
5
5
|
/**
|
|
@@ -12,8 +12,8 @@ export function useConfirmSetupIntent() {
|
|
|
12
12
|
const _confirmSetupIntent = useCallback(
|
|
13
13
|
async (
|
|
14
14
|
paymentIntentClientSecret: string,
|
|
15
|
-
data:
|
|
16
|
-
options:
|
|
15
|
+
data: SetupIntent.ConfirmParams,
|
|
16
|
+
options: SetupIntent.ConfirmOptions = {}
|
|
17
17
|
) => {
|
|
18
18
|
setLoading(true);
|
|
19
19
|
|
|
@@ -15,7 +15,7 @@ export function useGooglePay() {
|
|
|
15
15
|
const [loading, setLoading] = useState(false);
|
|
16
16
|
|
|
17
17
|
const _isGooglePaySupported = useCallback(
|
|
18
|
-
async (params?: GooglePay.
|
|
18
|
+
async (params?: GooglePay.IsSupportedParams) => {
|
|
19
19
|
setLoading(true);
|
|
20
20
|
|
|
21
21
|
const result = await isGooglePaySupported(params);
|
|
@@ -39,7 +39,7 @@ export function useGooglePay() {
|
|
|
39
39
|
);
|
|
40
40
|
|
|
41
41
|
const _presentGooglePay = useCallback(
|
|
42
|
-
async (params: GooglePay.
|
|
42
|
+
async (params: GooglePay.PresentParams) => {
|
|
43
43
|
setLoading(true);
|
|
44
44
|
|
|
45
45
|
const result = await presentGooglePay(params);
|