@stripe/stripe-react-native 0.41.0 → 0.43.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/.husky/pre-commit +0 -3
- package/CHANGELOG.md +27 -0
- package/README.md +3 -0
- package/android/.gradle/8.11.1/checksums/checksums.lock +0 -0
- package/android/.gradle/8.11.1/checksums/md5-checksums.bin +0 -0
- package/android/.gradle/8.11.1/checksums/sha1-checksums.bin +0 -0
- package/android/.gradle/8.11.1/executionHistory/executionHistory.lock +0 -0
- package/android/.gradle/8.11.1/fileChanges/last-build.bin +0 -0
- package/android/.gradle/8.11.1/fileHashes/fileHashes.lock +0 -0
- package/android/.gradle/8.11.1/gc.properties +0 -0
- package/android/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
- package/android/.gradle/buildOutputCleanup/cache.properties +2 -0
- package/android/.gradle/vcs-1/gc.properties +0 -0
- package/android/build.gradle +7 -1
- package/android/gradle/wrapper/gradle-wrapper.jar +0 -0
- package/android/gradle/wrapper/gradle-wrapper.properties +7 -0
- package/android/gradle.properties +4 -1
- package/android/gradlew +249 -0
- package/android/gradlew.bat +92 -0
- package/android/spotless.gradle +19 -0
- package/android/src/main/java/com/reactnativestripesdk/AuBECSDebitFormView.kt +30 -34
- package/android/src/main/java/com/reactnativestripesdk/AuBECSDebitFormViewManager.kt +20 -10
- package/android/src/main/java/com/reactnativestripesdk/CardChangedEvent.kt +12 -13
- package/android/src/main/java/com/reactnativestripesdk/CardFieldView.kt +242 -105
- package/android/src/main/java/com/reactnativestripesdk/CardFieldViewManager.kt +58 -20
- package/android/src/main/java/com/reactnativestripesdk/CardFocusEvent.kt +8 -11
- package/android/src/main/java/com/reactnativestripesdk/CardFormCompleteEvent.kt +10 -12
- package/android/src/main/java/com/reactnativestripesdk/CardFormView.kt +135 -87
- package/android/src/main/java/com/reactnativestripesdk/CardFormViewManager.kt +57 -22
- package/android/src/main/java/com/reactnativestripesdk/CollectBankAccountLauncherFragment.kt +53 -23
- package/android/src/main/java/com/reactnativestripesdk/FinancialConnectionsSheetFragment.kt +125 -83
- package/android/src/main/java/com/reactnativestripesdk/FormCompleteEvent.kt +9 -11
- package/android/src/main/java/com/reactnativestripesdk/GooglePayButtonManager.kt +16 -9
- package/android/src/main/java/com/reactnativestripesdk/GooglePayButtonView.kt +36 -28
- package/android/src/main/java/com/reactnativestripesdk/GooglePayLauncherFragment.kt +67 -43
- package/android/src/main/java/com/reactnativestripesdk/GooglePayPaymentMethodLauncherFragment.kt +21 -16
- package/android/src/main/java/com/reactnativestripesdk/GooglePayRequestHelper.kt +101 -56
- package/android/src/main/java/com/reactnativestripesdk/PaymentLauncherFragment.kt +244 -166
- package/android/src/main/java/com/reactnativestripesdk/PaymentMethodCreateParamsFactory.kt +183 -123
- package/android/src/main/java/com/reactnativestripesdk/PaymentSheetAppearance.kt +181 -57
- package/android/src/main/java/com/reactnativestripesdk/PaymentSheetFragment.kt +402 -258
- package/android/src/main/java/com/reactnativestripesdk/StripeContainerManager.kt +11 -4
- package/android/src/main/java/com/reactnativestripesdk/StripeContainerView.kt +5 -1
- package/android/src/main/java/com/reactnativestripesdk/StripeSdkModule.kt +654 -299
- package/android/src/main/java/com/reactnativestripesdk/StripeSdkPackage.kt +12 -14
- package/android/src/main/java/com/reactnativestripesdk/addresssheet/AddressLauncherFragment.kt +42 -37
- package/android/src/main/java/com/reactnativestripesdk/addresssheet/AddressSheetEvent.kt +12 -11
- package/android/src/main/java/com/reactnativestripesdk/addresssheet/AddressSheetView.kt +29 -29
- package/android/src/main/java/com/reactnativestripesdk/addresssheet/AddressSheetViewManager.kt +50 -18
- package/android/src/main/java/com/reactnativestripesdk/customersheet/CustomerSheetFragment.kt +227 -147
- package/android/src/main/java/com/reactnativestripesdk/customersheet/ReactNativeCustomerAdapter.kt +15 -18
- package/android/src/main/java/com/reactnativestripesdk/pushprovisioning/AddToWalletButtonManager.kt +33 -15
- package/android/src/main/java/com/reactnativestripesdk/pushprovisioning/AddToWalletButtonView.kt +63 -37
- package/android/src/main/java/com/reactnativestripesdk/pushprovisioning/AddToWalletCompleteEvent.kt +9 -13
- package/android/src/main/java/com/reactnativestripesdk/pushprovisioning/EphemeralKeyProvider.kt +15 -17
- package/android/src/main/java/com/reactnativestripesdk/pushprovisioning/PushProvisioningProxy.kt +76 -60
- package/android/src/main/java/com/reactnativestripesdk/pushprovisioning/TapAndPayProxy.kt +71 -47
- package/android/src/main/java/com/reactnativestripesdk/utils/Errors.kt +117 -51
- package/android/src/main/java/com/reactnativestripesdk/utils/Extensions.kt +4 -3
- package/android/src/main/java/com/reactnativestripesdk/utils/KeepJsAwakeTask.kt +39 -0
- package/android/src/main/java/com/reactnativestripesdk/utils/Mappers.kt +337 -250
- package/android/src/main/java/com/reactnativestripesdk/utils/PostalCodeUtilities.kt +2 -11
- package/ios/CustomerSheet/CustomerSheetUtils.swift +3 -1
- package/ios/FinancialConnections.swift +18 -2
- package/ios/Mappers.swift +23 -0
- package/ios/PaymentMethodFactory.swift +31 -29
- package/ios/StripeSdk+CustomerSheet.swift +2 -1
- package/ios/StripeSdk+PaymentSheet.swift +42 -0
- package/ios/StripeSdk.m +2 -0
- package/ios/StripeSdk.swift +116 -24
- package/lib/commonjs/NativeStripeSdk.js +1 -1
- package/lib/commonjs/NativeStripeSdk.js.map +1 -1
- package/lib/commonjs/components/AddToWalletButton.js +1 -1
- package/lib/commonjs/components/AddToWalletButton.js.map +1 -1
- package/lib/commonjs/components/AddressSheet.js +1 -1
- package/lib/commonjs/components/AddressSheet.js.map +1 -1
- package/lib/commonjs/components/ApplePayButtonNative.js +1 -1
- package/lib/commonjs/components/ApplePayButtonNative.js.map +1 -1
- package/lib/commonjs/components/AuBECSDebitForm.js +1 -1
- package/lib/commonjs/components/AuBECSDebitForm.js.map +1 -1
- package/lib/commonjs/components/CardField.js +1 -1
- package/lib/commonjs/components/CardField.js.map +1 -1
- package/lib/commonjs/components/CardForm.js +1 -1
- package/lib/commonjs/components/CardForm.js.map +1 -1
- package/lib/commonjs/components/CustomerSheet.js +1 -1
- package/lib/commonjs/components/CustomerSheet.js.map +1 -1
- package/lib/commonjs/components/GooglePayButtonNative.js +1 -1
- package/lib/commonjs/components/GooglePayButtonNative.js.map +1 -1
- package/lib/commonjs/components/PlatformPayButton.js +1 -1
- package/lib/commonjs/components/PlatformPayButton.js.map +1 -1
- package/lib/commonjs/components/StripeContainer.js +1 -1
- package/lib/commonjs/components/StripeContainer.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 +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/useFinancialConnectionsSheet.js +1 -1
- package/lib/commonjs/hooks/useFinancialConnectionsSheet.js.map +1 -1
- package/lib/commonjs/hooks/usePaymentSheet.js.map +1 -1
- package/lib/commonjs/hooks/usePlatformPay.js.map +1 -1
- package/lib/commonjs/hooks/useStripe.js +1 -1
- package/lib/commonjs/hooks/useStripe.js.map +1 -1
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/package.json +1 -0
- package/lib/commonjs/plugin/withStripe.js +1 -1
- package/lib/commonjs/plugin/withStripe.js.map +1 -1
- package/lib/commonjs/types/ApplePay.js.map +1 -1
- package/lib/commonjs/types/Common.js +1 -1
- package/lib/commonjs/types/Common.js.map +1 -1
- package/lib/commonjs/types/CustomerSheet.js.map +1 -1
- package/lib/commonjs/types/Errors.js +1 -1
- package/lib/commonjs/types/Errors.js.map +1 -1
- package/lib/commonjs/types/FinancialConnections.js +1 -1
- package/lib/commonjs/types/FinancialConnections.js.map +1 -1
- package/lib/commonjs/types/NextAction.js.map +1 -1
- package/lib/commonjs/types/PaymentIntent.js +1 -1
- package/lib/commonjs/types/PaymentIntent.js.map +1 -1
- package/lib/commonjs/types/PaymentMethod.js.map +1 -1
- package/lib/commonjs/types/PaymentSheet.js +1 -1
- package/lib/commonjs/types/PaymentSheet.js.map +1 -1
- package/lib/commonjs/types/PlatformPay.js +1 -1
- package/lib/commonjs/types/PlatformPay.js.map +1 -1
- package/lib/commonjs/types/PushProvisioning.js +1 -1
- package/lib/commonjs/types/PushProvisioning.js.map +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.map +1 -1
- package/lib/commonjs/types/components/ApplePayButtonComponent.js.map +1 -1
- package/lib/commonjs/types/components/AuBECSDebitFormComponent.js.map +1 -1
- package/lib/commonjs/types/components/CardFieldInput.js +1 -1
- package/lib/commonjs/types/components/CardFieldInput.js.map +1 -1
- package/lib/commonjs/types/components/CardFormView.js.map +1 -1
- package/lib/commonjs/types/components/GooglePayButtonComponent.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 +1 -1
- package/lib/module/NativeStripeSdk.js.map +1 -1
- package/lib/module/components/AddToWalletButton.js +1 -1
- package/lib/module/components/AddToWalletButton.js.map +1 -1
- package/lib/module/components/AddressSheet.js +1 -1
- package/lib/module/components/AddressSheet.js.map +1 -1
- package/lib/module/components/ApplePayButtonNative.js +1 -1
- package/lib/module/components/ApplePayButtonNative.js.map +1 -1
- package/lib/module/components/AuBECSDebitForm.js +1 -1
- package/lib/module/components/AuBECSDebitForm.js.map +1 -1
- package/lib/module/components/CardField.js +1 -1
- package/lib/module/components/CardField.js.map +1 -1
- package/lib/module/components/CardForm.js +1 -1
- package/lib/module/components/CardForm.js.map +1 -1
- package/lib/module/components/CustomerSheet.js +1 -1
- package/lib/module/components/CustomerSheet.js.map +1 -1
- package/lib/module/components/GooglePayButtonNative.js +1 -1
- package/lib/module/components/GooglePayButtonNative.js.map +1 -1
- package/lib/module/components/PlatformPayButton.js +1 -1
- package/lib/module/components/PlatformPayButton.js.map +1 -1
- package/lib/module/components/StripeContainer.js +1 -1
- package/lib/module/components/StripeContainer.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 +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/useFinancialConnectionsSheet.js +1 -1
- package/lib/module/hooks/useFinancialConnectionsSheet.js.map +1 -1
- package/lib/module/hooks/usePaymentSheet.js.map +1 -1
- package/lib/module/hooks/usePlatformPay.js.map +1 -1
- package/lib/module/hooks/useStripe.js +1 -1
- package/lib/module/hooks/useStripe.js.map +1 -1
- package/lib/module/index.js.map +1 -1
- package/lib/module/package.json +1 -0
- package/lib/module/plugin/withStripe.js +1 -1
- package/lib/module/plugin/withStripe.js.map +1 -1
- package/lib/module/types/ApplePay.js.map +1 -1
- package/lib/module/types/Common.js +1 -1
- package/lib/module/types/Common.js.map +1 -1
- package/lib/module/types/CustomerSheet.js.map +1 -1
- package/lib/module/types/Errors.js +1 -1
- package/lib/module/types/Errors.js.map +1 -1
- package/lib/module/types/FinancialConnections.js +1 -1
- package/lib/module/types/FinancialConnections.js.map +1 -1
- package/lib/module/types/NextAction.js.map +1 -1
- package/lib/module/types/PaymentIntent.js +1 -1
- package/lib/module/types/PaymentIntent.js.map +1 -1
- package/lib/module/types/PaymentMethod.js.map +1 -1
- package/lib/module/types/PaymentSheet.js +1 -1
- package/lib/module/types/PaymentSheet.js.map +1 -1
- package/lib/module/types/PlatformPay.js +1 -1
- package/lib/module/types/PlatformPay.js.map +1 -1
- package/lib/module/types/PushProvisioning.js +1 -1
- package/lib/module/types/PushProvisioning.js.map +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.map +1 -1
- package/lib/module/types/components/ApplePayButtonComponent.js.map +1 -1
- package/lib/module/types/components/AuBECSDebitFormComponent.js.map +1 -1
- package/lib/module/types/components/CardFieldInput.js +1 -1
- package/lib/module/types/components/CardFieldInput.js.map +1 -1
- package/lib/module/types/components/CardFormView.js.map +1 -1
- package/lib/module/types/components/GooglePayButtonComponent.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 +5 -4
- package/lib/typescript/src/NativeStripeSdk.d.ts.map +1 -0
- package/lib/typescript/src/components/AddToWalletButton.d.ts +3 -1
- package/lib/typescript/src/components/AddToWalletButton.d.ts.map +1 -0
- package/lib/typescript/src/components/AddressSheet.d.ts +4 -2
- package/lib/typescript/src/components/AddressSheet.d.ts.map +1 -0
- package/lib/typescript/src/components/ApplePayButtonNative.d.ts +1 -0
- package/lib/typescript/src/components/ApplePayButtonNative.d.ts.map +1 -0
- package/lib/typescript/src/components/AuBECSDebitForm.d.ts +3 -1
- package/lib/typescript/src/components/AuBECSDebitForm.d.ts.map +1 -0
- package/lib/typescript/src/components/CardField.d.ts +1 -0
- package/lib/typescript/src/components/CardField.d.ts.map +1 -0
- package/lib/typescript/src/components/CardForm.d.ts +1 -0
- package/lib/typescript/src/components/CardForm.d.ts.map +1 -0
- package/lib/typescript/src/components/CustomerSheet.d.ts +2 -1
- package/lib/typescript/src/components/CustomerSheet.d.ts.map +1 -0
- package/lib/typescript/src/components/GooglePayButtonNative.d.ts +1 -0
- package/lib/typescript/src/components/GooglePayButtonNative.d.ts.map +1 -0
- package/lib/typescript/src/components/PlatformPayButton.d.ts +3 -1
- package/lib/typescript/src/components/PlatformPayButton.d.ts.map +1 -0
- package/lib/typescript/src/components/StripeContainer.d.ts +2 -1
- package/lib/typescript/src/components/StripeContainer.d.ts.map +1 -0
- package/lib/typescript/src/components/StripeProvider.d.ts +3 -2
- package/lib/typescript/src/components/StripeProvider.d.ts.map +1 -0
- package/lib/typescript/src/functions.d.ts +12 -7
- package/lib/typescript/src/functions.d.ts.map +1 -0
- package/lib/typescript/src/helpers.d.ts +1 -0
- package/lib/typescript/src/helpers.d.ts.map +1 -0
- package/lib/typescript/src/hooks/useConfirmPayment.d.ts +2 -1
- package/lib/typescript/src/hooks/useConfirmPayment.d.ts.map +1 -0
- package/lib/typescript/src/hooks/useConfirmSetupIntent.d.ts +1 -0
- package/lib/typescript/src/hooks/useConfirmSetupIntent.d.ts.map +1 -0
- package/lib/typescript/src/hooks/useFinancialConnectionsSheet.d.ts +5 -2
- package/lib/typescript/src/hooks/useFinancialConnectionsSheet.d.ts.map +1 -0
- package/lib/typescript/src/hooks/usePaymentSheet.d.ts +2 -1
- package/lib/typescript/src/hooks/usePaymentSheet.d.ts.map +1 -0
- package/lib/typescript/src/hooks/usePlatformPay.d.ts +4 -3
- package/lib/typescript/src/hooks/usePlatformPay.d.ts.map +1 -0
- package/lib/typescript/src/hooks/useStripe.d.ts +11 -8
- package/lib/typescript/src/hooks/useStripe.d.ts.map +1 -0
- package/lib/typescript/src/index.d.ts +1 -0
- package/lib/typescript/src/index.d.ts.map +1 -0
- package/lib/typescript/src/plugin/withStripe.d.ts +2 -1
- package/lib/typescript/src/plugin/withStripe.d.ts.map +1 -0
- package/lib/typescript/src/types/ApplePay.d.ts +6 -5
- package/lib/typescript/src/types/ApplePay.d.ts.map +1 -0
- package/lib/typescript/src/types/Common.d.ts +4 -1
- package/lib/typescript/src/types/Common.d.ts.map +1 -0
- package/lib/typescript/src/types/CustomerSheet.d.ts +12 -4
- package/lib/typescript/src/types/CustomerSheet.d.ts.map +1 -0
- package/lib/typescript/src/types/Errors.d.ts +2 -1
- package/lib/typescript/src/types/Errors.d.ts.map +1 -0
- package/lib/typescript/src/types/FinancialConnections.d.ts +82 -14
- package/lib/typescript/src/types/FinancialConnections.d.ts.map +1 -0
- package/lib/typescript/src/types/NextAction.d.ts +9 -8
- package/lib/typescript/src/types/NextAction.d.ts.map +1 -0
- package/lib/typescript/src/types/PaymentIntent.d.ts +41 -14
- package/lib/typescript/src/types/PaymentIntent.d.ts.map +1 -0
- package/lib/typescript/src/types/PaymentMethod.d.ts +27 -15
- package/lib/typescript/src/types/PaymentMethod.d.ts.map +1 -0
- package/lib/typescript/src/types/PaymentSheet.d.ts +72 -22
- package/lib/typescript/src/types/PaymentSheet.d.ts.map +1 -0
- package/lib/typescript/src/types/PlatformPay.d.ts +22 -21
- package/lib/typescript/src/types/PlatformPay.d.ts.map +1 -0
- package/lib/typescript/src/types/PushProvisioning.d.ts +5 -4
- package/lib/typescript/src/types/PushProvisioning.d.ts.map +1 -0
- package/lib/typescript/src/types/SetupIntent.d.ts +4 -3
- package/lib/typescript/src/types/SetupIntent.d.ts.map +1 -0
- package/lib/typescript/src/types/ThreeDSecure.d.ts +1 -0
- package/lib/typescript/src/types/ThreeDSecure.d.ts.map +1 -0
- package/lib/typescript/src/types/Token.d.ts +10 -9
- package/lib/typescript/src/types/Token.d.ts.map +1 -0
- package/lib/typescript/src/types/components/ApplePayButtonComponent.d.ts +3 -2
- package/lib/typescript/src/types/components/ApplePayButtonComponent.d.ts.map +1 -0
- package/lib/typescript/src/types/components/AuBECSDebitFormComponent.d.ts +1 -0
- package/lib/typescript/src/types/components/AuBECSDebitFormComponent.d.ts.map +1 -0
- package/lib/typescript/src/types/components/CardFieldInput.d.ts +8 -5
- package/lib/typescript/src/types/components/CardFieldInput.d.ts.map +1 -0
- package/lib/typescript/src/types/components/CardFormView.d.ts +9 -6
- package/lib/typescript/src/types/components/CardFormView.d.ts.map +1 -0
- package/lib/typescript/src/types/components/GooglePayButtonComponent.d.ts +1 -0
- package/lib/typescript/src/types/components/GooglePayButtonComponent.d.ts.map +1 -0
- package/lib/typescript/src/types/index.d.ts +24 -23
- package/lib/typescript/src/types/index.d.ts.map +1 -0
- package/package.json +33 -42
- package/src/NativeStripeSdk.tsx +5 -3
- package/src/components/CardField.tsx +1 -1
- package/src/components/CardForm.tsx +12 -9
- package/src/components/CustomerSheet.tsx +4 -6
- package/src/components/StripeProvider.tsx +17 -0
- package/src/functions.ts +70 -16
- package/src/hooks/useFinancialConnectionsSheet.tsx +12 -4
- package/src/hooks/useStripe.tsx +10 -4
- package/src/types/Common.ts +3 -0
- package/src/types/CustomerSheet.ts +7 -0
- package/src/types/FinancialConnections.ts +72 -0
- package/src/types/PaymentIntent.ts +30 -1
- package/src/types/PaymentMethod.ts +13 -1
- package/src/types/PaymentSheet.ts +65 -5
- package/src/types/components/CardFieldInput.ts +8 -4
- package/src/types/components/CardFormView.ts +8 -4
- package/stripe-react-native.podspec +2 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ThreeDSecure.d.ts","sourceRoot":"","sources":["../../../../src/types/ThreeDSecure.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,mBAAoB,SAAQ,KAAK;IAChD,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,KAAK,CAAC,EAAE,UAAU,CAAC;IACnB,aAAa,CAAC,EAAE,kBAAkB,CAAC;IACnC,SAAS,CAAC,EAAE,cAAc,CAAC;IAC3B,YAAY,CAAC,EAAE,WAAW,CAAC;IAC3B,YAAY,CAAC,EAAE,WAAW,CAAC;IAC3B,cAAc,CAAC,EAAE,WAAW,CAAC;IAC7B,UAAU,CAAC,EAAE,WAAW,CAAC;IACzB,YAAY,CAAC,EAAE,WAAW,CAAC;CAC5B;AAED,MAAM,WAAW,KAAM,SAAQ,QAAQ,EAAE,YAAY;CAAG;AAExD,oBAAY,kBAAkB;IAC5B,OAAO,IAAI;IACX,KAAK,IAAI;IACT,gBAAgB,IAAI;CACrB;AAED,MAAM,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,CAAC;IACzB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { Address } from './Common';
|
|
2
|
-
export
|
|
3
|
-
export
|
|
2
|
+
export type CardBrand = 'AmericanExpress' | 'DinersClub' | 'Discover' | 'JCB' | 'MasterCard' | 'UnionPay' | 'Visa' | 'Unknown';
|
|
3
|
+
export type Type = 'Account' | 'BankAccount' | 'Card' | 'CvcUpdate' | 'Person' | 'Pii';
|
|
4
4
|
export interface Result {
|
|
5
5
|
id: string;
|
|
6
6
|
/** The UNIX timestamp (in milliseconds) of the date this token was created. */
|
|
@@ -29,7 +29,7 @@ export interface BankAccount {
|
|
|
29
29
|
fingerprint: string | null;
|
|
30
30
|
last4: string | null;
|
|
31
31
|
}
|
|
32
|
-
export
|
|
32
|
+
export type BankAccountStatus = 'Errored' | 'New' | 'Validated' | 'VerificationFailed' | 'Verified';
|
|
33
33
|
export interface Card {
|
|
34
34
|
id: string;
|
|
35
35
|
country: string;
|
|
@@ -42,18 +42,18 @@ export interface Card {
|
|
|
42
42
|
address: Address;
|
|
43
43
|
name?: string;
|
|
44
44
|
}
|
|
45
|
-
export
|
|
45
|
+
export type CreateParams = CreateCardTokenParams | CreateBankAccountTokenParams | CreatePiiTokenParams;
|
|
46
46
|
/** Creates a single-use token that represents a credit card’s details. Use this in combination with either the CardField or CardForm components. This token can be used in place of a credit card object with any API method. See https://stripe.com/docs/api/tokens/create_card*/
|
|
47
|
-
export
|
|
47
|
+
export type CreateCardTokenParams = {
|
|
48
48
|
type: 'Card';
|
|
49
49
|
address?: Address;
|
|
50
50
|
name?: string;
|
|
51
51
|
currency?: string;
|
|
52
52
|
};
|
|
53
|
-
export
|
|
54
|
-
export
|
|
53
|
+
export type BankAcccountHolderType = 'Company' | 'Individual';
|
|
54
|
+
export type BankAcccountType = 'Checking' | 'Savings';
|
|
55
55
|
/** Creates a single-use token that represents a bank account’s details. This token can be used with any API method in place of a bank account object. See https://stripe.com/docs/api/tokens/create_bank_account */
|
|
56
|
-
export
|
|
56
|
+
export type CreateBankAccountTokenParams = {
|
|
57
57
|
type: 'BankAccount';
|
|
58
58
|
accountHolderName?: string;
|
|
59
59
|
accountHolderType?: BankAcccountHolderType;
|
|
@@ -63,8 +63,9 @@ export declare type CreateBankAccountTokenParams = {
|
|
|
63
63
|
routingNumber?: string;
|
|
64
64
|
};
|
|
65
65
|
/** Creates a single-use token that represents the details of personally identifiable information (PII). See https://stripe.com/docs/api/tokens/create_pii */
|
|
66
|
-
export
|
|
66
|
+
export type CreatePiiTokenParams = {
|
|
67
67
|
type: 'Pii';
|
|
68
68
|
/** The user's personal ID number */
|
|
69
69
|
personalId: string;
|
|
70
70
|
};
|
|
71
|
+
//# sourceMappingURL=Token.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Token.d.ts","sourceRoot":"","sources":["../../../../src/types/Token.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC;AAExC,MAAM,MAAM,SAAS,GACjB,iBAAiB,GACjB,YAAY,GACZ,UAAU,GACV,KAAK,GACL,YAAY,GACZ,UAAU,GACV,MAAM,GACN,SAAS,CAAC;AAEd,MAAM,MAAM,IAAI,GACZ,SAAS,GACT,aAAa,GACb,MAAM,GACN,WAAW,GACX,QAAQ,GACR,KAAK,CAAC;AAEV,MAAM,WAAW,MAAM;IACrB,EAAE,EAAE,MAAM,CAAC;IACX,+EAA+E;IAC/E,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,IAAI,CAAC;IACX,IAAI,EAAE,OAAO,CAAC;IACd,QAAQ,EAAE,OAAO,CAAC;IAClB,IAAI,CAAC,EAAE,IAAI,CAAC;IACZ,WAAW,CAAC,EAAE,WAAW,CAAC;CAC3B;AAED,MAAM,WAAW,WAAW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AE,MAAM,CAAC;CACnB,CAAC;AAEF,MAAM,MAAM,sBAAsB,GAAG,SAAS,GAAG,YAAY,CAAC;AAE9D,MAAM,MAAM,gBAAgB,GAAG,UAAU,GAAG,SAAS,CAAC;AAEtD,oNAAoN;AACpN,MAAM,MAAM,4BAA4B,GAAG;IACzC,IAAI,EAAE,aAAa,CAAC;IACpB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,iBAAiB,CAAC,EAAE,sBAAsB,CAAC;IAC3C,aAAa,EAAE,MAAM,CAAC;IACtB,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,MAAM,CAAC;IACjB,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB,CAAC;AAEF,6JAA6J;AAC7J,MAAM,MAAM,oBAAoB,GAAG;IACjC,IAAI,EAAE,KAAK,CAAC;IACZ,oCAAoC;IACpC,UAAU,EAAE,MAAM,CAAC;CACpB,CAAC"}
|
|
@@ -18,5 +18,6 @@ export interface NativeProps {
|
|
|
18
18
|
}>) => void;
|
|
19
19
|
onOrderTrackingAction?: () => void;
|
|
20
20
|
}
|
|
21
|
-
export
|
|
22
|
-
export
|
|
21
|
+
export type Type = 'plain' | 'buy' | 'setUp' | 'inStore' | 'donate' | 'checkout' | 'book' | 'subscribe' | 'reload' | 'addMoney' | 'topUp' | 'order' | 'rent' | 'support' | 'contribute' | 'tip' | 'continue';
|
|
22
|
+
export type Style = 'white' | 'whiteOutline' | 'black' | 'automatic';
|
|
23
|
+
//# sourceMappingURL=ApplePayButtonComponent.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ApplePayButtonComponent.d.ts","sourceRoot":"","sources":["../../../../../src/types/components/ApplePayButtonComponent.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,oBAAoB,EAAE,MAAM,cAAc,CAAC;AAC/E,OAAO,KAAK,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AACtE,MAAM,WAAW,WAAW;IAC1B,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IAC7B,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,aAAa,CAAC,IAAI,IAAI,CAAC;IACvB,8BAA8B,CAAC,EAAE,CAC/B,KAAK,EAAE,oBAAoB,CAAC;QAC1B,cAAc,EAAE,cAAc,CAAC;KAChC,CAAC,KACC,IAAI,CAAC;IACV,+BAA+B,CAAC,EAAE,CAChC,KAAK,EAAE,oBAAoB,CAAC;QAC1B,eAAe,EAAE,eAAe,CAAC;KAClC,CAAC,KACC,IAAI,CAAC;IACV,yBAAyB,CAAC,EAAE,CAC1B,KAAK,EAAE,oBAAoB,CAAC;QAC1B,UAAU,EAAE,MAAM,CAAC;KACpB,CAAC,KACC,IAAI,CAAC;IACV,qBAAqB,CAAC,EAAE,MAAM,IAAI,CAAC;CACpC;AAED,MAAM,MAAM,IAAI,GACZ,OAAO,GACP,KAAK,GACL,OAAO,GACP,SAAS,GACT,QAAQ,GACR,UAAU,GACV,MAAM,GACN,WAAW,GACX,QAAQ,GACR,UAAU,GACV,OAAO,GACP,OAAO,GACP,MAAM,GACN,SAAS,GACT,YAAY,GACZ,KAAK,GACL,UAAU,CAAC;AAEf,MAAM,MAAM,KAAK,GAAG,OAAO,GAAG,cAAc,GAAG,OAAO,GAAG,WAAW,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AuBECSDebitFormComponent.d.ts","sourceRoot":"","sources":["../../../../../src/types/components/AuBECSDebitFormComponent.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAE/E;;GAEG;AACH,MAAM,WAAW,WAAW;IAC1B,WAAW,EAAE,MAAM,CAAC;IACpB,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IAC7B,SAAS,EAAE,MAAM,CAAC;IAClB,gBAAgB,CAAC,KAAK,EAAE,oBAAoB,CAAC,WAAW,CAAC,GAAG,IAAI,CAAC;CAClE;AAED,MAAM,WAAW,WAAW;IAC1B,aAAa,EAAE,MAAM,CAAC;IACtB,SAAS,EAAE,MAAM,CAAC;IAClB,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,MAAM;IACrB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { NativeSyntheticEvent, StyleProp, ViewStyle } from 'react-native';
|
|
2
2
|
import type { CardBrand } from '../Token';
|
|
3
|
-
export
|
|
3
|
+
export type FieldName = 'CardNumber' | 'Cvc' | 'ExpiryDate' | 'PostalCode';
|
|
4
4
|
export declare enum ValidationState {
|
|
5
5
|
Valid = "Valid",
|
|
6
6
|
Invalid = "Invalid",
|
|
@@ -45,6 +45,10 @@ export interface Placeholders {
|
|
|
45
45
|
cvc?: string;
|
|
46
46
|
postalCode?: string;
|
|
47
47
|
}
|
|
48
|
+
export type OnFocusChangeEvent = NativeSyntheticEvent<{
|
|
49
|
+
focusedField: FieldName | null;
|
|
50
|
+
}>;
|
|
51
|
+
export type OnCardChangeEvent = NativeSyntheticEvent<Details>;
|
|
48
52
|
/**
|
|
49
53
|
* @ignore
|
|
50
54
|
*/
|
|
@@ -54,10 +58,8 @@ export interface NativeProps {
|
|
|
54
58
|
postalCodeEnabled?: boolean;
|
|
55
59
|
autofocus?: boolean;
|
|
56
60
|
countryCode: string | null;
|
|
57
|
-
onCardChange(event:
|
|
58
|
-
onFocusChange(event:
|
|
59
|
-
focusedField: FieldName | null;
|
|
60
|
-
}>): void;
|
|
61
|
+
onCardChange(event: OnCardChangeEvent): void;
|
|
62
|
+
onFocusChange(event: OnFocusChangeEvent): void;
|
|
61
63
|
cardStyle?: Styles;
|
|
62
64
|
placeholders?: Placeholders;
|
|
63
65
|
disabled?: boolean;
|
|
@@ -67,3 +69,4 @@ export interface Methods {
|
|
|
67
69
|
blur(): void;
|
|
68
70
|
clear(): void;
|
|
69
71
|
}
|
|
72
|
+
//# sourceMappingURL=CardFieldInput.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CardFieldInput.d.ts","sourceRoot":"","sources":["../../../../../src/types/components/CardFieldInput.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAC/E,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AAE1C,MAAM,MAAM,SAAS,GAAG,YAAY,GAAG,KAAK,GAAG,YAAY,GAAG,YAAY,CAAC;AAE3E,oBAAY,eAAe;IACzB,KAAK,UAAU;IACf,OAAO,YAAY;IACnB,UAAU,eAAe;IACzB,OAAO,YAAY;CACpB;AAED,MAAM,WAAW,OAAO;IACtB,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,KAAK,EAAE,SAAS,CAAC;IACjB,QAAQ,EAAE,OAAO,CAAC;IAClB,eAAe,EAAE,eAAe,CAAC;IACjC,QAAQ,EAAE,eAAe,CAAC;IAC1B,WAAW,EAAE,eAAe,CAAC;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C,EAAE,MAAM,CAAC;IACnB,YAAY,CAAC,EAAE,YAAY,CAAC;IAC5B,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,MAAM,WAAW,OAAO;IACtB,KAAK,IAAI,IAAI,CAAC;IACd,IAAI,IAAI,IAAI,CAAC;IACb,KAAK,IAAI,IAAI,CAAC;CACf"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { NativeSyntheticEvent, StyleProp, ViewStyle } from 'react-native';
|
|
2
2
|
import type { CardBrand } from '../Token';
|
|
3
|
-
export
|
|
3
|
+
export type FieldName = 'CardNumber' | 'Cvc' | 'ExpiryDate' | 'PostalCode';
|
|
4
4
|
export interface Details {
|
|
5
5
|
last4: string;
|
|
6
6
|
expiryMonth: number;
|
|
@@ -37,10 +37,14 @@ export interface Placeholders {
|
|
|
37
37
|
cvc?: string;
|
|
38
38
|
postalCode?: string;
|
|
39
39
|
}
|
|
40
|
-
export
|
|
40
|
+
export type DefaultValues = {
|
|
41
41
|
/** The 2-letter country code for the country selected by default on Android. If this is null, it is set by the device's configured region in the Settings app. */
|
|
42
42
|
countryCode?: string;
|
|
43
43
|
};
|
|
44
|
+
export type OnFocusChangeEvent = NativeSyntheticEvent<{
|
|
45
|
+
focusedField: FieldName | null;
|
|
46
|
+
}>;
|
|
47
|
+
export type OnFormCompleteEvent = NativeSyntheticEvent<Details>;
|
|
44
48
|
/**
|
|
45
49
|
* @ignore
|
|
46
50
|
*/
|
|
@@ -52,13 +56,12 @@ export interface NativeProps {
|
|
|
52
56
|
placeholders?: Placeholders;
|
|
53
57
|
/** Android only */
|
|
54
58
|
defaultValues?: DefaultValues;
|
|
55
|
-
onFocusChange(event:
|
|
56
|
-
|
|
57
|
-
}>): void;
|
|
58
|
-
onFormComplete(event: NativeSyntheticEvent<Details>): void;
|
|
59
|
+
onFocusChange(event: OnFocusChangeEvent): void;
|
|
60
|
+
onFormComplete(event: OnFormCompleteEvent): void;
|
|
59
61
|
disabled?: boolean;
|
|
60
62
|
}
|
|
61
63
|
export interface Methods {
|
|
62
64
|
focus(): void;
|
|
63
65
|
blur(): void;
|
|
64
66
|
}
|
|
67
|
+
//# sourceMappingURL=CardFormView.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CardFormView.d.ts","sourceRoot":"","sources":["../../../../../src/types/components/CardFormView.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAC/E,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AAE1C,MAAM,MAAM,SAAS,GAAG,YAAY,GAAG,KAAK,GAAG,YAAY,GAAG,YAAY,CAAC;AAE3E,MAAM,WAAW,OAAO;IACtB,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,KAAK,EAAE,SAAS,CAAC;IACjB,QAAQ,EAAE,OAAO,CAAC;IAClB,OAAO,EAAE,MAAM,CAAC;IAChB;;;;;;OAMG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,GAAG,CAAC,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,MAAM;IACrB,eAAe,CAAC,EAAE,MAAM,CAAC;IAGzB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,WAAW,YAAY;IAC3B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,MAAM,aAAa,GAAG;IAC1B,kKAAkK;IAClK,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB,CAAC;AAEF,MAAM,MAAM,kBAAkB,GAAG,oBAAoB,CAAC;IACpD,YAAY,EAAE,SAAS,GAAG,IAAI,CAAC;CAChC,CAAC,CAAC;AAEH,MAAM,MAAM,mBAAmB,GAAG,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAEhE;;GAEG;AACH,MAAM,WAAW,WAAW;IAC1B,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IAC7B,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,mBAAmB;IACnB,YAAY,CAAC,EAAE,YAAY,CAAC;IAC5B,mBAAmB;IACnB,aAAa,CAAC,EAAE,aAAa,CAAC;IAE9B,aAAa,CAAC,KAAK,EAAE,kBAAkB,GAAG,IAAI,CAAC;IAC/C,cAAc,CAAC,KAAK,EAAE,mBAAmB,GAAG,IAAI,CAAC;IACjD,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,MAAM,WAAW,OAAO;IACtB,KAAK,IAAI,IAAI,CAAC;IACd,IAAI,IAAI,IAAI,CAAC;CACd"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GooglePayButtonComponent.d.ts","sourceRoot":"","sources":["../../../../../src/types/components/GooglePayButtonComponent.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzD,MAAM,WAAW,WAAW;IAC1B,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IAC7B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB"}
|
|
@@ -21,7 +21,7 @@ export { PaymentMethodLayout } from './PaymentSheet';
|
|
|
21
21
|
/**
|
|
22
22
|
* @ignore
|
|
23
23
|
*/
|
|
24
|
-
export
|
|
24
|
+
export type Dictionary<T> = {
|
|
25
25
|
[key: string]: T;
|
|
26
26
|
};
|
|
27
27
|
export interface AppInfo {
|
|
@@ -30,84 +30,84 @@ export interface AppInfo {
|
|
|
30
30
|
url?: string;
|
|
31
31
|
version?: string;
|
|
32
32
|
}
|
|
33
|
-
export
|
|
33
|
+
export type CreatePaymentMethodResult = {
|
|
34
34
|
paymentMethod: PaymentMethod.Result;
|
|
35
35
|
error?: undefined;
|
|
36
36
|
} | {
|
|
37
37
|
paymentMethod?: undefined;
|
|
38
38
|
error: StripeError<CreatePaymentMethodError>;
|
|
39
39
|
};
|
|
40
|
-
export
|
|
40
|
+
export type RetrievePaymentIntentResult = {
|
|
41
41
|
paymentIntent: PaymentIntent.Result;
|
|
42
42
|
error?: undefined;
|
|
43
43
|
} | {
|
|
44
44
|
paymentIntent?: undefined;
|
|
45
45
|
error: StripeError<RetrievePaymentIntentError>;
|
|
46
46
|
};
|
|
47
|
-
export
|
|
47
|
+
export type RetrieveSetupIntentResult = {
|
|
48
48
|
setupIntent: SetupIntent.Result;
|
|
49
49
|
error?: undefined;
|
|
50
50
|
} | {
|
|
51
51
|
setupIntent?: undefined;
|
|
52
52
|
error: StripeError<RetrieveSetupIntentError>;
|
|
53
53
|
};
|
|
54
|
-
export
|
|
54
|
+
export type ConfirmPaymentResult = {
|
|
55
55
|
paymentIntent: PaymentIntent.Result;
|
|
56
56
|
error?: undefined;
|
|
57
57
|
} | {
|
|
58
58
|
paymentIntent?: undefined;
|
|
59
59
|
error: StripeError<ConfirmPaymentError>;
|
|
60
60
|
};
|
|
61
|
-
export
|
|
61
|
+
export type HandleNextActionResult = {
|
|
62
62
|
paymentIntent: PaymentIntent.Result;
|
|
63
63
|
error?: undefined;
|
|
64
64
|
} | {
|
|
65
65
|
paymentIntent?: undefined;
|
|
66
66
|
error: StripeError<CardActionError>;
|
|
67
67
|
};
|
|
68
|
-
export
|
|
68
|
+
export type HandleNextActionForSetupResult = {
|
|
69
69
|
setupIntent: SetupIntent.Result;
|
|
70
70
|
error?: undefined;
|
|
71
71
|
} | {
|
|
72
72
|
setupIntent?: undefined;
|
|
73
73
|
error: StripeError<CardActionError>;
|
|
74
74
|
};
|
|
75
|
-
export
|
|
75
|
+
export type ConfirmSetupIntentResult = {
|
|
76
76
|
setupIntent: SetupIntent.Result;
|
|
77
77
|
error?: undefined;
|
|
78
78
|
} | {
|
|
79
79
|
setupIntent?: undefined;
|
|
80
80
|
error: StripeError<ConfirmSetupIntentError>;
|
|
81
81
|
};
|
|
82
|
-
export
|
|
82
|
+
export type CreateTokenForCVCUpdateResult = {
|
|
83
83
|
tokenId: string;
|
|
84
84
|
error?: undefined;
|
|
85
85
|
} | {
|
|
86
86
|
tokenId?: undefined;
|
|
87
87
|
error: StripeError<ConfirmSetupIntentError>;
|
|
88
88
|
};
|
|
89
|
-
export
|
|
89
|
+
export type InitPaymentSheetResult = {
|
|
90
90
|
paymentOption?: PaymentSheet.PaymentOption;
|
|
91
91
|
error?: undefined;
|
|
92
92
|
} | {
|
|
93
93
|
paymentOption?: undefined;
|
|
94
94
|
error: StripeError<PaymentSheetError>;
|
|
95
95
|
};
|
|
96
|
-
export
|
|
96
|
+
export type PresentPaymentSheetResult = {
|
|
97
97
|
paymentOption?: PaymentSheet.PaymentOption | undefined;
|
|
98
98
|
error?: StripeError<PaymentSheetError> | undefined;
|
|
99
99
|
};
|
|
100
|
-
export
|
|
100
|
+
export type CreateTokenResult = {
|
|
101
101
|
token: Token.Result;
|
|
102
102
|
error?: undefined;
|
|
103
103
|
} | {
|
|
104
104
|
token?: undefined;
|
|
105
105
|
error: StripeError<CreateTokenError>;
|
|
106
106
|
};
|
|
107
|
-
export
|
|
107
|
+
export type ConfirmPaymentSheetPaymentResult = {
|
|
108
108
|
error?: StripeError<PaymentSheetError>;
|
|
109
109
|
};
|
|
110
|
-
export
|
|
110
|
+
export type ApplePayResult = {
|
|
111
111
|
paymentMethod: PaymentMethod.Result;
|
|
112
112
|
error?: undefined;
|
|
113
113
|
} | {
|
|
@@ -125,60 +125,61 @@ export interface InitStripeParams {
|
|
|
125
125
|
export interface InitialiseParams extends InitStripeParams {
|
|
126
126
|
appInfo: AppInfo;
|
|
127
127
|
}
|
|
128
|
-
export
|
|
128
|
+
export type GooglePayInitResult = {
|
|
129
129
|
error?: undefined;
|
|
130
130
|
} | {
|
|
131
131
|
error: StripeError<GooglePayError>;
|
|
132
132
|
};
|
|
133
|
-
export
|
|
133
|
+
export type PayWithGooglePayResult = {
|
|
134
134
|
error?: undefined;
|
|
135
135
|
} | {
|
|
136
136
|
error: StripeError<GooglePayError>;
|
|
137
137
|
};
|
|
138
|
-
export
|
|
138
|
+
export type CreateGooglePayPaymentMethodResult = {
|
|
139
139
|
paymentMethod: PaymentMethod.Result;
|
|
140
140
|
error?: undefined;
|
|
141
141
|
} | {
|
|
142
142
|
paymentMethod?: undefined;
|
|
143
143
|
error: StripeError<GooglePayError>;
|
|
144
144
|
};
|
|
145
|
-
export
|
|
145
|
+
export type OpenApplePaySetupResult = {
|
|
146
146
|
error?: undefined;
|
|
147
147
|
} | {
|
|
148
148
|
error: StripeError<ApplePayError>;
|
|
149
149
|
};
|
|
150
|
-
export
|
|
150
|
+
export type VerifyMicrodepositsParams = {
|
|
151
151
|
amounts: number[];
|
|
152
152
|
descriptorCode?: undefined;
|
|
153
153
|
} | {
|
|
154
154
|
amounts?: undefined;
|
|
155
155
|
descriptorCode: string;
|
|
156
156
|
};
|
|
157
|
-
export
|
|
157
|
+
export type VerifyMicrodepositsForPaymentResult = {
|
|
158
158
|
paymentIntent: PaymentIntent.Result;
|
|
159
159
|
error?: undefined;
|
|
160
160
|
} | {
|
|
161
161
|
paymentIntent?: undefined;
|
|
162
162
|
error: StripeError<VerifyMicrodepositsError>;
|
|
163
163
|
};
|
|
164
|
-
export
|
|
164
|
+
export type VerifyMicrodepositsForSetupResult = {
|
|
165
165
|
setupIntent: SetupIntent.Result;
|
|
166
166
|
error?: undefined;
|
|
167
167
|
} | {
|
|
168
168
|
setupIntent?: undefined;
|
|
169
169
|
error: StripeError<VerifyMicrodepositsError>;
|
|
170
170
|
};
|
|
171
|
-
export
|
|
171
|
+
export type CollectBankAccountForPaymentResult = {
|
|
172
172
|
paymentIntent: PaymentIntent.Result;
|
|
173
173
|
error?: undefined;
|
|
174
174
|
} | {
|
|
175
175
|
paymentIntent?: undefined;
|
|
176
176
|
error: StripeError<CollectBankAccountError>;
|
|
177
177
|
};
|
|
178
|
-
export
|
|
178
|
+
export type CollectBankAccountForSetupResult = {
|
|
179
179
|
setupIntent: SetupIntent.Result;
|
|
180
180
|
error?: undefined;
|
|
181
181
|
} | {
|
|
182
182
|
setupIntent?: undefined;
|
|
183
183
|
error: StripeError<CollectBankAccountError>;
|
|
184
184
|
};
|
|
185
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/types/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,aAAa,EACb,eAAe,EACf,mBAAmB,EACnB,uBAAuB,EACvB,wBAAwB,EACxB,gBAAgB,EAChB,cAAc,EACd,iBAAiB,EACjB,0BAA0B,EAC1B,wBAAwB,EACxB,WAAW,EACX,wBAAwB,EACxB,uBAAuB,EACxB,MAAM,UAAU,CAAC;AAClB,OAAO,KAAK,QAAQ,MAAM,YAAY,CAAC;AACvC,OAAO,KAAK,aAAa,MAAM,iBAAiB,CAAC;AACjD,OAAO,KAAK,aAAa,MAAM,iBAAiB,CAAC;AACjD,OAAO,KAAK,YAAY,MAAM,gBAAgB,CAAC;AAC/C,OAAO,KAAK,WAAW,MAAM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Aa,CAAC,MAAM,CAAC;IACpC,KAAK,CAAC,EAAE,SAAS,CAAC;CACnB,GACD;IACE,aAAa,CAAC,EAAE,SAAS,CAAC;IAC1B,KAAK,EAAE,WAAW,CAAC,wBAAwB,CAAC,CAAC;CAC9C,CAAC;AAEN,MAAM,MAAM,iCAAiC,GACzC;IACE,WAAW,EAAE,WAAW,CAAC,MAAM,CAAC;IAChC,KAAK,CAAC,EAAE,SAAS,CAAC;CACnB,GACD;IACE,WAAW,CAAC,EAAE,SAAS,CAAC;IACxB,KAAK,EAAE,WAAW,CAAC,wBAAwB,CAAC,CAAC;CAC9C,CAAC;AAEN,MAAM,MAAM,kCAAkC,GAC1C;IACE,aAAa,EAAE,aAAa,CAAC,MAAM,CAAC;IACpC,KAAK,CAAC,EAAE,SAAS,CAAC;CACnB,GACD;IACE,aAAa,CAAC,EAAE,SAAS,CAAC;IAC1B,KAAK,EAAE,WAAW,CAAC,uBAAuB,CAAC,CAAC;CAC7C,CAAC;AAEN,MAAM,MAAM,gCAAgC,GACxC;IACE,WAAW,EAAE,WAAW,CAAC,MAAM,CAAC;IAChC,KAAK,CAAC,EAAE,SAAS,CAAC;CACnB,GACD;IACE,WAAW,CAAC,EAAE,SAAS,CAAC;IACxB,KAAK,EAAE,WAAW,CAAC,uBAAuB,CAAC,CAAC;CAC7C,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stripe/stripe-react-native",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.43.0",
|
|
4
4
|
"author": "Stripe",
|
|
5
5
|
"description": "Stripe SDK for React Native",
|
|
6
6
|
"main": "lib/commonjs/index",
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
"test": "jest",
|
|
13
13
|
"typescript": "tsc --noEmit",
|
|
14
14
|
"lint": "eslint \"**/*.{js,ts,tsx}\" --ignore-pattern \"docs/api-reference/*\" --ignore-path .gitignore",
|
|
15
|
-
"prepare": "bob build && husky
|
|
15
|
+
"prepare": "bob build && husky",
|
|
16
16
|
"release": "./scripts/publish",
|
|
17
17
|
"example": "yarn --cwd example",
|
|
18
18
|
"pods": "cd example && npx pod-install --quiet",
|
|
@@ -20,14 +20,18 @@
|
|
|
20
20
|
"bootstrap": "yarn example && yarn && yarn pods",
|
|
21
21
|
"bootstrap-no-pods": "yarn example && yarn",
|
|
22
22
|
"docs": "yarn typedoc ./src/index.tsx --out ./docs/api-reference --tsconfig ./tsconfig.json --readme none --sort source-order",
|
|
23
|
-
"run-example-ios": "cd example
|
|
24
|
-
"run-example-
|
|
23
|
+
"run-example-ios": "cd example && yarn ios --simulator \"iPhone 16\"",
|
|
24
|
+
"run-example-ios:release": "cd example && yarn build:ios && yarn ios --mode Release --simulator \"iPhone 16\" --no-packager",
|
|
25
|
+
"run-example-android": "cd example && yarn android",
|
|
26
|
+
"run-example-android:release": "cd example && yarn build:android && yarn android --mode=release --no-packager",
|
|
25
27
|
"test:e2e:ios": "bash ./scripts/run-maestro-tests ios",
|
|
26
28
|
"test:e2e:android": "bash ./scripts/run-maestro-tests android",
|
|
27
|
-
"test:unit:ios": "xcodebuild test -workspace example/ios/
|
|
29
|
+
"test:unit:ios": "xcodebuild test -workspace example/ios/example.xcworkspace -destination 'platform=iOS Simulator,name=iPhone 16' -scheme stripe-react-native-Unit-Tests",
|
|
28
30
|
"test:unit:android": "cd example/android && ./gradlew connectedAndroidTest",
|
|
29
31
|
"test-ios": "maestro test -e APP_ID=com.stripe.react.native",
|
|
30
|
-
"test-android": "maestro test -e APP_ID=com.
|
|
32
|
+
"test-android": "maestro test -e APP_ID=com.stripe.react.native",
|
|
33
|
+
"format:android:check": "cd android && ./gradlew spotlessCheck",
|
|
34
|
+
"format:android:write": "cd android && ./gradlew spotlessApply"
|
|
31
35
|
},
|
|
32
36
|
"keywords": [
|
|
33
37
|
"react-native",
|
|
@@ -42,26 +46,23 @@
|
|
|
42
46
|
"homepage": "https://github.com/stripe/stripe-react-native/#readme",
|
|
43
47
|
"dependencies": {},
|
|
44
48
|
"devDependencies": {
|
|
45
|
-
"@
|
|
46
|
-
"@
|
|
47
|
-
"@react-native-
|
|
48
|
-
"@
|
|
49
|
-
"@types/
|
|
50
|
-
"
|
|
51
|
-
"
|
|
52
|
-
"eslint": "^
|
|
53
|
-
"
|
|
54
|
-
"
|
|
55
|
-
"
|
|
56
|
-
"
|
|
57
|
-
"
|
|
58
|
-
"
|
|
59
|
-
"
|
|
60
|
-
"
|
|
61
|
-
"
|
|
62
|
-
"ts-node": "^9.1.1",
|
|
63
|
-
"typedoc": "^0.22.12",
|
|
64
|
-
"typescript": "~4.4.4"
|
|
49
|
+
"@expo/config-plugins": "^9.0.16",
|
|
50
|
+
"@react-native/babel-preset": "^0.78.0",
|
|
51
|
+
"@react-native/eslint-config": "^0.78.0",
|
|
52
|
+
"@types/jest": "^29.5.14",
|
|
53
|
+
"@types/react": "^19.0.10",
|
|
54
|
+
"eslint": "^8.57.0",
|
|
55
|
+
"eslint-config-prettier": "^9.1.0",
|
|
56
|
+
"eslint-plugin-prettier": "^5.1.3",
|
|
57
|
+
"husky": "^9.1.7",
|
|
58
|
+
"jest": "^29.7.0",
|
|
59
|
+
"prettier": "^3.5.2",
|
|
60
|
+
"react": "^19.0.0",
|
|
61
|
+
"react-native": "^0.78.0",
|
|
62
|
+
"react-native-builder-bob": "^0.37.0",
|
|
63
|
+
"ts-node": "^10.9.2",
|
|
64
|
+
"typedoc": "^0.27.9",
|
|
65
|
+
"typescript": "^5.7.3"
|
|
65
66
|
},
|
|
66
67
|
"peerDependencies": {
|
|
67
68
|
"expo": ">=46.0.9",
|
|
@@ -83,24 +84,14 @@
|
|
|
83
84
|
},
|
|
84
85
|
"eslintConfig": {
|
|
85
86
|
"extends": [
|
|
86
|
-
"@react-native
|
|
87
|
-
"prettier"
|
|
87
|
+
"@react-native",
|
|
88
|
+
"plugin:prettier/recommended"
|
|
88
89
|
],
|
|
89
90
|
"rules": {
|
|
90
91
|
"no-shadow": "off",
|
|
91
92
|
"@typescript-eslint/no-shadow": [
|
|
92
93
|
"error"
|
|
93
94
|
],
|
|
94
|
-
"prettier/prettier": [
|
|
95
|
-
"error",
|
|
96
|
-
{
|
|
97
|
-
"quoteProps": "consistent",
|
|
98
|
-
"singleQuote": true,
|
|
99
|
-
"tabWidth": 2,
|
|
100
|
-
"trailingComma": "es5",
|
|
101
|
-
"useTabs": false
|
|
102
|
-
}
|
|
103
|
-
],
|
|
104
95
|
"no-restricted-syntax": [
|
|
105
96
|
"error",
|
|
106
97
|
{
|
|
@@ -113,7 +104,8 @@
|
|
|
113
104
|
"eslintIgnore": [
|
|
114
105
|
"node_modules/",
|
|
115
106
|
"lib/",
|
|
116
|
-
"dist/"
|
|
107
|
+
"dist/",
|
|
108
|
+
"server-dist/"
|
|
117
109
|
],
|
|
118
110
|
"prettier": {
|
|
119
111
|
"quoteProps": "consistent",
|
|
@@ -122,7 +114,7 @@
|
|
|
122
114
|
"trailingComma": "es5",
|
|
123
115
|
"useTabs": false
|
|
124
116
|
},
|
|
125
|
-
"
|
|
117
|
+
"react-native-builder-bob": {
|
|
126
118
|
"source": "src",
|
|
127
119
|
"output": "lib",
|
|
128
120
|
"targets": [
|
|
@@ -148,6 +140,5 @@
|
|
|
148
140
|
},
|
|
149
141
|
"resolutions": {
|
|
150
142
|
"simple-plist": "1.3.1"
|
|
151
|
-
}
|
|
152
|
-
"packageManager": "yarn@1.22.22+sha512.a6b2f7906b721bba3d67d4aff083df04dad64c399707841b7acf00f6b133b7ac24255f2652fa22ae3534329dc6180534e98d17432037ff6fd140556e2bb3137e"
|
|
143
|
+
}
|
|
153
144
|
}
|
package/src/NativeStripeSdk.tsx
CHANGED
|
@@ -84,7 +84,7 @@ type NativeStripeSdkType = {
|
|
|
84
84
|
collectBankAccount(
|
|
85
85
|
isPaymentIntent: boolean,
|
|
86
86
|
clientSecret: string,
|
|
87
|
-
params: PaymentMethod.CollectBankAccountParams
|
|
87
|
+
params: Omit<PaymentMethod.CollectBankAccountParams, 'onEvent'>
|
|
88
88
|
): Promise<ConfirmSetupIntentResult | ConfirmPaymentResult>;
|
|
89
89
|
getConstants(): { API_VERSIONS: { CORE: string; ISSUING: string } };
|
|
90
90
|
canAddCardToWallet(
|
|
@@ -94,10 +94,12 @@ type NativeStripeSdkType = {
|
|
|
94
94
|
cardLastFour: string;
|
|
95
95
|
}): Promise<IsCardInWalletResult>;
|
|
96
96
|
collectBankAccountToken(
|
|
97
|
-
clientSecret: string
|
|
97
|
+
clientSecret: string,
|
|
98
|
+
params: PaymentMethod.CollectBankAccountTokenParams
|
|
98
99
|
): Promise<FinancialConnections.TokenResult>;
|
|
99
100
|
collectFinancialConnectionsAccounts(
|
|
100
|
-
clientSecret: string
|
|
101
|
+
clientSecret: string,
|
|
102
|
+
params: FinancialConnections.CollectFinancialConnectionsAccountsParams
|
|
101
103
|
): Promise<FinancialConnections.SessionResult>;
|
|
102
104
|
resetPaymentSheetCustomer(): Promise<null>;
|
|
103
105
|
isPlatformPaySupported(params: {
|
|
@@ -124,7 +124,7 @@ export const CardField = forwardRef<CardFieldInput.Methods, Props>(
|
|
|
124
124
|
);
|
|
125
125
|
|
|
126
126
|
const onFocusHandler = useCallback(
|
|
127
|
-
(event) => {
|
|
127
|
+
(event: CardFieldInput.OnFocusChangeEvent) => {
|
|
128
128
|
const { focusedField } = event.nativeEvent;
|
|
129
129
|
if (focusedField) {
|
|
130
130
|
focusInput(inputRef.current);
|
|
@@ -140,15 +140,18 @@ export const CardForm = forwardRef<CardFormView.Methods, Props>(
|
|
|
140
140
|
blur,
|
|
141
141
|
}));
|
|
142
142
|
|
|
143
|
-
const onFocusHandler = useCallback(
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
143
|
+
const onFocusHandler = useCallback(
|
|
144
|
+
(event: CardFormView.OnFocusChangeEvent) => {
|
|
145
|
+
const { focusedField } = event.nativeEvent;
|
|
146
|
+
if (focusedField) {
|
|
147
|
+
focusInput(inputRef.current);
|
|
148
|
+
// onFocus?.(focusedField);
|
|
149
|
+
} else {
|
|
150
|
+
// onBlur?.();
|
|
151
|
+
}
|
|
152
|
+
},
|
|
153
|
+
[]
|
|
154
|
+
);
|
|
152
155
|
|
|
153
156
|
useLayoutEffect(() => {
|
|
154
157
|
const inputRefValue = inputRef.current;
|
|
@@ -78,9 +78,8 @@ const configureCustomerAdapterEventListeners = (
|
|
|
78
78
|
'onCustomerAdapterAttachPaymentMethodCallback',
|
|
79
79
|
async ({ paymentMethodId }: { paymentMethodId: string }) => {
|
|
80
80
|
if (customerAdapter.attachPaymentMethod) {
|
|
81
|
-
const paymentMethod =
|
|
82
|
-
paymentMethodId
|
|
83
|
-
);
|
|
81
|
+
const paymentMethod =
|
|
82
|
+
await customerAdapter.attachPaymentMethod(paymentMethodId);
|
|
84
83
|
await NativeStripeSdk.customerAdapterAttachPaymentMethodCallback(
|
|
85
84
|
paymentMethod
|
|
86
85
|
);
|
|
@@ -99,9 +98,8 @@ const configureCustomerAdapterEventListeners = (
|
|
|
99
98
|
'onCustomerAdapterDetachPaymentMethodCallback',
|
|
100
99
|
async ({ paymentMethodId }: { paymentMethodId: string }) => {
|
|
101
100
|
if (customerAdapter.detachPaymentMethod) {
|
|
102
|
-
const paymentMethod =
|
|
103
|
-
paymentMethodId
|
|
104
|
-
);
|
|
101
|
+
const paymentMethod =
|
|
102
|
+
await customerAdapter.detachPaymentMethod(paymentMethodId);
|
|
105
103
|
await NativeStripeSdk.customerAdapterDetachPaymentMethodCallback(
|
|
106
104
|
paymentMethod
|
|
107
105
|
);
|
|
@@ -4,6 +4,7 @@ import NativeStripeSdk from '../NativeStripeSdk';
|
|
|
4
4
|
import { isAndroid, shouldAttributeExpo } from '../helpers';
|
|
5
5
|
import type { AppInfo, InitStripeParams, InitialiseParams } from '../types';
|
|
6
6
|
import pjson from '../../package.json';
|
|
7
|
+
import { AppRegistry, Platform } from 'react-native';
|
|
7
8
|
|
|
8
9
|
const EXPO_PARTNER_ID = 'pp_partner_JBN7LkABco2yUu';
|
|
9
10
|
|
|
@@ -27,6 +28,22 @@ const appInfo: AppInfo = {
|
|
|
27
28
|
};
|
|
28
29
|
|
|
29
30
|
export const initStripe = async (params: InitStripeParams): Promise<void> => {
|
|
31
|
+
// On Android when the activity is paused, JS timers are paused,
|
|
32
|
+
// which causes network requests to hang indefinitely on new arch.
|
|
33
|
+
// To work around this, we register a headless task that will keep
|
|
34
|
+
// the JS runtime running while the Stripe UI is opened.
|
|
35
|
+
// This task is started and stopped by the native module.
|
|
36
|
+
if (Platform.OS === 'android') {
|
|
37
|
+
function stripeHeadlessTask() {
|
|
38
|
+
return new Promise<void>(() => {});
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
AppRegistry.registerHeadlessTask(
|
|
42
|
+
'StripeKeepJsAwakeTask',
|
|
43
|
+
() => stripeHeadlessTask
|
|
44
|
+
);
|
|
45
|
+
}
|
|
46
|
+
|
|
30
47
|
const extendedParams: InitialiseParams = { ...params, appInfo };
|
|
31
48
|
NativeStripeSdk.initialise(extendedParams);
|
|
32
49
|
};
|