@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
|
@@ -30,6 +30,7 @@ class PaymentMethodCreateParamsFactory(
|
|
|
30
30
|
PaymentMethod.Type.AfterpayClearpay -> createAfterpayClearpayPaymentConfirmParams()
|
|
31
31
|
PaymentMethod.Type.AuBecsDebit -> createAuBecsDebitPaymentConfirmParams()
|
|
32
32
|
PaymentMethod.Type.Klarna -> createKlarnaPaymentConfirmParams()
|
|
33
|
+
PaymentMethod.Type.USBankAccount -> createUSBankAccountPaymentConfirmParams()
|
|
33
34
|
else -> {
|
|
34
35
|
throw Exception("This paymentMethodType is not supported yet")
|
|
35
36
|
}
|
|
@@ -49,6 +50,7 @@ class PaymentMethodCreateParamsFactory(
|
|
|
49
50
|
PaymentMethod.Type.Bancontact -> createBancontactPaymentSetupParams()
|
|
50
51
|
PaymentMethod.Type.SepaDebit -> createSepaPaymentSetupParams()
|
|
51
52
|
PaymentMethod.Type.AuBecsDebit -> createAuBecsDebitPaymentSetupParams()
|
|
53
|
+
PaymentMethod.Type.USBankAccount -> createUSBankAccountPaymentSetupParams()
|
|
52
54
|
else -> {
|
|
53
55
|
throw Exception("This paymentMethodType is not supported yet")
|
|
54
56
|
}
|
|
@@ -154,8 +156,8 @@ class PaymentMethodCreateParamsFactory(
|
|
|
154
156
|
val sepaParams = PaymentMethodCreateParams.SepaDebit(iban)
|
|
155
157
|
val createParams =
|
|
156
158
|
PaymentMethodCreateParams.create(
|
|
157
|
-
|
|
158
|
-
|
|
159
|
+
sepaDebit = sepaParams,
|
|
160
|
+
billingDetails = it
|
|
159
161
|
)
|
|
160
162
|
|
|
161
163
|
return ConfirmSetupIntentParams.create(
|
|
@@ -170,7 +172,7 @@ class PaymentMethodCreateParamsFactory(
|
|
|
170
172
|
@Throws(PaymentMethodCreateParamsException::class)
|
|
171
173
|
private fun createCardPaymentSetupParams(): ConfirmSetupIntentParams {
|
|
172
174
|
val cardParams = cardFieldView?.cardParams ?: cardFormView?.cardParams
|
|
173
|
-
|
|
175
|
+
?: throw PaymentMethodCreateParamsException("Card details not complete")
|
|
174
176
|
|
|
175
177
|
val paymentMethodCreateParams =
|
|
176
178
|
PaymentMethodCreateParams.create(cardParams, billingDetailsParams)
|
|
@@ -422,11 +424,31 @@ class PaymentMethodCreateParamsFactory(
|
|
|
422
424
|
)
|
|
423
425
|
}
|
|
424
426
|
|
|
427
|
+
@Throws(PaymentMethodCreateParamsException::class)
|
|
428
|
+
private fun createUSBankAccountPaymentSetupParams(): ConfirmSetupIntentParams {
|
|
429
|
+
params.getString("accountNumber")?.let {
|
|
430
|
+
if (billingDetailsParams?.name.isNullOrBlank()) {
|
|
431
|
+
throw PaymentMethodCreateParamsException("When creating a US bank account payment method, you must provide the following billing details: name")
|
|
432
|
+
}
|
|
433
|
+
return ConfirmSetupIntentParams.create(
|
|
434
|
+
paymentMethodCreateParams = createUSBankAccountParams(params),
|
|
435
|
+
clientSecret = clientSecret,
|
|
436
|
+
)
|
|
437
|
+
} ?: run {
|
|
438
|
+
// Payment method is assumed to be already attached through via collectBankAccountForSetup
|
|
439
|
+
return ConfirmSetupIntentParams.create(
|
|
440
|
+
clientSecret = clientSecret,
|
|
441
|
+
paymentMethodType = PaymentMethod.Type.USBankAccount
|
|
442
|
+
)
|
|
443
|
+
}
|
|
444
|
+
}
|
|
445
|
+
|
|
446
|
+
|
|
425
447
|
@Throws(PaymentMethodCreateParamsException::class)
|
|
426
448
|
private fun createKlarnaPaymentConfirmParams(): ConfirmPaymentIntentParams {
|
|
427
449
|
if (billingDetailsParams == null ||
|
|
428
|
-
|
|
429
|
-
|
|
450
|
+
billingDetailsParams.address?.country.isNullOrBlank() ||
|
|
451
|
+
billingDetailsParams.email.isNullOrBlank()
|
|
430
452
|
) {
|
|
431
453
|
throw PaymentMethodCreateParamsException("Klarna requires that you provide the following billing details: email, country")
|
|
432
454
|
}
|
|
@@ -439,6 +461,60 @@ class PaymentMethodCreateParamsFactory(
|
|
|
439
461
|
clientSecret = clientSecret,
|
|
440
462
|
)
|
|
441
463
|
}
|
|
464
|
+
|
|
465
|
+
@Throws(PaymentMethodCreateParamsException::class)
|
|
466
|
+
private fun createUSBankAccountPaymentConfirmParams(): ConfirmPaymentIntentParams {
|
|
467
|
+
params.getString("accountNumber")?.let {
|
|
468
|
+
if (billingDetailsParams?.name.isNullOrBlank()) {
|
|
469
|
+
throw PaymentMethodCreateParamsException("When creating a US bank account payment method, you must provide the following billing details: name")
|
|
470
|
+
}
|
|
471
|
+
|
|
472
|
+
return ConfirmPaymentIntentParams.createWithPaymentMethodCreateParams(
|
|
473
|
+
paymentMethodCreateParams = createUSBankAccountParams(params),
|
|
474
|
+
clientSecret,
|
|
475
|
+
setupFutureUsage = mapToPaymentIntentFutureUsage(getValOr(params, "setupFutureUsage"))
|
|
476
|
+
)
|
|
477
|
+
} ?: run {
|
|
478
|
+
// Payment method is assumed to be already attached through via collectBankAccountForPayment
|
|
479
|
+
return ConfirmPaymentIntentParams.create(
|
|
480
|
+
clientSecret = clientSecret,
|
|
481
|
+
paymentMethodType = PaymentMethod.Type.USBankAccount
|
|
482
|
+
)
|
|
483
|
+
}
|
|
484
|
+
}
|
|
485
|
+
|
|
486
|
+
@Throws(PaymentMethodCreateParamsException::class)
|
|
487
|
+
private fun createUSBankAccountParams(params: ReadableMap): PaymentMethodCreateParams {
|
|
488
|
+
val accountNumber = getValOr(params, "accountNumber", null)
|
|
489
|
+
val routingNumber = getValOr(params, "routingNumber", null)
|
|
490
|
+
|
|
491
|
+
if (accountNumber.isNullOrBlank()) {
|
|
492
|
+
throw PaymentMethodCreateParamsException("When creating a US bank account payment method, you must provide the bank account number")
|
|
493
|
+
} else if (routingNumber.isNullOrBlank()) {
|
|
494
|
+
throw PaymentMethodCreateParamsException("When creating a US bank account payment method, you must provide the bank routing number")
|
|
495
|
+
}
|
|
496
|
+
|
|
497
|
+
val usBankAccount = PaymentMethodCreateParams.USBankAccount(
|
|
498
|
+
accountNumber,
|
|
499
|
+
routingNumber,
|
|
500
|
+
mapToUSBankAccountType(
|
|
501
|
+
getValOr(
|
|
502
|
+
params,
|
|
503
|
+
"accountType",
|
|
504
|
+
null)),
|
|
505
|
+
mapToUSBankAccountHolderType(
|
|
506
|
+
getValOr(
|
|
507
|
+
params,
|
|
508
|
+
"accountHolderType",
|
|
509
|
+
null))
|
|
510
|
+
)
|
|
511
|
+
|
|
512
|
+
return PaymentMethodCreateParams.Companion.create(
|
|
513
|
+
usBankAccount,
|
|
514
|
+
billingDetailsParams,
|
|
515
|
+
null
|
|
516
|
+
)
|
|
517
|
+
}
|
|
442
518
|
}
|
|
443
519
|
|
|
444
520
|
class PaymentMethodCreateParamsException(message: String) : Exception(message)
|
|
@@ -8,7 +8,6 @@ class StripeContainerManager : ViewGroupManager<StripeContainerView>() {
|
|
|
8
8
|
override fun getName() = "StripeContainer"
|
|
9
9
|
|
|
10
10
|
@ReactProp(name = "keyboardShouldPersistTaps")
|
|
11
|
-
@SuppressWarnings("unused")
|
|
12
11
|
fun setKeyboardShouldPersistTaps(view: StripeContainerView, keyboardShouldPersistTaps: Boolean) {
|
|
13
12
|
view.setKeyboardShouldPersistTaps(keyboardShouldPersistTaps)
|
|
14
13
|
}
|
|
@@ -7,15 +7,16 @@ import android.content.Intent
|
|
|
7
7
|
import android.content.IntentFilter
|
|
8
8
|
import android.os.Parcelable
|
|
9
9
|
import android.util.Log
|
|
10
|
-
import androidx.activity.ComponentActivity
|
|
11
10
|
import androidx.appcompat.app.AppCompatActivity
|
|
12
11
|
import androidx.localbroadcastmanager.content.LocalBroadcastManager
|
|
13
12
|
import com.facebook.react.bridge.*
|
|
14
13
|
import com.facebook.react.module.annotations.ReactModule
|
|
15
14
|
import com.stripe.android.*
|
|
15
|
+
import com.stripe.android.core.AppInfo
|
|
16
16
|
import com.stripe.android.googlepaylauncher.GooglePayLauncher
|
|
17
17
|
import com.stripe.android.googlepaylauncher.GooglePayPaymentMethodLauncher
|
|
18
18
|
import com.stripe.android.model.*
|
|
19
|
+
import com.stripe.android.payments.bankaccount.CollectBankAccountConfiguration
|
|
19
20
|
import com.stripe.android.paymentsheet.PaymentSheetResult
|
|
20
21
|
import com.stripe.android.view.AddPaymentMethodActivityStarter
|
|
21
22
|
import kotlinx.coroutines.CoroutineScope
|
|
@@ -23,7 +24,7 @@ import kotlinx.coroutines.Dispatchers
|
|
|
23
24
|
import kotlinx.coroutines.launch
|
|
24
25
|
|
|
25
26
|
@ReactModule(name = StripeSdkModule.NAME)
|
|
26
|
-
class StripeSdkModule(reactContext: ReactApplicationContext) : ReactContextBaseJavaModule(reactContext) {
|
|
27
|
+
class StripeSdkModule(private val reactContext: ReactApplicationContext) : ReactContextBaseJavaModule(reactContext) {
|
|
27
28
|
var cardFieldView: CardFieldView? = null
|
|
28
29
|
var cardFormView: CardFormView? = null
|
|
29
30
|
|
|
@@ -40,7 +41,6 @@ class StripeSdkModule(reactContext: ReactApplicationContext) : ReactContextBaseJ
|
|
|
40
41
|
|
|
41
42
|
private var urlScheme: String? = null
|
|
42
43
|
private var confirmPromise: Promise? = null
|
|
43
|
-
private var confirmSetupIntentPromise: Promise? = null
|
|
44
44
|
private var confirmPaymentSheetPaymentPromise: Promise? = null
|
|
45
45
|
private var presentPaymentSheetPromise: Promise? = null
|
|
46
46
|
private var initPaymentSheetPromise: Promise? = null
|
|
@@ -53,34 +53,8 @@ class StripeSdkModule(reactContext: ReactApplicationContext) : ReactContextBaseJ
|
|
|
53
53
|
private val mActivityEventListener = object : BaseActivityEventListener() {
|
|
54
54
|
override fun onActivityResult(activity: Activity, requestCode: Int, resultCode: Int, data: Intent?) {
|
|
55
55
|
if (::stripe.isInitialized) {
|
|
56
|
-
stripe.onSetupResult(requestCode, data, object : ApiResultCallback<SetupIntentResult> {
|
|
57
|
-
override fun onSuccess(result: SetupIntentResult) {
|
|
58
|
-
val setupIntent = result.intent
|
|
59
|
-
when (setupIntent.status) {
|
|
60
|
-
StripeIntent.Status.Succeeded -> {
|
|
61
|
-
confirmSetupIntentPromise?.resolve(createResult("setupIntent", mapFromSetupIntentResult(setupIntent)))
|
|
62
|
-
}
|
|
63
|
-
StripeIntent.Status.Canceled -> {
|
|
64
|
-
confirmSetupIntentPromise?.resolve(createError(ConfirmSetupIntentErrorType.Canceled.toString(), setupIntent.lastSetupError))
|
|
65
|
-
}
|
|
66
|
-
StripeIntent.Status.RequiresAction -> {
|
|
67
|
-
confirmSetupIntentPromise?.resolve(createError(ConfirmSetupIntentErrorType.Canceled.toString(), setupIntent.lastSetupError))
|
|
68
|
-
}
|
|
69
|
-
else -> {
|
|
70
|
-
val errorMessage = "unhandled error: ${setupIntent.status}"
|
|
71
|
-
confirmSetupIntentPromise?.resolve(createError(ConfirmSetupIntentErrorType.Failed.toString(), errorMessage))
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
override fun onError(e: Exception) {
|
|
77
|
-
confirmSetupIntentPromise?.resolve(createError(ConfirmSetupIntentErrorType.Failed.toString(), e))
|
|
78
|
-
}
|
|
79
|
-
})
|
|
80
|
-
|
|
81
56
|
paymentSheetFragment?.activity?.activityResultRegistry?.dispatchResult(requestCode, resultCode, data)
|
|
82
57
|
googlePayFragment?.activity?.activityResultRegistry?.dispatchResult(requestCode, resultCode, data)
|
|
83
|
-
|
|
84
58
|
try {
|
|
85
59
|
val result = AddPaymentMethodActivityStarter.Result.fromIntent(data)
|
|
86
60
|
if (data?.getParcelableExtra<Parcelable>("extra_activity_result") != null) {
|
|
@@ -115,16 +89,17 @@ class StripeSdkModule(reactContext: ReactApplicationContext) : ReactContextBaseJ
|
|
|
115
89
|
|
|
116
90
|
private val googlePayReceiver: BroadcastReceiver = object : BroadcastReceiver() {
|
|
117
91
|
override fun onReceive(context: Context?, intent: Intent) {
|
|
118
|
-
if (intent.action == ON_GOOGLE_PAY_FRAGMENT_CREATED) {
|
|
119
|
-
googlePayFragment = (currentActivity as AppCompatActivity).supportFragmentManager.findFragmentByTag("google_pay_launch_fragment") as GooglePayFragment
|
|
120
|
-
}
|
|
121
92
|
if (intent.action == ON_INIT_GOOGLE_PAY) {
|
|
122
93
|
val isReady = intent.extras?.getBoolean("isReady") ?: false
|
|
123
|
-
|
|
124
94
|
if (isReady) {
|
|
125
95
|
initGooglePayPromise?.resolve(WritableNativeMap())
|
|
126
96
|
} else {
|
|
127
|
-
initGooglePayPromise?.resolve(
|
|
97
|
+
initGooglePayPromise?.resolve(
|
|
98
|
+
createError(
|
|
99
|
+
GooglePayErrorType.Failed.toString(),
|
|
100
|
+
"Google Pay is not available on this device. You can use isGooglePaySupported to preemptively check for Google Pay support."
|
|
101
|
+
)
|
|
102
|
+
)
|
|
128
103
|
}
|
|
129
104
|
}
|
|
130
105
|
if (intent.action == ON_GOOGLE_PAYMENT_METHOD_RESULT) {
|
|
@@ -215,7 +190,6 @@ class StripeSdkModule(reactContext: ReactApplicationContext) : ReactContextBaseJ
|
|
|
215
190
|
}
|
|
216
191
|
|
|
217
192
|
@ReactMethod
|
|
218
|
-
@SuppressWarnings("unused")
|
|
219
193
|
fun initialise(params: ReadableMap, promise: Promise) {
|
|
220
194
|
val publishableKey = getValOr(params, "publishableKey", null) as String
|
|
221
195
|
val appInfo = getMapOrNull(params, "appInfo") as ReadableMap
|
|
@@ -241,77 +215,78 @@ class StripeSdkModule(reactContext: ReactApplicationContext) : ReactContextBaseJ
|
|
|
241
215
|
PaymentConfiguration.init(reactApplicationContext, publishableKey, stripeAccountId)
|
|
242
216
|
|
|
243
217
|
paymentLauncherFragment = PaymentLauncherFragment(stripe, publishableKey, stripeAccountId)
|
|
244
|
-
(
|
|
245
|
-
.
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
218
|
+
getCurrentActivityOrResolveWithError(promise)?.let {
|
|
219
|
+
it.supportFragmentManager.beginTransaction()
|
|
220
|
+
.add(paymentLauncherFragment, "payment_launcher_fragment")
|
|
221
|
+
.commit()
|
|
222
|
+
|
|
223
|
+
val localBroadcastManager = LocalBroadcastManager.getInstance(reactApplicationContext)
|
|
224
|
+
localBroadcastManager.registerReceiver(mPaymentSheetReceiver, IntentFilter(ON_PAYMENT_RESULT_ACTION))
|
|
225
|
+
localBroadcastManager.registerReceiver(mPaymentSheetReceiver, IntentFilter(ON_PAYMENT_OPTION_ACTION))
|
|
226
|
+
localBroadcastManager.registerReceiver(mPaymentSheetReceiver, IntentFilter(ON_CONFIGURE_FLOW_CONTROLLER))
|
|
227
|
+
localBroadcastManager.registerReceiver(mPaymentSheetReceiver, IntentFilter(ON_INIT_PAYMENT_SHEET))
|
|
228
|
+
|
|
229
|
+
localBroadcastManager.registerReceiver(googlePayReceiver, IntentFilter(ON_INIT_GOOGLE_PAY))
|
|
230
|
+
localBroadcastManager.registerReceiver(googlePayReceiver, IntentFilter(ON_GOOGLE_PAY_RESULT))
|
|
231
|
+
localBroadcastManager.registerReceiver(googlePayReceiver, IntentFilter(ON_GOOGLE_PAYMENT_METHOD_RESULT))
|
|
232
|
+
|
|
233
|
+
promise.resolve(null)
|
|
234
|
+
}
|
|
260
235
|
}
|
|
261
236
|
|
|
262
237
|
@ReactMethod
|
|
263
|
-
@SuppressWarnings("unused")
|
|
264
238
|
fun initPaymentSheet(params: ReadableMap, promise: Promise) {
|
|
265
|
-
|
|
239
|
+
getCurrentActivityOrResolveWithError(promise)?.let { activity ->
|
|
240
|
+
this.initPaymentSheetPromise = promise
|
|
266
241
|
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
paymentSheetFragment = PaymentSheetFragment().also {
|
|
275
|
-
val bundle = toBundleObject(params)
|
|
276
|
-
it.arguments = bundle
|
|
242
|
+
paymentSheetFragment = PaymentSheetFragment().also {
|
|
243
|
+
val bundle = toBundleObject(params)
|
|
244
|
+
it.arguments = bundle
|
|
245
|
+
}
|
|
246
|
+
activity.supportFragmentManager.beginTransaction()
|
|
247
|
+
.add(paymentSheetFragment!!, "payment_sheet_launch_fragment")
|
|
248
|
+
.commit()
|
|
277
249
|
}
|
|
278
|
-
activity.supportFragmentManager.beginTransaction()
|
|
279
|
-
.add(paymentSheetFragment!!, "payment_sheet_launch_fragment")
|
|
280
|
-
.commit()
|
|
281
250
|
}
|
|
282
251
|
|
|
283
252
|
@ReactMethod
|
|
284
|
-
@SuppressWarnings("unused")
|
|
285
253
|
fun presentPaymentSheet(promise: Promise) {
|
|
286
254
|
this.presentPaymentSheetPromise = promise
|
|
287
255
|
paymentSheetFragment?.present()
|
|
288
256
|
}
|
|
289
257
|
|
|
290
258
|
@ReactMethod
|
|
291
|
-
@SuppressWarnings("unused")
|
|
292
259
|
fun confirmPaymentSheetPayment(promise: Promise) {
|
|
293
260
|
this.confirmPaymentSheetPaymentPromise = promise
|
|
294
261
|
paymentSheetFragment?.confirmPayment()
|
|
295
262
|
}
|
|
296
263
|
|
|
297
264
|
private fun payWithFpx() {
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
AddPaymentMethodActivityStarter.Args.Builder()
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
265
|
+
getCurrentActivityOrResolveWithError(confirmPromise)?.let {
|
|
266
|
+
AddPaymentMethodActivityStarter(it)
|
|
267
|
+
.startForResult(AddPaymentMethodActivityStarter.Args.Builder()
|
|
268
|
+
.setPaymentMethodType(PaymentMethod.Type.Fpx)
|
|
269
|
+
.build()
|
|
270
|
+
)
|
|
271
|
+
}
|
|
304
272
|
}
|
|
305
273
|
|
|
306
274
|
private fun onFpxPaymentMethodResult(result: AddPaymentMethodActivityStarter.Result) {
|
|
307
275
|
when (result) {
|
|
308
276
|
is AddPaymentMethodActivityStarter.Result.Success -> {
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
277
|
+
if (confirmPaymentClientSecret != null && confirmPromise != null) {
|
|
278
|
+
paymentLauncherFragment.confirm(
|
|
279
|
+
ConfirmPaymentIntentParams.createWithPaymentMethodId(
|
|
280
|
+
result.paymentMethod.id!!,
|
|
281
|
+
confirmPaymentClientSecret!!
|
|
282
|
+
),
|
|
283
|
+
confirmPaymentClientSecret!!,
|
|
284
|
+
confirmPromise!!
|
|
313
285
|
)
|
|
314
|
-
|
|
286
|
+
} else {
|
|
287
|
+
Log.e("StripeReactNative", "FPX payment failed. Promise and/or client secret is not set.")
|
|
288
|
+
confirmPromise?.resolve(createError(ConfirmPaymentErrorType.Failed.toString(), "FPX payment failed."))
|
|
289
|
+
}
|
|
315
290
|
}
|
|
316
291
|
is AddPaymentMethodActivityStarter.Result.Failure -> {
|
|
317
292
|
confirmPromise?.resolve(createError(ConfirmPaymentErrorType.Failed.toString(), result.exception))
|
|
@@ -321,10 +296,10 @@ class StripeSdkModule(reactContext: ReactApplicationContext) : ReactContextBaseJ
|
|
|
321
296
|
}
|
|
322
297
|
}
|
|
323
298
|
this.confirmPaymentClientSecret = null
|
|
299
|
+
this.confirmPromise = null
|
|
324
300
|
}
|
|
325
301
|
|
|
326
302
|
@ReactMethod
|
|
327
|
-
@SuppressWarnings("unused")
|
|
328
303
|
fun createPaymentMethod(data: ReadableMap, options: ReadableMap, promise: Promise) {
|
|
329
304
|
val cardParams = (cardFieldView?.cardParams ?: cardFormView?.cardParams) ?: run {
|
|
330
305
|
promise.resolve(createError("Failed", "Card details not complete"))
|
|
@@ -350,7 +325,6 @@ class StripeSdkModule(reactContext: ReactApplicationContext) : ReactContextBaseJ
|
|
|
350
325
|
}
|
|
351
326
|
|
|
352
327
|
@ReactMethod
|
|
353
|
-
@SuppressWarnings("unused")
|
|
354
328
|
fun createToken(params: ReadableMap, promise: Promise) {
|
|
355
329
|
val type = getValOr(params, "type", null)
|
|
356
330
|
if (type == null) {
|
|
@@ -431,7 +405,6 @@ class StripeSdkModule(reactContext: ReactApplicationContext) : ReactContextBaseJ
|
|
|
431
405
|
}
|
|
432
406
|
|
|
433
407
|
@ReactMethod
|
|
434
|
-
@SuppressWarnings("unused")
|
|
435
408
|
fun createTokenForCVCUpdate(cvc: String, promise: Promise) {
|
|
436
409
|
stripe.createCvcUpdateToken(
|
|
437
410
|
cvc,
|
|
@@ -451,11 +424,11 @@ class StripeSdkModule(reactContext: ReactApplicationContext) : ReactContextBaseJ
|
|
|
451
424
|
}
|
|
452
425
|
|
|
453
426
|
@ReactMethod
|
|
454
|
-
@SuppressWarnings("unused")
|
|
455
427
|
fun handleNextAction(paymentIntentClientSecret: String, promise: Promise) {
|
|
456
|
-
paymentLauncherFragment.
|
|
457
|
-
|
|
458
|
-
|
|
428
|
+
paymentLauncherFragment.handleNextActionForPaymentIntent(
|
|
429
|
+
paymentIntentClientSecret,
|
|
430
|
+
promise
|
|
431
|
+
)
|
|
459
432
|
}
|
|
460
433
|
|
|
461
434
|
// TODO: Uncomment when WeChat is re-enabled in stripe-ios
|
|
@@ -478,20 +451,17 @@ class StripeSdkModule(reactContext: ReactApplicationContext) : ReactContextBaseJ
|
|
|
478
451
|
// }
|
|
479
452
|
|
|
480
453
|
@ReactMethod
|
|
481
|
-
@SuppressWarnings("unused")
|
|
482
454
|
fun confirmPayment(paymentIntentClientSecret: String, params: ReadableMap, options: ReadableMap, promise: Promise) {
|
|
483
455
|
val paymentMethodType = getValOr(params, "type")?.let { mapToPaymentMethodType(it) } ?: run {
|
|
484
456
|
promise.resolve(createError(ConfirmPaymentErrorType.Failed.toString(), "You must provide paymentMethodType"))
|
|
485
457
|
return
|
|
486
458
|
}
|
|
487
459
|
|
|
488
|
-
paymentLauncherFragment.clientSecret = paymentIntentClientSecret
|
|
489
|
-
paymentLauncherFragment.promise = promise
|
|
490
|
-
|
|
491
460
|
val testOfflineBank = getBooleanOrFalse(params, "testOfflineBank")
|
|
492
461
|
|
|
493
462
|
if (paymentMethodType == PaymentMethod.Type.Fpx && !testOfflineBank) {
|
|
494
463
|
confirmPaymentClientSecret = paymentIntentClientSecret
|
|
464
|
+
confirmPromise = promise
|
|
495
465
|
payWithFpx()
|
|
496
466
|
return
|
|
497
467
|
}
|
|
@@ -501,7 +471,7 @@ class StripeSdkModule(reactContext: ReactApplicationContext) : ReactContextBaseJ
|
|
|
501
471
|
// promise.resolve(createError("Failed", "You must provide appId"))
|
|
502
472
|
// return
|
|
503
473
|
// }
|
|
504
|
-
// payWithWeChatPay(paymentIntentClientSecret, appId)
|
|
474
|
+
// payWithWeChatPay(paymentIntentClientSecret, appId, promise)
|
|
505
475
|
//
|
|
506
476
|
// return
|
|
507
477
|
// }
|
|
@@ -514,14 +484,17 @@ class StripeSdkModule(reactContext: ReactApplicationContext) : ReactContextBaseJ
|
|
|
514
484
|
confirmParams.returnUrl = mapToReturnURL(urlScheme)
|
|
515
485
|
}
|
|
516
486
|
confirmParams.shipping = mapToShippingDetails(getMapOrNull(params, "shippingDetails"))
|
|
517
|
-
paymentLauncherFragment.
|
|
487
|
+
paymentLauncherFragment.confirm(
|
|
488
|
+
confirmParams,
|
|
489
|
+
paymentIntentClientSecret,
|
|
490
|
+
promise
|
|
491
|
+
)
|
|
518
492
|
} catch (error: PaymentMethodCreateParamsException) {
|
|
519
493
|
promise.resolve(createError(ConfirmPaymentErrorType.Failed.toString(), error))
|
|
520
494
|
}
|
|
521
495
|
}
|
|
522
496
|
|
|
523
497
|
@ReactMethod
|
|
524
|
-
@SuppressWarnings("unused")
|
|
525
498
|
fun retrievePaymentIntent(clientSecret: String, promise: Promise) {
|
|
526
499
|
CoroutineScope(Dispatchers.IO).launch {
|
|
527
500
|
val paymentIntent = stripe.retrievePaymentIntentSynchronous(clientSecret)
|
|
@@ -534,7 +507,6 @@ class StripeSdkModule(reactContext: ReactApplicationContext) : ReactContextBaseJ
|
|
|
534
507
|
}
|
|
535
508
|
|
|
536
509
|
@ReactMethod
|
|
537
|
-
@SuppressWarnings("unused")
|
|
538
510
|
fun retrieveSetupIntent(clientSecret: String, promise: Promise) {
|
|
539
511
|
CoroutineScope(Dispatchers.IO).launch {
|
|
540
512
|
val setupIntent = stripe.retrieveSetupIntentSynchronous(clientSecret)
|
|
@@ -547,10 +519,7 @@ class StripeSdkModule(reactContext: ReactApplicationContext) : ReactContextBaseJ
|
|
|
547
519
|
}
|
|
548
520
|
|
|
549
521
|
@ReactMethod
|
|
550
|
-
@SuppressWarnings("unused")
|
|
551
522
|
fun confirmSetupIntent(setupIntentClientSecret: String, params: ReadableMap, options: ReadableMap, promise: Promise) {
|
|
552
|
-
confirmSetupIntentPromise = promise
|
|
553
|
-
|
|
554
523
|
val paymentMethodType = getValOr(params, "type")?.let { mapToPaymentMethodType(it) } ?: run {
|
|
555
524
|
promise.resolve(createError(ConfirmPaymentErrorType.Failed.toString(), "You must provide paymentMethodType"))
|
|
556
525
|
return
|
|
@@ -559,50 +528,53 @@ class StripeSdkModule(reactContext: ReactApplicationContext) : ReactContextBaseJ
|
|
|
559
528
|
val factory = PaymentMethodCreateParamsFactory(setupIntentClientSecret, params, cardFieldView, cardFormView)
|
|
560
529
|
|
|
561
530
|
try {
|
|
562
|
-
val activity = currentActivity as ComponentActivity
|
|
563
531
|
val confirmParams = factory.createSetupParams(paymentMethodType)
|
|
564
532
|
urlScheme?.let {
|
|
565
533
|
confirmParams.returnUrl = mapToReturnURL(urlScheme)
|
|
566
534
|
}
|
|
567
|
-
|
|
535
|
+
paymentLauncherFragment.confirm(
|
|
536
|
+
confirmParams,
|
|
537
|
+
setupIntentClientSecret,
|
|
538
|
+
promise
|
|
539
|
+
)
|
|
568
540
|
} catch (error: PaymentMethodCreateParamsException) {
|
|
569
541
|
promise.resolve(createError(ConfirmPaymentErrorType.Failed.toString(), error))
|
|
570
542
|
}
|
|
571
543
|
}
|
|
572
544
|
|
|
573
545
|
@ReactMethod
|
|
574
|
-
@SuppressWarnings("unused")
|
|
575
546
|
fun isGooglePaySupported(params: ReadableMap?, promise: Promise) {
|
|
576
547
|
val fragment = GooglePayPaymentMethodLauncherFragment(
|
|
577
|
-
|
|
548
|
+
reactContext,
|
|
578
549
|
getBooleanOrFalse(params, "testEnv"),
|
|
579
550
|
getBooleanOrFalse(params, "existingPaymentMethodRequired"),
|
|
580
551
|
promise
|
|
581
552
|
)
|
|
582
553
|
|
|
583
|
-
(
|
|
584
|
-
.
|
|
585
|
-
|
|
554
|
+
getCurrentActivityOrResolveWithError(promise)?.let {
|
|
555
|
+
it.supportFragmentManager.beginTransaction()
|
|
556
|
+
.add(fragment, "google_pay_support_fragment")
|
|
557
|
+
.commit()
|
|
558
|
+
}
|
|
586
559
|
}
|
|
587
560
|
|
|
588
561
|
@ReactMethod
|
|
589
|
-
@SuppressWarnings("unused")
|
|
590
562
|
fun initGooglePay(params: ReadableMap, promise: Promise) {
|
|
591
|
-
|
|
592
|
-
val fragment = GooglePayFragment().also {
|
|
563
|
+
googlePayFragment = GooglePayFragment().also {
|
|
593
564
|
val bundle = toBundleObject(params)
|
|
594
565
|
it.arguments = bundle
|
|
595
566
|
}
|
|
596
567
|
|
|
597
|
-
|
|
568
|
+
getCurrentActivityOrResolveWithError(promise)?.let {
|
|
569
|
+
initGooglePayPromise = promise
|
|
598
570
|
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
571
|
+
it.supportFragmentManager.beginTransaction()
|
|
572
|
+
.add(googlePayFragment!!, "google_pay_launch_fragment")
|
|
573
|
+
.commit()
|
|
574
|
+
}
|
|
602
575
|
}
|
|
603
576
|
|
|
604
577
|
@ReactMethod
|
|
605
|
-
@SuppressWarnings("unused")
|
|
606
578
|
fun presentGooglePay(params: ReadableMap, promise: Promise) {
|
|
607
579
|
val clientSecret = getValOr(params, "clientSecret") ?: run {
|
|
608
580
|
promise.resolve(createError(GooglePayErrorType.Failed.toString(), "you must provide clientSecret"))
|
|
@@ -621,7 +593,6 @@ class StripeSdkModule(reactContext: ReactApplicationContext) : ReactContextBaseJ
|
|
|
621
593
|
}
|
|
622
594
|
|
|
623
595
|
@ReactMethod
|
|
624
|
-
@SuppressWarnings("unused")
|
|
625
596
|
fun createGooglePayPaymentMethod(params: ReadableMap, promise: Promise) {
|
|
626
597
|
val currencyCode = getValOr(params, "currencyCode", null) ?: run {
|
|
627
598
|
promise.resolve(createError(GooglePayErrorType.Failed.toString(), "you must provide currencyCode"))
|
|
@@ -635,6 +606,121 @@ class StripeSdkModule(reactContext: ReactApplicationContext) : ReactContextBaseJ
|
|
|
635
606
|
googlePayFragment?.createPaymentMethod(currencyCode, amount)
|
|
636
607
|
}
|
|
637
608
|
|
|
609
|
+
@ReactMethod
|
|
610
|
+
fun collectBankAccount(isPaymentIntent: Boolean, clientSecret: String, params: ReadableMap, promise: Promise) {
|
|
611
|
+
val paymentMethodType = mapToPaymentMethodType(getValOr(params, "type", null))
|
|
612
|
+
if (paymentMethodType != PaymentMethod.Type.USBankAccount) {
|
|
613
|
+
promise.resolve(createError(ErrorType.Failed.toString(), "collectBankAccount currently only accepts the USBankAccount payment method type."))
|
|
614
|
+
return
|
|
615
|
+
}
|
|
616
|
+
|
|
617
|
+
val billingDetails = getMapOrNull(params, "billingDetails")
|
|
618
|
+
|
|
619
|
+
val name = billingDetails?.getString("name")
|
|
620
|
+
if (name.isNullOrEmpty()) {
|
|
621
|
+
promise.resolve(createError(ErrorType.Failed.toString(), "You must provide a name when collecting US bank account details."))
|
|
622
|
+
return
|
|
623
|
+
}
|
|
624
|
+
|
|
625
|
+
val collectParams = CollectBankAccountConfiguration.USBankAccount(
|
|
626
|
+
name,
|
|
627
|
+
billingDetails.getString("email")
|
|
628
|
+
)
|
|
629
|
+
|
|
630
|
+
val fragment = CollectBankAccountLauncherFragment(
|
|
631
|
+
reactContext,
|
|
632
|
+
publishableKey,
|
|
633
|
+
clientSecret,
|
|
634
|
+
isPaymentIntent,
|
|
635
|
+
collectParams,
|
|
636
|
+
promise
|
|
637
|
+
)
|
|
638
|
+
getCurrentActivityOrResolveWithError(promise)?.let {
|
|
639
|
+
it.supportFragmentManager.beginTransaction()
|
|
640
|
+
.add(fragment, "collect_bank_account_launcher_fragment")
|
|
641
|
+
.commit()
|
|
642
|
+
}
|
|
643
|
+
}
|
|
644
|
+
|
|
645
|
+
@ReactMethod
|
|
646
|
+
fun verifyMicrodeposits(isPaymentIntent: Boolean, clientSecret: String, params: ReadableMap, promise: Promise) {
|
|
647
|
+
val amounts = params.getArray("amounts")
|
|
648
|
+
val descriptorCode = params.getString("descriptorCode")
|
|
649
|
+
|
|
650
|
+
if ((amounts != null && descriptorCode != null) || (amounts == null && descriptorCode == null)) {
|
|
651
|
+
promise.resolve(createError(ErrorType.Failed.toString(), "You must provide either amounts OR descriptorCode, not both."))
|
|
652
|
+
return
|
|
653
|
+
}
|
|
654
|
+
|
|
655
|
+
val paymentCallback = object : ApiResultCallback<PaymentIntent> {
|
|
656
|
+
override fun onError(e: Exception) {
|
|
657
|
+
promise.resolve(createError(ErrorType.Failed.toString(), e))
|
|
658
|
+
}
|
|
659
|
+
|
|
660
|
+
override fun onSuccess(result: PaymentIntent) {
|
|
661
|
+
promise.resolve(createResult("paymentIntent", mapFromPaymentIntentResult(result)))
|
|
662
|
+
}
|
|
663
|
+
}
|
|
664
|
+
val setupCallback = object : ApiResultCallback<SetupIntent> {
|
|
665
|
+
override fun onError(e: Exception) {
|
|
666
|
+
promise.resolve(createError(ErrorType.Failed.toString(), e))
|
|
667
|
+
}
|
|
668
|
+
|
|
669
|
+
override fun onSuccess(result: SetupIntent) {
|
|
670
|
+
promise.resolve(createResult("setupIntent", mapFromSetupIntentResult(result)))
|
|
671
|
+
}
|
|
672
|
+
}
|
|
673
|
+
|
|
674
|
+
amounts?.let {
|
|
675
|
+
if (it.size() != 2) {
|
|
676
|
+
promise.resolve(createError(ErrorType.Failed.toString(), "Expected 2 integers in the amounts array, but received ${it.size()}"))
|
|
677
|
+
return
|
|
678
|
+
}
|
|
679
|
+
|
|
680
|
+
if (isPaymentIntent) {
|
|
681
|
+
stripe.verifyPaymentIntentWithMicrodeposits(
|
|
682
|
+
clientSecret,
|
|
683
|
+
it.getInt(0),
|
|
684
|
+
it.getInt(1),
|
|
685
|
+
paymentCallback
|
|
686
|
+
)
|
|
687
|
+
} else {
|
|
688
|
+
stripe.verifySetupIntentWithMicrodeposits(
|
|
689
|
+
clientSecret,
|
|
690
|
+
it.getInt(0),
|
|
691
|
+
it.getInt(1),
|
|
692
|
+
setupCallback
|
|
693
|
+
)
|
|
694
|
+
}
|
|
695
|
+
} ?: descriptorCode?.let {
|
|
696
|
+
if (isPaymentIntent) {
|
|
697
|
+
stripe.verifyPaymentIntentWithMicrodeposits(
|
|
698
|
+
clientSecret,
|
|
699
|
+
it,
|
|
700
|
+
paymentCallback
|
|
701
|
+
)
|
|
702
|
+
} else {
|
|
703
|
+
stripe.verifySetupIntentWithMicrodeposits(
|
|
704
|
+
clientSecret,
|
|
705
|
+
it,
|
|
706
|
+
setupCallback
|
|
707
|
+
)
|
|
708
|
+
}
|
|
709
|
+
}
|
|
710
|
+
}
|
|
711
|
+
|
|
712
|
+
/**
|
|
713
|
+
* Safely get and cast the current activity as an AppCompatActivity. If that fails, the promise
|
|
714
|
+
* provided will be resolved with an error message instructing the user to retry the method.
|
|
715
|
+
*/
|
|
716
|
+
private fun getCurrentActivityOrResolveWithError(promise: Promise?): AppCompatActivity? {
|
|
717
|
+
(currentActivity as? AppCompatActivity)?.let {
|
|
718
|
+
return it
|
|
719
|
+
}
|
|
720
|
+
promise?.resolve(createMissingActivityError())
|
|
721
|
+
return null
|
|
722
|
+
}
|
|
723
|
+
|
|
638
724
|
companion object {
|
|
639
725
|
const val NAME = "StripeSdk"
|
|
640
726
|
}
|
package/ios/.DS_Store
CHANGED
|
Binary file
|