@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
|
@@ -27,31 +27,26 @@ class CardFieldViewManager : SimpleViewManager<CardFieldView>() {
|
|
|
27
27
|
}
|
|
28
28
|
|
|
29
29
|
@ReactProp(name = "dangerouslyGetFullCardDetails")
|
|
30
|
-
@SuppressWarnings("unused")
|
|
31
30
|
fun setDangerouslyGetFullCardDetails(view: CardFieldView, dangerouslyGetFullCardDetails: Boolean = false) {
|
|
32
31
|
view.setDangerouslyGetFullCardDetails(dangerouslyGetFullCardDetails)
|
|
33
32
|
}
|
|
34
33
|
|
|
35
34
|
@ReactProp(name = "postalCodeEnabled")
|
|
36
|
-
@SuppressWarnings("unused")
|
|
37
35
|
fun setPostalCodeEnabled(view: CardFieldView, postalCodeEnabled: Boolean = true) {
|
|
38
36
|
view.setPostalCodeEnabled(postalCodeEnabled)
|
|
39
37
|
}
|
|
40
38
|
|
|
41
39
|
@ReactProp(name = "autofocus")
|
|
42
|
-
@SuppressWarnings("unused")
|
|
43
40
|
fun setAutofocus(view: CardFieldView, autofocus: Boolean = false) {
|
|
44
41
|
view.setAutofocus(autofocus)
|
|
45
42
|
}
|
|
46
43
|
|
|
47
44
|
@ReactProp(name = "cardStyle")
|
|
48
|
-
@SuppressWarnings("unused")
|
|
49
45
|
fun setCardStyle(view: CardFieldView, cardStyle: ReadableMap) {
|
|
50
46
|
view.setCardStyle(cardStyle)
|
|
51
47
|
}
|
|
52
48
|
|
|
53
49
|
@ReactProp(name = "placeholder")
|
|
54
|
-
@SuppressWarnings("unused")
|
|
55
50
|
fun setPlaceHolders(view: CardFieldView, placeholder: ReadableMap) {
|
|
56
51
|
view.setPlaceHolders(placeholder)
|
|
57
52
|
}
|
|
@@ -27,13 +27,11 @@ class CardFormViewManager : SimpleViewManager<CardFormView>() {
|
|
|
27
27
|
}
|
|
28
28
|
|
|
29
29
|
@ReactProp(name = "dangerouslyGetFullCardDetails")
|
|
30
|
-
@SuppressWarnings("unused")
|
|
31
30
|
fun setDangerouslyGetFullCardDetails(view: CardFormView, dangerouslyGetFullCardDetails: Boolean = false) {
|
|
32
31
|
view.setDangerouslyGetFullCardDetails(dangerouslyGetFullCardDetails)
|
|
33
32
|
}
|
|
34
33
|
|
|
35
34
|
@ReactProp(name = "postalCodeEnabled")
|
|
36
|
-
@SuppressWarnings("unused")
|
|
37
35
|
fun setPostalCodeEnabled(view: CardFormView, postalCodeEnabled: Boolean = false) {
|
|
38
36
|
view.setPostalCodeEnabled(postalCodeEnabled)
|
|
39
37
|
}
|
|
@@ -44,13 +42,11 @@ class CardFormViewManager : SimpleViewManager<CardFormView>() {
|
|
|
44
42
|
// }
|
|
45
43
|
|
|
46
44
|
@ReactProp(name = "autofocus")
|
|
47
|
-
@SuppressWarnings("unused")
|
|
48
45
|
fun setAutofocus(view: CardFormView, autofocus: Boolean = false) {
|
|
49
46
|
view.setAutofocus(autofocus)
|
|
50
47
|
}
|
|
51
48
|
|
|
52
49
|
@ReactProp(name = "cardStyle")
|
|
53
|
-
@SuppressWarnings("unused")
|
|
54
50
|
fun setCardStyle(view: CardFormView, cardStyle: ReadableMap) {
|
|
55
51
|
view.setCardStyle(cardStyle)
|
|
56
52
|
}
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
package com.reactnativestripesdk
|
|
2
|
+
|
|
3
|
+
import android.os.Bundle
|
|
4
|
+
import android.view.LayoutInflater
|
|
5
|
+
import android.view.View
|
|
6
|
+
import android.view.ViewGroup
|
|
7
|
+
import android.widget.FrameLayout
|
|
8
|
+
import androidx.appcompat.app.AppCompatActivity
|
|
9
|
+
import androidx.fragment.app.Fragment
|
|
10
|
+
import com.facebook.react.bridge.Promise
|
|
11
|
+
import com.facebook.react.bridge.ReactApplicationContext
|
|
12
|
+
import com.stripe.android.model.PaymentIntent
|
|
13
|
+
import com.stripe.android.model.SetupIntent
|
|
14
|
+
import com.stripe.android.model.StripeIntent
|
|
15
|
+
import com.stripe.android.payments.bankaccount.CollectBankAccountConfiguration
|
|
16
|
+
import com.stripe.android.payments.bankaccount.CollectBankAccountLauncher
|
|
17
|
+
import com.stripe.android.payments.bankaccount.navigation.CollectBankAccountResult
|
|
18
|
+
|
|
19
|
+
class CollectBankAccountLauncherFragment(
|
|
20
|
+
private val context: ReactApplicationContext,
|
|
21
|
+
private val publishableKey: String,
|
|
22
|
+
private val clientSecret: String,
|
|
23
|
+
private val isPaymentIntent: Boolean,
|
|
24
|
+
private val collectParams: CollectBankAccountConfiguration.USBankAccount,
|
|
25
|
+
private val promise: Promise
|
|
26
|
+
) : Fragment() {
|
|
27
|
+
private lateinit var collectBankAccountLauncher: CollectBankAccountLauncher
|
|
28
|
+
|
|
29
|
+
override fun onCreateView(inflater: LayoutInflater, container: ViewGroup?,
|
|
30
|
+
savedInstanceState: Bundle?): View {
|
|
31
|
+
collectBankAccountLauncher = createBankAccountLauncher()
|
|
32
|
+
|
|
33
|
+
return FrameLayout(requireActivity()).also {
|
|
34
|
+
it.visibility = View.GONE
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
override fun onViewCreated(view: View, savedInstanceState: Bundle?) {
|
|
39
|
+
super.onViewCreated(
|
|
40
|
+
view,
|
|
41
|
+
savedInstanceState)
|
|
42
|
+
|
|
43
|
+
if (isPaymentIntent) {
|
|
44
|
+
collectBankAccountLauncher.presentWithPaymentIntent(
|
|
45
|
+
publishableKey,
|
|
46
|
+
clientSecret,
|
|
47
|
+
collectParams
|
|
48
|
+
)
|
|
49
|
+
} else {
|
|
50
|
+
collectBankAccountLauncher.presentWithSetupIntent(
|
|
51
|
+
publishableKey,
|
|
52
|
+
clientSecret,
|
|
53
|
+
collectParams
|
|
54
|
+
)
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
private fun createBankAccountLauncher(): CollectBankAccountLauncher {
|
|
59
|
+
return CollectBankAccountLauncher.create(this) { result ->
|
|
60
|
+
when (result) {
|
|
61
|
+
is CollectBankAccountResult.Completed -> {
|
|
62
|
+
val intent = result.response.intent
|
|
63
|
+
if (intent.status === StripeIntent.Status.RequiresPaymentMethod) {
|
|
64
|
+
promise.resolve(createError(ErrorType.Canceled.toString(), "Bank account collection was canceled."))
|
|
65
|
+
} else if (intent.status === StripeIntent.Status.RequiresConfirmation) {
|
|
66
|
+
promise.resolve(
|
|
67
|
+
if (isPaymentIntent)
|
|
68
|
+
createResult("paymentIntent", mapFromPaymentIntentResult(intent as PaymentIntent))
|
|
69
|
+
else
|
|
70
|
+
createResult("setupIntent", mapFromSetupIntentResult(intent as SetupIntent))
|
|
71
|
+
)
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
is CollectBankAccountResult.Cancelled -> {
|
|
75
|
+
promise.resolve(createError(ErrorType.Canceled.toString(), "Bank account collection was canceled."))
|
|
76
|
+
}
|
|
77
|
+
is CollectBankAccountResult.Failed -> {
|
|
78
|
+
promise.resolve(createError(ErrorType.Failed.toString(), result.error))
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
(context.currentActivity as? AppCompatActivity)?.supportFragmentManager?.beginTransaction()?.remove(this)?.commit()
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
}
|
|
@@ -5,7 +5,6 @@ var ON_PAYMENT_OPTION_ACTION = "com.reactnativestripesdk.PAYMENT_OPTION_ACTION"
|
|
|
5
5
|
var ON_CONFIGURE_FLOW_CONTROLLER = "com.reactnativestripesdk.CONFIGURE_FLOW_CONTROLLER_ACTION"
|
|
6
6
|
var ON_INIT_PAYMENT_SHEET = "com.reactnativestripesdk.INIT_PAYMENT_SHEET"
|
|
7
7
|
|
|
8
|
-
var ON_GOOGLE_PAY_FRAGMENT_CREATED = "com.reactnativestripesdk.ON_GOOGLE_PAY_FRAGMENT_CREATED"
|
|
9
8
|
var ON_INIT_GOOGLE_PAY = "com.reactnativestripesdk.ON_INIT_GOOGLE_PAY"
|
|
10
9
|
var ON_GOOGLE_PAY_RESULT = "com.reactnativestripesdk.ON_GOOGLE_PAY_RESULT"
|
|
11
10
|
var ON_GOOGLE_PAYMENT_METHOD_RESULT = "com.reactnativestripesdk.ON_GOOGLE_PAYMENT_METHOD_RESULT"
|
|
@@ -3,12 +3,16 @@ package com.reactnativestripesdk
|
|
|
3
3
|
import com.facebook.react.bridge.WritableMap
|
|
4
4
|
import com.facebook.react.bridge.WritableNativeMap
|
|
5
5
|
import com.stripe.android.core.exception.APIException
|
|
6
|
+
import com.stripe.android.core.exception.AuthenticationException
|
|
6
7
|
import com.stripe.android.core.exception.InvalidRequestException
|
|
7
|
-
import com.stripe.android.exception.AuthenticationException
|
|
8
8
|
import com.stripe.android.exception.CardException
|
|
9
9
|
import com.stripe.android.model.PaymentIntent
|
|
10
10
|
import com.stripe.android.model.SetupIntent
|
|
11
11
|
|
|
12
|
+
enum class ErrorType {
|
|
13
|
+
Failed, Canceled, Unknown
|
|
14
|
+
}
|
|
15
|
+
|
|
12
16
|
enum class ConfirmPaymentErrorType {
|
|
13
17
|
Failed, Canceled, Unknown
|
|
14
18
|
}
|
|
@@ -17,12 +21,8 @@ enum class CreateTokenErrorType {
|
|
|
17
21
|
Failed
|
|
18
22
|
}
|
|
19
23
|
|
|
20
|
-
enum class NextPaymentActionErrorType {
|
|
21
|
-
Failed, Canceled, Unknown
|
|
22
|
-
}
|
|
23
|
-
|
|
24
24
|
enum class ConfirmSetupIntentErrorType {
|
|
25
|
-
Failed, Canceled
|
|
25
|
+
Failed, Canceled, Unknown
|
|
26
26
|
}
|
|
27
27
|
|
|
28
28
|
enum class RetrievePaymentIntentErrorType {
|
|
@@ -59,6 +59,16 @@ internal fun createError(code: String, message: String?): WritableMap {
|
|
|
59
59
|
return mapError(code, message, message, null, null, null)
|
|
60
60
|
}
|
|
61
61
|
|
|
62
|
+
internal fun createMissingActivityError(): WritableMap {
|
|
63
|
+
return mapError(
|
|
64
|
+
"Failed",
|
|
65
|
+
"Activity doesn't exist yet. You can safely retry this method.",
|
|
66
|
+
null,
|
|
67
|
+
null,
|
|
68
|
+
null,
|
|
69
|
+
null)
|
|
70
|
+
}
|
|
71
|
+
|
|
62
72
|
internal fun createError(code: String, error: PaymentIntent.Error?): WritableMap {
|
|
63
73
|
return mapError(code, error?.message, error?.message, error?.declineCode, error?.type?.code, error?.code)
|
|
64
74
|
}
|
|
@@ -87,9 +87,6 @@ class GooglePayFragment : Fragment() {
|
|
|
87
87
|
readyCallback = ::onGooglePayLauncherReady,
|
|
88
88
|
resultCallback = ::onGooglePayResult
|
|
89
89
|
)
|
|
90
|
-
|
|
91
|
-
val intent = Intent(ON_GOOGLE_PAY_FRAGMENT_CREATED)
|
|
92
|
-
localBroadcastManager.sendBroadcast(intent)
|
|
93
90
|
}
|
|
94
91
|
|
|
95
92
|
fun presentForPaymentIntent(clientSecret: String) {
|
package/android/src/main/java/com/reactnativestripesdk/GooglePayPaymentMethodLauncherFragment.kt
CHANGED
|
@@ -8,11 +8,12 @@ import android.widget.FrameLayout
|
|
|
8
8
|
import androidx.appcompat.app.AppCompatActivity
|
|
9
9
|
import androidx.fragment.app.Fragment
|
|
10
10
|
import com.facebook.react.bridge.Promise
|
|
11
|
+
import com.facebook.react.bridge.ReactApplicationContext
|
|
11
12
|
import com.stripe.android.googlepaylauncher.GooglePayEnvironment
|
|
12
13
|
import com.stripe.android.googlepaylauncher.GooglePayPaymentMethodLauncher
|
|
13
14
|
|
|
14
15
|
class GooglePayPaymentMethodLauncherFragment(
|
|
15
|
-
private val
|
|
16
|
+
private val context: ReactApplicationContext,
|
|
16
17
|
private val isTestEnv: Boolean,
|
|
17
18
|
private val paymentMethodRequired: Boolean,
|
|
18
19
|
private val promise: Promise
|
|
@@ -36,7 +37,7 @@ class GooglePayPaymentMethodLauncherFragment(
|
|
|
36
37
|
),
|
|
37
38
|
readyCallback = {
|
|
38
39
|
promise.resolve(it)
|
|
39
|
-
|
|
40
|
+
(context.currentActivity as? AppCompatActivity)?.supportFragmentManager?.beginTransaction()?.remove(this)?.commit()
|
|
40
41
|
},
|
|
41
42
|
resultCallback = {}
|
|
42
43
|
)
|
|
@@ -106,6 +106,7 @@ internal fun mapPaymentMethodType(type: PaymentMethod.Type?): String {
|
|
|
106
106
|
PaymentMethod.Type.Upi -> "Upi"
|
|
107
107
|
PaymentMethod.Type.WeChatPay -> "WeChatPay"
|
|
108
108
|
PaymentMethod.Type.Klarna -> "Klarna"
|
|
109
|
+
PaymentMethod.Type.USBankAccount -> "USBankAccount"
|
|
109
110
|
else -> "Unknown"
|
|
110
111
|
}
|
|
111
112
|
}
|
|
@@ -132,6 +133,7 @@ internal fun mapToPaymentMethodType(type: String?): PaymentMethod.Type? {
|
|
|
132
133
|
"Upi" -> PaymentMethod.Type.Upi
|
|
133
134
|
"WeChatPay" -> PaymentMethod.Type.WeChatPay
|
|
134
135
|
"Klarna" -> PaymentMethod.Type.Klarna
|
|
136
|
+
"USBankAccount" -> PaymentMethod.Type.USBankAccount
|
|
135
137
|
else -> null
|
|
136
138
|
}
|
|
137
139
|
}
|
|
@@ -213,6 +215,38 @@ internal fun mapFromBankAccount(bankAccount: BankAccount?): WritableMap? {
|
|
|
213
215
|
return bankAccountMap
|
|
214
216
|
}
|
|
215
217
|
|
|
218
|
+
internal fun mapToUSBankAccountHolderType(type: String?): PaymentMethod.USBankAccount.USBankAccountHolderType {
|
|
219
|
+
return when (type) {
|
|
220
|
+
"Company" -> PaymentMethod.USBankAccount.USBankAccountHolderType.COMPANY
|
|
221
|
+
"Individual" -> PaymentMethod.USBankAccount.USBankAccountHolderType.INDIVIDUAL
|
|
222
|
+
else -> PaymentMethod.USBankAccount.USBankAccountHolderType.INDIVIDUAL
|
|
223
|
+
}
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
internal fun mapFromUSBankAccountHolderType(type: PaymentMethod.USBankAccount.USBankAccountHolderType?): String {
|
|
227
|
+
return when (type) {
|
|
228
|
+
PaymentMethod.USBankAccount.USBankAccountHolderType.COMPANY -> "Company"
|
|
229
|
+
PaymentMethod.USBankAccount.USBankAccountHolderType.INDIVIDUAL -> "Individual"
|
|
230
|
+
else -> "Unknown"
|
|
231
|
+
}
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
internal fun mapToUSBankAccountType(type: String?): PaymentMethod.USBankAccount.USBankAccountType {
|
|
235
|
+
return when (type) {
|
|
236
|
+
"Savings" -> PaymentMethod.USBankAccount.USBankAccountType.SAVINGS
|
|
237
|
+
"Checking" -> PaymentMethod.USBankAccount.USBankAccountType.CHECKING
|
|
238
|
+
else -> PaymentMethod.USBankAccount.USBankAccountType.CHECKING
|
|
239
|
+
}
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
internal fun mapFromUSBankAccountType(type: PaymentMethod.USBankAccount.USBankAccountType?): String {
|
|
243
|
+
return when (type) {
|
|
244
|
+
PaymentMethod.USBankAccount.USBankAccountType.CHECKING -> "Checking"
|
|
245
|
+
PaymentMethod.USBankAccount.USBankAccountType.SAVINGS -> "Savings"
|
|
246
|
+
else -> "Unknown"
|
|
247
|
+
}
|
|
248
|
+
}
|
|
249
|
+
|
|
216
250
|
internal fun mapFromCard(card: Card?): WritableMap? {
|
|
217
251
|
val cardMap: WritableMap = WritableNativeMap()
|
|
218
252
|
|
|
@@ -279,6 +313,7 @@ internal fun mapFromPaymentMethod(paymentMethod: PaymentMethod): WritableMap {
|
|
|
279
313
|
val ideal: WritableMap = WritableNativeMap()
|
|
280
314
|
val fpx: WritableMap = WritableNativeMap()
|
|
281
315
|
val upi: WritableMap = WritableNativeMap()
|
|
316
|
+
val usBankAccount: WritableMap = WritableNativeMap()
|
|
282
317
|
|
|
283
318
|
card.putString("brand", mapCardBrand(paymentMethod.card?.brand))
|
|
284
319
|
card.putString("country", paymentMethod.card?.country)
|
|
@@ -315,6 +350,16 @@ internal fun mapFromPaymentMethod(paymentMethod: PaymentMethod): WritableMap {
|
|
|
315
350
|
|
|
316
351
|
upi.putString("vpa", paymentMethod.upi?.vpa)
|
|
317
352
|
|
|
353
|
+
usBankAccount.putString("routingNumber", paymentMethod.usBankAccount?.routingNumber)
|
|
354
|
+
usBankAccount.putString("accountType", mapFromUSBankAccountType(paymentMethod.usBankAccount?.accountType))
|
|
355
|
+
usBankAccount.putString("accountHolderType", mapFromUSBankAccountHolderType(paymentMethod.usBankAccount?.accountHolderType))
|
|
356
|
+
usBankAccount.putString("last4", paymentMethod.usBankAccount?.last4)
|
|
357
|
+
usBankAccount.putString("bankName", paymentMethod.usBankAccount?.bankName)
|
|
358
|
+
usBankAccount.putString("linkedAccount", paymentMethod.usBankAccount?.linkedAccount)
|
|
359
|
+
usBankAccount.putString("fingerprint", paymentMethod.usBankAccount?.fingerprint)
|
|
360
|
+
usBankAccount.putString("preferredNetworks", paymentMethod.usBankAccount?.networks?.preferred)
|
|
361
|
+
usBankAccount.putArray("supportedNetworks", paymentMethod.usBankAccount?.networks?.supported as? ReadableArray)
|
|
362
|
+
|
|
318
363
|
pm.putString("id", paymentMethod.id)
|
|
319
364
|
pm.putString("type", mapPaymentMethodType(paymentMethod.type))
|
|
320
365
|
pm.putBoolean("livemode", paymentMethod.liveMode)
|
|
@@ -328,6 +373,7 @@ internal fun mapFromPaymentMethod(paymentMethod: PaymentMethod): WritableMap {
|
|
|
328
373
|
pm.putMap("Ideal", ideal)
|
|
329
374
|
pm.putMap("Fpx", fpx)
|
|
330
375
|
pm.putMap("Upi", upi)
|
|
376
|
+
pm.putMap("USBankAccount", usBankAccount)
|
|
331
377
|
|
|
332
378
|
return pm
|
|
333
379
|
}
|
|
@@ -377,6 +423,14 @@ internal fun mapFromPaymentIntentResult(paymentIntent: PaymentIntent): WritableM
|
|
|
377
423
|
return map
|
|
378
424
|
}
|
|
379
425
|
|
|
426
|
+
internal fun mapFromMicrodepositType(type: MicrodepositType): String {
|
|
427
|
+
return when (type) {
|
|
428
|
+
MicrodepositType.AMOUNTS -> "amounts"
|
|
429
|
+
MicrodepositType.DESCRIPTOR_CODE -> "descriptorCode"
|
|
430
|
+
else -> "unknown"
|
|
431
|
+
}
|
|
432
|
+
}
|
|
433
|
+
|
|
380
434
|
internal fun mapNextAction(type: NextActionType?, data: NextActionData?): WritableNativeMap? {
|
|
381
435
|
val nextActionMap = WritableNativeMap()
|
|
382
436
|
when (type) {
|
|
@@ -386,15 +440,14 @@ internal fun mapNextAction(type: NextActionType?, data: NextActionData?): Writab
|
|
|
386
440
|
nextActionMap.putString("redirectUrl", it.url.toString())
|
|
387
441
|
}
|
|
388
442
|
}
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
// }
|
|
443
|
+
NextActionType.VerifyWithMicrodeposits -> {
|
|
444
|
+
(data as? NextActionData.VerifyWithMicrodeposits)?.let {
|
|
445
|
+
nextActionMap.putString("type", "verifyWithMicrodeposits")
|
|
446
|
+
nextActionMap.putString("arrivalDate", it.arrivalDate.toString())
|
|
447
|
+
nextActionMap.putString("redirectUrl", it.hostedVerificationUrl)
|
|
448
|
+
nextActionMap.putString("microdepositType", mapFromMicrodepositType(it.microdepositType))
|
|
449
|
+
}
|
|
450
|
+
}
|
|
398
451
|
NextActionType.DisplayOxxoDetails -> {
|
|
399
452
|
(data as? NextActionData.DisplayOxxoDetails)?.let {
|
|
400
453
|
nextActionMap.putString("type", "oxxoVoucher")
|
|
@@ -461,14 +514,14 @@ internal fun mapToAddress(addressMap: ReadableMap?, cardAddress: Address?): Addr
|
|
|
461
514
|
.setLine2(getValOr(addressMap, "line2"))
|
|
462
515
|
.setState(getValOr(addressMap, "state"))
|
|
463
516
|
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
}
|
|
517
|
+
cardAddress?.let { ca ->
|
|
518
|
+
ca.postalCode?.let {
|
|
519
|
+
address.setPostalCode(it)
|
|
520
|
+
}
|
|
521
|
+
ca.country?.let {
|
|
522
|
+
address.setCountry(it)
|
|
471
523
|
}
|
|
524
|
+
}
|
|
472
525
|
|
|
473
526
|
return address.build()
|
|
474
527
|
}
|
|
@@ -477,31 +530,19 @@ internal fun mapToBillingDetails(billingDetails: ReadableMap?, cardAddress: Addr
|
|
|
477
530
|
if (billingDetails == null && cardAddress == null) {
|
|
478
531
|
return null
|
|
479
532
|
}
|
|
480
|
-
|
|
533
|
+
var address: Address? = null
|
|
481
534
|
val paymentMethodBillingDetailsBuilder = PaymentMethod.BillingDetails.Builder()
|
|
482
535
|
|
|
483
536
|
if (billingDetails != null) {
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
.setCity(getValOr(billingDetails, "addressCity"))
|
|
487
|
-
.setCountry(getValOr(billingDetails, "addressCountry"))
|
|
488
|
-
.setLine1(getValOr(billingDetails, "addressLine1"))
|
|
489
|
-
.setLine2(getValOr(billingDetails, "addressLine2"))
|
|
490
|
-
.setState(getValOr(billingDetails, "addressState"))
|
|
537
|
+
address = mapToAddress(getMapOrNull(billingDetails, "address"), cardAddress)
|
|
538
|
+
|
|
491
539
|
paymentMethodBillingDetailsBuilder
|
|
492
540
|
.setName(getValOr(billingDetails, "name"))
|
|
493
541
|
.setPhone(getValOr(billingDetails, "phone"))
|
|
494
542
|
.setEmail(getValOr(billingDetails, "email"))
|
|
495
543
|
}
|
|
496
544
|
|
|
497
|
-
|
|
498
|
-
addressBuilder.setPostalCode(cardAddress.postalCode)
|
|
499
|
-
}
|
|
500
|
-
if (cardAddress?.country?.isNotEmpty() == true) {
|
|
501
|
-
addressBuilder.setCountry(cardAddress.country)
|
|
502
|
-
}
|
|
503
|
-
|
|
504
|
-
paymentMethodBillingDetailsBuilder.setAddress(addressBuilder.build())
|
|
545
|
+
paymentMethodBillingDetailsBuilder.setAddress(address ?: Address.Builder().build())
|
|
505
546
|
return paymentMethodBillingDetailsBuilder.build()
|
|
506
547
|
}
|
|
507
548
|
|
|
@@ -510,16 +551,12 @@ internal fun mapToShippingDetails(shippingDetails: ReadableMap?): ConfirmPayment
|
|
|
510
551
|
return null
|
|
511
552
|
}
|
|
512
553
|
|
|
554
|
+
val address = mapToAddress(getMapOrNull(shippingDetails, "address"), null)
|
|
555
|
+
?: Address.Builder().build()
|
|
556
|
+
|
|
513
557
|
return ConfirmPaymentIntentParams.Shipping(
|
|
514
558
|
name = getValOr(shippingDetails, "name") ?: "",
|
|
515
|
-
address =
|
|
516
|
-
.setLine1(getValOr(shippingDetails, "addressLine1"))
|
|
517
|
-
.setLine2(getValOr(shippingDetails, "addressLine2"))
|
|
518
|
-
.setCity(getValOr(shippingDetails, "addressCity"))
|
|
519
|
-
.setState(getValOr(shippingDetails, "addressState"))
|
|
520
|
-
.setCountry(getValOr(shippingDetails, "addressCountry"))
|
|
521
|
-
.setPostalCode(getValOr(shippingDetails, "addressPostalCode"))
|
|
522
|
-
.build()
|
|
559
|
+
address = address
|
|
523
560
|
)
|
|
524
561
|
}
|
|
525
562
|
|
|
@@ -9,8 +9,7 @@ import androidx.fragment.app.Fragment
|
|
|
9
9
|
import com.facebook.react.bridge.Promise
|
|
10
10
|
import com.stripe.android.ApiResultCallback
|
|
11
11
|
import com.stripe.android.Stripe
|
|
12
|
-
import com.stripe.android.model
|
|
13
|
-
import com.stripe.android.model.StripeIntent
|
|
12
|
+
import com.stripe.android.model.*
|
|
14
13
|
import com.stripe.android.payments.paymentlauncher.PaymentLauncher
|
|
15
14
|
import com.stripe.android.payments.paymentlauncher.PaymentResult
|
|
16
15
|
|
|
@@ -19,10 +18,10 @@ class PaymentLauncherFragment(
|
|
|
19
18
|
private val publishableKey: String,
|
|
20
19
|
private val stripeAccountId: String?,
|
|
21
20
|
) : Fragment() {
|
|
22
|
-
lateinit var paymentLauncher: PaymentLauncher
|
|
23
|
-
|
|
24
|
-
var
|
|
25
|
-
var
|
|
21
|
+
private lateinit var paymentLauncher: PaymentLauncher
|
|
22
|
+
private var clientSecret: String? = null
|
|
23
|
+
private var promise: Promise? = null
|
|
24
|
+
private var isPaymentIntent: Boolean = true
|
|
26
25
|
|
|
27
26
|
override fun onCreateView(inflater: LayoutInflater, container: ViewGroup?,
|
|
28
27
|
savedInstanceState: Bundle?): View {
|
|
@@ -32,14 +31,38 @@ class PaymentLauncherFragment(
|
|
|
32
31
|
}
|
|
33
32
|
}
|
|
34
33
|
|
|
34
|
+
fun handleNextActionForPaymentIntent(clientSecret: String, promise: Promise) {
|
|
35
|
+
this.clientSecret = clientSecret
|
|
36
|
+
this.promise = promise
|
|
37
|
+
paymentLauncher.handleNextActionForPaymentIntent(clientSecret)
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
fun confirm(params: ConfirmPaymentIntentParams, clientSecret: String, promise: Promise) {
|
|
41
|
+
this.clientSecret = clientSecret
|
|
42
|
+
this.promise = promise
|
|
43
|
+
this.isPaymentIntent = true
|
|
44
|
+
paymentLauncher.confirm(params)
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
fun confirm(params: ConfirmSetupIntentParams, clientSecret: String, promise: Promise) {
|
|
48
|
+
this.clientSecret = clientSecret
|
|
49
|
+
this.promise = promise
|
|
50
|
+
this.isPaymentIntent = false
|
|
51
|
+
paymentLauncher.confirm(params)
|
|
52
|
+
}
|
|
53
|
+
|
|
35
54
|
private fun createPaymentLauncher(): PaymentLauncher {
|
|
36
55
|
return PaymentLauncher.create(this, publishableKey, stripeAccountId) { paymentResult ->
|
|
37
56
|
when (paymentResult) {
|
|
38
57
|
is PaymentResult.Completed -> {
|
|
39
58
|
clientSecret?.let {
|
|
40
|
-
retrievePaymentIntent(it, stripeAccountId)
|
|
59
|
+
if (isPaymentIntent) retrievePaymentIntent(it, stripeAccountId)
|
|
60
|
+
else retrieveSetupIntent(it, stripeAccountId)
|
|
41
61
|
} ?: run {
|
|
42
|
-
|
|
62
|
+
promise?.resolve(
|
|
63
|
+
createError(ConfirmPaymentErrorType.Failed.toString(), "Client secret must be set before responding to payment results.")
|
|
64
|
+
)
|
|
65
|
+
?: throw Exception("Client secret must be set before responding to payment results.")
|
|
43
66
|
}
|
|
44
67
|
}
|
|
45
68
|
is PaymentResult.Canceled -> {
|
|
@@ -54,6 +77,46 @@ class PaymentLauncherFragment(
|
|
|
54
77
|
}
|
|
55
78
|
}
|
|
56
79
|
|
|
80
|
+
private fun retrieveSetupIntent(clientSecret: String, stripeAccountId: String?) {
|
|
81
|
+
val promise = promise ?: throw Exception("No promise is set to handle payment results.")
|
|
82
|
+
stripe.retrieveSetupIntent(clientSecret, stripeAccountId, object : ApiResultCallback<SetupIntent> {
|
|
83
|
+
override fun onError(e: Exception) {
|
|
84
|
+
promise.resolve(createError(ConfirmSetupIntentErrorType.Failed.toString(), e))
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
override fun onSuccess(result: SetupIntent) {
|
|
88
|
+
when (result.status) {
|
|
89
|
+
StripeIntent.Status.Succeeded,
|
|
90
|
+
StripeIntent.Status.Processing,
|
|
91
|
+
StripeIntent.Status.RequiresConfirmation,
|
|
92
|
+
StripeIntent.Status.RequiresCapture -> {
|
|
93
|
+
promise.resolve(createResult("setupIntent", mapFromSetupIntentResult(result)))
|
|
94
|
+
}
|
|
95
|
+
StripeIntent.Status.RequiresAction -> {
|
|
96
|
+
if (isNextActionSuccessState(result.nextActionType)) {
|
|
97
|
+
promise.resolve(createResult("setupIntent", mapFromSetupIntentResult(result)))
|
|
98
|
+
} else {
|
|
99
|
+
(result.lastSetupError)?.let {
|
|
100
|
+
promise.resolve(createError(ConfirmSetupIntentErrorType.Canceled.toString(), it))
|
|
101
|
+
} ?: run {
|
|
102
|
+
promise.resolve(createError(ConfirmSetupIntentErrorType.Canceled.toString(), "Setup has been canceled"))
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
StripeIntent.Status.RequiresPaymentMethod -> {
|
|
107
|
+
promise.resolve(createError(ConfirmSetupIntentErrorType.Failed.toString(), result.lastSetupError))
|
|
108
|
+
}
|
|
109
|
+
StripeIntent.Status.Canceled -> {
|
|
110
|
+
promise.resolve(createError(ConfirmSetupIntentErrorType.Canceled.toString(), result.lastSetupError))
|
|
111
|
+
}
|
|
112
|
+
else -> {
|
|
113
|
+
promise.resolve(createError(ConfirmSetupIntentErrorType.Unknown.toString(), "unhandled error: ${result.status}"))
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
})
|
|
118
|
+
}
|
|
119
|
+
|
|
57
120
|
private fun retrievePaymentIntent(clientSecret: String, stripeAccountId: String?) {
|
|
58
121
|
val promise = promise ?: throw Exception("No promise is set to handle payment results.")
|
|
59
122
|
stripe.retrievePaymentIntent(clientSecret, stripeAccountId, object : ApiResultCallback<PaymentIntent> {
|
|
@@ -65,14 +128,13 @@ class PaymentLauncherFragment(
|
|
|
65
128
|
when (result.status) {
|
|
66
129
|
StripeIntent.Status.Succeeded,
|
|
67
130
|
StripeIntent.Status.Processing,
|
|
131
|
+
StripeIntent.Status.RequiresConfirmation,
|
|
68
132
|
StripeIntent.Status.RequiresCapture -> {
|
|
69
|
-
|
|
70
|
-
promise.resolve(paymentIntent)
|
|
133
|
+
promise.resolve(createResult("paymentIntent", mapFromPaymentIntentResult(result)))
|
|
71
134
|
}
|
|
72
135
|
StripeIntent.Status.RequiresAction -> {
|
|
73
136
|
if (isNextActionSuccessState(result.nextActionType)) {
|
|
74
|
-
|
|
75
|
-
promise.resolve(paymentIntent)
|
|
137
|
+
promise.resolve(createResult("paymentIntent", mapFromPaymentIntentResult(result)))
|
|
76
138
|
} else {
|
|
77
139
|
(result.lastPaymentError)?.let {
|
|
78
140
|
promise.resolve(createError(ConfirmPaymentErrorType.Canceled.toString(), it))
|
|
@@ -82,20 +144,13 @@ class PaymentLauncherFragment(
|
|
|
82
144
|
}
|
|
83
145
|
}
|
|
84
146
|
StripeIntent.Status.RequiresPaymentMethod -> {
|
|
85
|
-
|
|
86
|
-
promise.resolve(createError(ConfirmPaymentErrorType.Failed.toString(), error))
|
|
87
|
-
}
|
|
88
|
-
StripeIntent.Status.RequiresConfirmation -> {
|
|
89
|
-
val paymentIntent = createResult("paymentIntent", mapFromPaymentIntentResult(result))
|
|
90
|
-
promise.resolve(paymentIntent)
|
|
147
|
+
promise.resolve(createError(ConfirmPaymentErrorType.Failed.toString(), result.lastPaymentError))
|
|
91
148
|
}
|
|
92
149
|
StripeIntent.Status.Canceled -> {
|
|
93
|
-
|
|
94
|
-
promise.resolve(createError(ConfirmPaymentErrorType.Canceled.toString(), error))
|
|
150
|
+
promise.resolve(createError(ConfirmPaymentErrorType.Canceled.toString(), result.lastPaymentError))
|
|
95
151
|
}
|
|
96
152
|
else -> {
|
|
97
|
-
|
|
98
|
-
promise.resolve(createError(ConfirmPaymentErrorType.Unknown.toString(), errorMessage))
|
|
153
|
+
promise.resolve(createError(ConfirmPaymentErrorType.Unknown.toString(), "unhandled error: ${result.status}"))
|
|
99
154
|
}
|
|
100
155
|
}
|
|
101
156
|
}
|