@stripe/stripe-react-native 0.42.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 +14 -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/fileHashes/fileHashes.lock +0 -0
- package/android/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
- package/android/.gradle/buildOutputCleanup/cache.properties +2 -2
- package/android/.project +0 -11
- package/android/.settings/org.eclipse.buildship.core.prefs +3 -3
- 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 +33 -24
- package/android/src/main/java/com/reactnativestripesdk/FinancialConnectionsSheetFragment.kt +107 -85
- 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 +137 -156
- 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 +295 -258
- package/android/src/main/java/com/reactnativestripesdk/utils/PostalCodeUtilities.kt +2 -11
- package/ios/CustomerSheet/CustomerSheetUtils.swift +3 -1
- package/ios/FinancialConnections.swift +6 -2
- package/ios/StripeSdk+CustomerSheet.swift +2 -1
- package/ios/StripeSdk+PaymentSheet.swift +42 -0
- package/ios/StripeSdk.m +2 -0
- package/ios/StripeSdk.swift +72 -11
- 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.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.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.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.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 +4 -3
- 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 +6 -5
- 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 +3 -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 +21 -17
- 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 +16 -15
- package/lib/typescript/src/types/PaymentIntent.d.ts.map +1 -0
- package/lib/typescript/src/types/PaymentMethod.d.ts +21 -16
- 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 +32 -40
- package/src/NativeStripeSdk.tsx +4 -2
- 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 +13 -14
- package/src/types/Common.ts +3 -0
- package/src/types/CustomerSheet.ts +7 -0
- package/src/types/FinancialConnections.ts +3 -0
- package/src/types/PaymentMethod.ts +5 -1
- package/src/types/PaymentSheet.ts +64 -4
- package/src/types/components/CardFieldInput.ts +8 -4
- package/src/types/components/CardFormView.ts +8 -4
- package/stripe-react-native.podspec +2 -1
- package/android/.gradle/8.9/checksums/checksums.lock +0 -0
- package/android/.gradle/8.9/fileHashes/fileHashes.lock +0 -0
- package/android/.gradle/8.9/gc.properties +0 -0
- /package/android/.gradle/{8.9 → 8.11.1}/fileChanges/last-build.bin +0 -0
- /package/android/.gradle/{8.9/dependencies-accessors → 8.11.1}/gc.properties +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"usePaymentSheet.d.ts","sourceRoot":"","sources":["../../../../src/hooks/usePaymentSheet.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAE7C;;GAEG;AACH,wBAAgB,eAAe;;+BAUZ,YAAY,CAAC,WAAW;oCAUtB,YAAY,CAAC,cAAc;;IA4B5C;;;;OAIG;;EAGN"}
|
|
@@ -10,8 +10,8 @@ export declare function usePlatformPay(): {
|
|
|
10
10
|
* @returns A boolean indicating whether or not the native wallet is supported.
|
|
11
11
|
*/
|
|
12
12
|
isPlatformPaySupported: (params?: {
|
|
13
|
-
googlePay?: PlatformPay.IsGooglePaySupportedParams
|
|
14
|
-
}
|
|
13
|
+
googlePay?: PlatformPay.IsGooglePaySupportedParams;
|
|
14
|
+
}) => Promise<boolean>;
|
|
15
15
|
/**
|
|
16
16
|
* Launches the relevant native wallet sheet (Apple Pay on iOS, Google Pay on Android) in order to confirm a Stripe [SetupIntent](https://stripe.com/docs/api/setup_intents).
|
|
17
17
|
* @param clientSecret The client secret of the SetupIntent.
|
|
@@ -58,7 +58,7 @@ export declare function usePlatformPay(): {
|
|
|
58
58
|
errors: Array<PlatformPay.ApplePaySheetError>;
|
|
59
59
|
};
|
|
60
60
|
}) => Promise<{
|
|
61
|
-
error?: import("../types").StripeError<import("../types").PlatformPayError
|
|
61
|
+
error?: import("../types").StripeError<import("../types").PlatformPayError>;
|
|
62
62
|
}>;
|
|
63
63
|
/**
|
|
64
64
|
* Check if the app & device support adding this card to the native wallet.
|
|
@@ -74,3 +74,4 @@ export declare function usePlatformPay(): {
|
|
|
74
74
|
*/
|
|
75
75
|
openPlatformPaySetup: () => Promise<void>;
|
|
76
76
|
};
|
|
77
|
+
//# sourceMappingURL=usePlatformPay.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"usePlatformPay.d.ts","sourceRoot":"","sources":["../../../../src/hooks/usePlatformPay.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,WAAW,EACX,wBAAwB,EACxB,wBAAwB,EACzB,MAAM,UAAU,CAAC;AAGlB;;GAEG;AACH,wBAAgB,cAAc;IAwH1B,8IAA8I;;IAE9I;;;OAGG;sCA9Ga;QAAE,SAAS,CAAC,EAAE,WAAW,CAAC,0BAA0B,CAAA;KAAE;IAgHtE;;;;;OAKG;kDAzGkB,MAAM,UAAU,WAAW,CAAC,aAAa;IA2G9D;;;;;OAKG;8CApGkB,MAAM,UAAU,WAAW,CAAC,aAAa;IAsG9D;;;;OAIG;6CA9FY,WAAW,CAAC,mBAAmB;IAgG9C;;;;OAIG;qCAxFY,WAAW,CAAC,mBAAmB;IA0F9C;;;OAGG;;IAEH;;;;;;;OAOG;qCAjFY;QACb,QAAQ,EAAE;YACR,SAAS,EAAE,KAAK,CAAC,WAAW,CAAC,eAAe,CAAC,CAAC;YAC9C,eAAe,EAAE,KAAK,CAAC,WAAW,CAAC,cAAc,CAAC,CAAC;YACnD,MAAM,EAAE,KAAK,CAAC,WAAW,CAAC,kBAAkB,CAAC,CAAC;SAC/C,CAAC;KACH;;;IA6ED;;;;;OAKG;iCArEO,wBAAwB,KAC/B,OAAO,CAAC,wBAAwB,CAAC;IAsEpC;;;;OAIG;gCA/D+C,OAAO,CAAC,IAAI,CAAC;EAkElE"}
|
|
@@ -1,19 +1,21 @@
|
|
|
1
1
|
import type { PaymentMethod, PaymentIntent, PaymentSheet, CreatePaymentMethodResult, RetrievePaymentIntentResult, RetrieveSetupIntentResult, ConfirmPaymentResult, HandleNextActionResult, HandleNextActionForSetupResult, ConfirmSetupIntentResult, CreateTokenForCVCUpdateResult, StripeError, InitPaymentSheetResult, PresentPaymentSheetResult, ConfirmPaymentSheetPaymentResult, SetupIntent, CreateTokenResult, Token, VerifyMicrodepositsParams, VerifyMicrodepositsForPaymentResult, VerifyMicrodepositsForSetupResult, CollectBankAccountForSetupResult, CollectBankAccountForPaymentResult, CanAddCardToWalletParams, CanAddCardToWalletResult, FinancialConnections, PlatformPay, PlatformPayError } from '../types';
|
|
2
|
+
import type { CollectBankAccountTokenParams } from 'src/types/PaymentMethod';
|
|
3
|
+
import type { CollectFinancialConnectionsAccountsParams } from 'src/types/FinancialConnections';
|
|
2
4
|
/**
|
|
3
5
|
* useStripe hook
|
|
4
6
|
*/
|
|
5
7
|
export declare function useStripe(): {
|
|
6
8
|
retrievePaymentIntent: (clientSecret: string) => Promise<RetrievePaymentIntentResult>;
|
|
7
9
|
retrieveSetupIntent: (clientSecret: string) => Promise<RetrieveSetupIntentResult>;
|
|
8
|
-
confirmPayment: (paymentIntentClientSecret: string, data?: PaymentIntent.ConfirmParams
|
|
10
|
+
confirmPayment: (paymentIntentClientSecret: string, data?: PaymentIntent.ConfirmParams, options?: PaymentIntent.ConfirmOptions) => Promise<ConfirmPaymentResult>;
|
|
9
11
|
createPaymentMethod: (data: PaymentMethod.CreateParams, options?: PaymentMethod.CreateOptions) => Promise<CreatePaymentMethodResult>;
|
|
10
|
-
handleNextAction: (paymentIntentClientSecret: string, returnURL?: string
|
|
11
|
-
handleNextActionForSetup: (setupIntentClientSecret: string, returnURL?: string
|
|
12
|
+
handleNextAction: (paymentIntentClientSecret: string, returnURL?: string) => Promise<HandleNextActionResult>;
|
|
13
|
+
handleNextActionForSetup: (setupIntentClientSecret: string, returnURL?: string) => Promise<HandleNextActionForSetupResult>;
|
|
12
14
|
confirmSetupIntent: (paymentIntentClientSecret: string, data: SetupIntent.ConfirmParams, options?: SetupIntent.ConfirmOptions) => Promise<ConfirmSetupIntentResult>;
|
|
13
15
|
createTokenForCVCUpdate: (cvc: string) => Promise<CreateTokenForCVCUpdateResult>;
|
|
14
16
|
handleURLCallback: (url: string) => Promise<boolean>;
|
|
15
17
|
confirmPaymentSheetPayment: () => Promise<ConfirmPaymentSheetPaymentResult>;
|
|
16
|
-
presentPaymentSheet: (options?: PaymentSheet.PresentOptions
|
|
18
|
+
presentPaymentSheet: (options?: PaymentSheet.PresentOptions) => Promise<PresentPaymentSheetResult>;
|
|
17
19
|
initPaymentSheet: (params: PaymentSheet.SetupParams) => Promise<InitPaymentSheetResult>;
|
|
18
20
|
createToken: (params: Token.CreateParams) => Promise<CreateTokenResult>;
|
|
19
21
|
collectBankAccountForPayment: (clientSecret: string, params: PaymentMethod.CollectBankAccountParams) => Promise<CollectBankAccountForPaymentResult>;
|
|
@@ -21,8 +23,8 @@ export declare function useStripe(): {
|
|
|
21
23
|
verifyMicrodepositsForPayment: (clientSecret: string, params: VerifyMicrodepositsParams) => Promise<VerifyMicrodepositsForPaymentResult>;
|
|
22
24
|
verifyMicrodepositsForSetup: (clientSecret: string, params: VerifyMicrodepositsParams) => Promise<VerifyMicrodepositsForSetupResult>;
|
|
23
25
|
canAddCardToWallet: (params: CanAddCardToWalletParams) => Promise<CanAddCardToWalletResult>;
|
|
24
|
-
collectBankAccountToken: (clientSecret: string, params?:
|
|
25
|
-
collectFinancialConnectionsAccounts: (clientSecret: string, params?:
|
|
26
|
+
collectBankAccountToken: (clientSecret: string, params?: CollectBankAccountTokenParams) => Promise<FinancialConnections.TokenResult>;
|
|
27
|
+
collectFinancialConnectionsAccounts: (clientSecret: string, params?: CollectFinancialConnectionsAccountsParams) => Promise<FinancialConnections.SessionResult>;
|
|
26
28
|
/**
|
|
27
29
|
* You must call this method when the user logs out from your app. This will ensure that
|
|
28
30
|
* any persisted authentication state in the PaymentSheet, such as authentication cookies,
|
|
@@ -30,8 +32,8 @@ export declare function useStripe(): {
|
|
|
30
32
|
*/
|
|
31
33
|
resetPaymentSheetCustomer: () => Promise<null>;
|
|
32
34
|
isPlatformPaySupported: (params?: {
|
|
33
|
-
googlePay?: PlatformPay.IsGooglePaySupportedParams
|
|
34
|
-
}
|
|
35
|
+
googlePay?: PlatformPay.IsGooglePaySupportedParams;
|
|
36
|
+
}) => Promise<boolean>;
|
|
35
37
|
confirmPlatformPaySetupIntent: (clientSecret: string, params: PlatformPay.ConfirmParams) => Promise<PlatformPay.ConfirmSetupIntentResult>;
|
|
36
38
|
confirmPlatformPayPayment: (clientSecret: string, params: PlatformPay.ConfirmParams) => Promise<PlatformPay.ConfirmPaymentResult>;
|
|
37
39
|
dismissPlatformPay: () => Promise<boolean>;
|
|
@@ -48,3 +50,4 @@ export declare function useStripe(): {
|
|
|
48
50
|
}>;
|
|
49
51
|
openPlatformPaySetup: () => Promise<void>;
|
|
50
52
|
};
|
|
53
|
+
//# sourceMappingURL=useStripe.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useStripe.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useStripe.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,aAAa,EACb,aAAa,EACb,YAAY,EACZ,yBAAyB,EACzB,2BAA2B,EAC3B,yBAAyB,EACzB,oBAAoB,EACpB,sBAAsB,EACtB,8BAA8B,EAC9B,wBAAwB,EACxB,6BAA6B,EAC7B,WAAW,EACX,sBAAsB,EACtB,yBAAyB,EACzB,gCAAgC,EAChC,WAAW,EACX,iBAAiB,EACjB,KAAK,EACL,yBAAyB,EACzB,mCAAmC,EACnC,iCAAiC,EACjC,gCAAgC,EAChC,kCAAkC,EAClC,wBAAwB,EACxB,wBAAw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a,CAAC;AAE5B,cAAc,eAAe,CAAC;AAE9B,cAAc,4BAA4B,CAAC;AAC3C,YAAY,EAAE,KAAK,IAAI,kBAAkB,EAAE,MAAM,4BAA4B,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AndroidConfig, ConfigPlugin } from '@expo/config-plugins';
|
|
2
|
-
|
|
2
|
+
type StripePluginProps = {
|
|
3
3
|
/**
|
|
4
4
|
* The iOS merchant ID used for enabling Apple Pay.
|
|
5
5
|
* Without this, the error "Missing merchant identifier" will be thrown on iOS.
|
|
@@ -33,3 +33,4 @@ export declare const withNoopSwiftFile: ConfigPlugin;
|
|
|
33
33
|
export declare function setGooglePayMetaData(enabled: boolean, modResults: AndroidConfig.Manifest.AndroidManifest): AndroidConfig.Manifest.AndroidManifest;
|
|
34
34
|
declare const _default: ConfigPlugin<StripePluginProps>;
|
|
35
35
|
export default _default;
|
|
36
|
+
//# sourceMappingURL=withStripe.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"withStripe.d.ts","sourceRoot":"","sources":["../../../../src/plugin/withStripe.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,aAAa,EACb,YAAY,EAKb,MAAM,sBAAsB,CAAC;AAU9B,KAAK,iBAAiB,GAAG;IACvB;;;OAGG;IACH,kBAAkB,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;IACtC,eAAe,EAAE,OAAO,CAAC;CAC1B,CAAC;AAsBF;;;;;;;GAOG;AACH,wBAAgB,sBAAsB,CACpC,mBAAmB,EAAE,MAAM,GAAG,MAAM,EAAE,EACtC,YAAY,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAChC,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAmBrB;AAED;;GAEG;AACH,eAAO,MAAM,iBAAiB,EAAE,YAW/B,CAAC;AAgBF;;;;;;;;;GASG;AACH,wBAAgB,oBAAoB,CAClC,OAAO,EAAE,OAAO,EAChB,UAAU,EAAE,aAAa,CAAC,QAAQ,CAAC,eAAe,GACjD,aAAa,CAAC,QAAQ,CAAC,eAAe,CAiBxC;;AAED,wBAAsE"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export
|
|
2
|
-
export
|
|
1
|
+
export type CartSummaryItem = DeferredCartSummaryItem | ImmediateCartSummaryItem | RecurringCartSummaryItem;
|
|
2
|
+
export type CartSummaryItemType = 'Deferred' | 'Immediate' | 'Recurring';
|
|
3
3
|
/** Use this type for a payment that occurs in the future, such as a pre-order. Only available on iOS 15 and up, otherwise falls back to ImmediateCartSummaryItem. */
|
|
4
|
-
export
|
|
4
|
+
export type DeferredCartSummaryItem = {
|
|
5
5
|
paymentType: 'Deferred';
|
|
6
6
|
/** The unix timestamp of the date, in the future, of the payment. Measured in seconds. */
|
|
7
7
|
deferredDate: number;
|
|
@@ -9,7 +9,7 @@ export declare type DeferredCartSummaryItem = {
|
|
|
9
9
|
amount: string;
|
|
10
10
|
};
|
|
11
11
|
/** Use this type for payments that will occur immediately. */
|
|
12
|
-
export
|
|
12
|
+
export type ImmediateCartSummaryItem = {
|
|
13
13
|
paymentType: 'Immediate';
|
|
14
14
|
/** When creating items for estimates or charges whose final value is not yet known, set this to true. */
|
|
15
15
|
isPending?: boolean;
|
|
@@ -17,7 +17,7 @@ export declare type ImmediateCartSummaryItem = {
|
|
|
17
17
|
amount: string;
|
|
18
18
|
};
|
|
19
19
|
/** Use this type for payments that occur more than once, such as a subscription. Only available on iOS 15 and up, otherwise falls back to ImmediateCartSummaryItem.*/
|
|
20
|
-
export
|
|
20
|
+
export type RecurringCartSummaryItem = {
|
|
21
21
|
paymentType: 'Recurring';
|
|
22
22
|
/** The amount of time – in calendar units such as day, month, or year – that represents a fraction of the total payment interval. For example, if you set the intervalUnit to 'month' and intervalCount to 3, then the payment interval is three months.*/
|
|
23
23
|
intervalUnit: 'minute' | 'hour' | 'day' | 'month' | 'year';
|
|
@@ -30,3 +30,4 @@ export declare type RecurringCartSummaryItem = {
|
|
|
30
30
|
label: string;
|
|
31
31
|
amount: string;
|
|
32
32
|
};
|
|
33
|
+
//# sourceMappingURL=ApplePay.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ApplePay.d.ts","sourceRoot":"","sources":["../../../../src/types/ApplePay.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,eAAe,GACvB,uBAAuB,GACvB,wBAAwB,GACxB,wBAAwB,CAAC;AAE7B,MAAM,MAAM,mBAAmB,GAAG,UAAU,GAAG,WAAW,GAAG,WAAW,CAAC;AAEzE,qKAAqK;AACrK,MAAM,MAAM,uBAAuB,GAAG;IACpC,WAAW,EAAE,UAAU,CAAC;IACxB,0FAA0F;IAC1F,YAAY,EAAE,MAAM,CAAC;IACrB,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,8DAA8D;AAC9D,MAAM,MAAM,wBAAwB,GAAG;IACrC,WAAW,EAAE,WAAW,CAAC;IACzB,yGAAyG;IACzG,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,sKAAsK;AACtK,MAAM,MAAM,wBAAwB,GAAG;IACrC,WAAW,EAAE,WAAW,CAAC;IACzB,2PAA2P;IAC3P,YAAY,EAAE,QAAQ,GAAG,MAAM,GAAG,KAAK,GAAG,OAAO,GAAG,MAAM,CAAC;IAC3D,kMAAkM;IAClM,aAAa,EAAE,MAAM,CAAC;IACtB,iEAAiE;IACjE,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,+DAA+D;IAC/D,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC"}
|
|
@@ -12,7 +12,7 @@ export interface Address {
|
|
|
12
12
|
postalCode?: string;
|
|
13
13
|
state?: string;
|
|
14
14
|
}
|
|
15
|
-
export
|
|
15
|
+
export type AddressDetails = {
|
|
16
16
|
/** The customer's full name. */
|
|
17
17
|
name?: string;
|
|
18
18
|
/** The customer's address. */
|
|
@@ -35,3 +35,6 @@ export declare enum CardBrand {
|
|
|
35
35
|
Visa = 7,
|
|
36
36
|
Unknown = 8
|
|
37
37
|
}
|
|
38
|
+
/** Theme options for colors used in our UI. */
|
|
39
|
+
export type UserInterfaceStyle = 'alwaysLight' | 'alwaysDark' | 'automatic';
|
|
40
|
+
//# sourceMappingURL=Common.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Common.d.ts","sourceRoot":"","sources":["../../../../src/types/Common.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,cAAc;IAC7B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED,MAAM,WAAW,OAAO;IACtB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,MAAM,cAAc,GAAG;IAC3B,gCAAgC;IAChC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,8BAA8B;IAC9B,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,mCAAmC;IACnC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;UAEM;IACN,kBAAkB,CAAC,EAAE,OAAO,CAAC;CAC9B,CAAC;AAEF,oBAAY,SAAS;IACnB,GAAG,IAAI;IACP,IAAI,IAAI;IACR,eAAe,IAAI;IACnB,UAAU,IAAI;IACd,QAAQ,IAAI;IACZ,UAAU,IAAI;IACd,QAAQ,IAAI;IACZ,IAAI,IAAI;IACR,OAAO,IAAI;CACZ;AAED,+CAA+C;AAC/C,MAAM,MAAM,kBAAkB,GAAG,aAAa,GAAG,YAAY,GAAG,WAAW,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { PaymentSheet, StripeError, CustomerSheetError, BillingDetails, PaymentMethod, CardBrand } from '../types';
|
|
2
|
-
export
|
|
2
|
+
export type CustomerSheetInitParams = {
|
|
3
3
|
/** The color styling to use for PaymentSheet UI. Defaults to 'automatic'. iOS only. */
|
|
4
4
|
style?: 'alwaysLight' | 'alwaysDark' | 'automatic';
|
|
5
5
|
/** Configuration for the look and feel of the UI. */
|
|
@@ -39,8 +39,15 @@ export declare type CustomerSheetInitParams = {
|
|
|
39
39
|
* If false, the customer can't delete if they only have one saved payment method remaining.
|
|
40
40
|
*/
|
|
41
41
|
allowsRemovalOfLastSavedPaymentMethod?: boolean;
|
|
42
|
+
/**
|
|
43
|
+
* By default, CustomerSheet will accept all supported cards by Stripe.
|
|
44
|
+
* You can specify card brands CustomerSheet should block or allow payment for by providing an array of those card brands.
|
|
45
|
+
* Note: This is only a client-side solution.
|
|
46
|
+
* Note: Card brand filtering is not currently supported in Link.
|
|
47
|
+
*/
|
|
48
|
+
cardBrandAcceptance?: PaymentSheet.CardBrandAcceptance;
|
|
42
49
|
};
|
|
43
|
-
export
|
|
50
|
+
export type CustomerSheetPresentParams = {
|
|
44
51
|
/** Controls how the modal is presented (after animation). iOS only. Defaults to `popover`. See https://developer.apple.com/documentation/uikit/uimodalpresentationstyle for more info. */
|
|
45
52
|
presentationStyle?: 'fullscreen' | 'popover' | 'pageSheet' | 'formSheet' | 'automatic' | 'overFullScreen';
|
|
46
53
|
/** Controls how the modal animates. iOS only. */
|
|
@@ -48,7 +55,7 @@ export declare type CustomerSheetPresentParams = {
|
|
|
48
55
|
/** Time (in milliseconds) before the Customer Sheet will automatically dismiss. */
|
|
49
56
|
timeout?: number;
|
|
50
57
|
};
|
|
51
|
-
export
|
|
58
|
+
export type CustomerSheetResult = {
|
|
52
59
|
/** The users selected payment option, if one exists. */
|
|
53
60
|
paymentOption?: PaymentSheet.PaymentOption;
|
|
54
61
|
/** The Stripe PaymentMethod associated with the paymentOption, if it exists. */
|
|
@@ -99,4 +106,5 @@ export interface CustomerAdapter {
|
|
|
99
106
|
*/
|
|
100
107
|
setupIntentClientSecretForCustomerAttach?(): Promise<String>;
|
|
101
108
|
}
|
|
102
|
-
export
|
|
109
|
+
export type CustomerPaymentOption = 'apple_pay' | 'google_pay' | 'link' | string;
|
|
110
|
+
//# sourceMappingURL=CustomerSheet.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CustomerSheet.d.ts","sourceRoot":"","sources":["../../../../src/types/CustomerSheet.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,YAAY,EACZ,WAAW,EACX,kBAAkB,EAClB,cAAc,EACd,aAAa,EACb,SAAS,EACV,MAAM,UAAU,CAAC;AAElB,MAAM,MAAM,uBAAuB,GAAG;IACpC,uFAAuF;IACvF,KAAK,CAAC,EAAE,aAAa,GAAG,YAAY,GAAG,WAAW,CAAC;IACnD,qDAAqD;IACrD,UAAU,CAAC,EAAE,YAAY,CAAC,gBAAgB,CAAC;IAC3C,oPAAoP;IACpP,uBAAuB,CAAC,EAAE,MAAM,CAAC;IACjC,wHAAwH;IACxH,UAAU,EAAE,MAAM,CAAC;IACnB,sFAAsF;IACtF,0BAA0B,EAAE,MAAM,CAAC;IACnC,qFAAqF;IACrF,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,gGAAgG;IAChG,4BAA4B,CAAC,EAAE,MAAM,CAAC;IACtC,mQAAmQ;IACnQ,qBAAqB,CAAC,EAAE,cAAc,CAAC;IACvC,sOAAsO;IACtO,qCAAqC,CAAC,EAAE,YAAY,CAAC,qCAAqC,CAAC;IAC3F,+IAA+I;IAC/I,SAAS,CAAC,EAAE,MAAM,CAAC;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OAAO,CAAC,MAAM,CAAC,CAAC;IAC/D;;;;OAIG;IACH,wBAAwB,CAAC,CACvB,aAAa,EAAE,qBAAqB,GAAG,IAAI,GAC1C,OAAO,CAAC,IAAI,CAAC,CAAC;IACjB;;;;OAIG;IACH,0BAA0B,CAAC,IAAI,OAAO,CAAC,qBAAqB,GAAG,IAAI,CAAC,CAAC;IACrE;;OAEG;IACH,wCAAwC,CAAC,IAAI,OAAO,CAAC,MAAM,CAAC,CAAC;CAC9D;AAED,MAAM,MAAM,qBAAqB,GAC7B,WAAW,GACX,YAAY,GACZ,MAAM,GACN,MAAM,CAAC"}
|
|
@@ -35,7 +35,7 @@ export declare enum PaymentSheetError {
|
|
|
35
35
|
Canceled = "Canceled",
|
|
36
36
|
Timeout = "Timeout"
|
|
37
37
|
}
|
|
38
|
-
export
|
|
38
|
+
export type ErrorType = 'api_connection_error' | 'api_error' | 'authentication_error' | 'card_error' | 'idempotency_error' | 'invalid_request_error' | 'rate_limit_error';
|
|
39
39
|
export interface StripeError<T> {
|
|
40
40
|
code: T;
|
|
41
41
|
message: string;
|
|
@@ -76,3 +76,4 @@ export declare enum PlatformPayError {
|
|
|
76
76
|
Failed = "Failed",
|
|
77
77
|
Unknown = "Unknown"
|
|
78
78
|
}
|
|
79
|
+
//# sourceMappingURL=Errors.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Errors.d.ts","sourceRoot":"","sources":["../../../../src/types/Errors.ts"],"names":[],"mappings":"AAAA,oBAAY,mBAAmB;IAC7B,QAAQ,aAAa;IACrB,MAAM,WAAW;IACjB,OAAO,YAAY;CACpB;AAED,oBAAY,eAAe;IACzB,QAAQ,aAAa;IACrB,MAAM,WAAW;IACjB,OAAO,YAAY;CACpB;AAED,oBAAY,uBAAuB;IACjC,QAAQ,aAAa;IACrB,MAAM,WAAW;IACjB,OAAO,YAAY;CACpB;AAED,oBAAY,wBAAwB;IAClC,MAAM,WAAW;CAClB;AAED,oBAAY,gBA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import type { BankAccount } from './Token';
|
|
2
3
|
import type { StripeError } from './Errors';
|
|
3
|
-
export
|
|
4
|
+
export type CollectFinancialConnectionsAccountsParams = {
|
|
5
|
+
/** iOS Only. Style options for colors in Financial Connections. By default, the bank account collector will automatically switch between light and dark mode compatible colors based on device settings. */
|
|
6
|
+
style?: UserInterfaceStyle;
|
|
4
7
|
/** An optional event listener to receive @type {FinancialConnectionEvent} for specific events during the process of a user connecting their financial accounts. */
|
|
5
8
|
onEvent?: (event: FinancialConnectionsEvent) => void;
|
|
6
9
|
};
|
|
7
|
-
export
|
|
10
|
+
export type SessionResult = {
|
|
8
11
|
/** The updated Financial Connections Session object. */
|
|
9
12
|
session: Session;
|
|
10
13
|
error?: undefined;
|
|
@@ -12,7 +15,7 @@ export declare type SessionResult = {
|
|
|
12
15
|
session?: undefined;
|
|
13
16
|
error: StripeError<FinancialConnectionsSheetError>;
|
|
14
17
|
};
|
|
15
|
-
export
|
|
18
|
+
export type TokenResult = {
|
|
16
19
|
/** The updated Financial Connections Session object. */
|
|
17
20
|
session: Session;
|
|
18
21
|
/** The Stripe token object associated with the bank account. */
|
|
@@ -23,7 +26,7 @@ export declare type TokenResult = {
|
|
|
23
26
|
token?: undefined;
|
|
24
27
|
error: StripeError<FinancialConnectionsSheetError>;
|
|
25
28
|
};
|
|
26
|
-
export
|
|
29
|
+
export type Session = {
|
|
27
30
|
/** A unique ID for this session. */
|
|
28
31
|
id: string;
|
|
29
32
|
/** The client secret for this session. */
|
|
@@ -33,7 +36,7 @@ export declare type Session = {
|
|
|
33
36
|
/** The accounts that were collected as part of this Session. */
|
|
34
37
|
accounts: Array<Account>;
|
|
35
38
|
};
|
|
36
|
-
export
|
|
39
|
+
export type BankAccountToken = {
|
|
37
40
|
/** Bank account details. */
|
|
38
41
|
bankAccount: BankAccount | null;
|
|
39
42
|
/** Has the value true if the object exists in live mode or the value false if the object exists in test mode. */
|
|
@@ -45,7 +48,7 @@ export declare type BankAccountToken = {
|
|
|
45
48
|
/** The UNIX timestamp (in milliseconds) of the date this token was created. */
|
|
46
49
|
created: number | null;
|
|
47
50
|
};
|
|
48
|
-
export
|
|
51
|
+
export type Account = {
|
|
49
52
|
/** A unique ID for this Financial Connections Account. */
|
|
50
53
|
id: string;
|
|
51
54
|
/** Has the value true if the object exists in live mode or the value false if the object exists in test mode. */
|
|
@@ -70,12 +73,12 @@ export declare type Account = {
|
|
|
70
73
|
/** The supported payment method types for this account. */
|
|
71
74
|
supportedPaymentMethodTypes: Array<PaymentMethodType>;
|
|
72
75
|
};
|
|
73
|
-
export
|
|
74
|
-
export
|
|
75
|
-
export
|
|
76
|
-
export
|
|
77
|
-
export
|
|
78
|
-
export
|
|
76
|
+
export type AccountStatus = 'active' | 'inactive' | 'disconnected';
|
|
77
|
+
export type Category = 'cash' | 'credit' | 'investment' | 'other';
|
|
78
|
+
export type PaymentMethodType = 'us_bank_account' | 'link';
|
|
79
|
+
export type Subcategory = 'checking' | 'creditCard' | 'lineOfCredit' | 'mortgage' | 'other' | 'savings';
|
|
80
|
+
export type Permission = 'balances' | 'ownership' | 'paymentMethod' | 'transactions' | 'accountNumbers';
|
|
81
|
+
export type Balance = {
|
|
79
82
|
/** The UNIX timestamp (in milliseconds) of time that the external institution calculated this balance. */
|
|
80
83
|
asOf: number;
|
|
81
84
|
/** The type of this balance, either cash or credit. */
|
|
@@ -91,18 +94,18 @@ export declare type Balance = {
|
|
|
91
94
|
/** The balances owed to (or by) the account holder. Each key is a three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Each value is a integer amount. A positive amount indicates money owed to the account holder. A negative amount indicates money owed by the account holder. */
|
|
92
95
|
current: Map<String, number>;
|
|
93
96
|
};
|
|
94
|
-
export
|
|
97
|
+
export type BalanceRefresh = {
|
|
95
98
|
status: BalanceRefreshStatus;
|
|
96
99
|
/** The UNIX timestamp (in milliseconds) of the time at which the last refresh attempt was initiated. */
|
|
97
100
|
lastAttemptedAt: number;
|
|
98
101
|
};
|
|
99
|
-
export
|
|
100
|
-
export
|
|
102
|
+
export type BalanceType = 'cash' | 'credit';
|
|
103
|
+
export type BalanceRefreshStatus = 'failed' | 'pending' | 'succeeded';
|
|
101
104
|
export declare enum FinancialConnectionsSheetError {
|
|
102
105
|
Failed = "Failed",
|
|
103
106
|
Canceled = "Canceled"
|
|
104
107
|
}
|
|
105
|
-
export
|
|
108
|
+
export type FinancialConnectionsEvent = {
|
|
106
109
|
/** The event's name. Represents the type of event that has occurred during the Financial Connections process. */
|
|
107
110
|
name: FinancialConnectionsEventName;
|
|
108
111
|
/** Event-associated metadata. Provides further detail related to the occurred event. */
|
|
@@ -132,7 +135,7 @@ export declare enum FinancialConnectionsEventName {
|
|
|
132
135
|
/** Invoked when the modal is launched in an external browser. After this event, no other events will be sent until the completion of the browser session. */
|
|
133
136
|
FlowLaunchedInBrowser = "flow_launched_in_browser"
|
|
134
137
|
}
|
|
135
|
-
export
|
|
138
|
+
export type FinancialConnectionsEventMetadata = {
|
|
136
139
|
/** A Boolean value that indicates if the user completed the process through the manual entry flow. */
|
|
137
140
|
manualEntry?: boolean;
|
|
138
141
|
/** A String value containing the name of the institution that the user selected. */
|
|
@@ -162,3 +165,4 @@ export declare enum FinancialConnectionsEventErrorCode {
|
|
|
162
165
|
/** The hCaptcha challenge failed. */
|
|
163
166
|
FailedBotDetection = "failed_bot_detection"
|
|
164
167
|
}
|
|
168
|
+
//# sourceMappingURL=FinancialConnections.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FinancialConnections.d.ts","sourceRoot":"","sources":["../../../../src/types/FinancialConnections.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,UAAU,CAAC;AACnD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAC3C,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAE5C,MAAM,MAAM,yCAAyC,GAAG;IACtD,4MAA4M;IA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,oFAAoF;IACpF,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,uEAAuE;IACvE,SAAS,CAAC,EAAE,kCAAkC,CAAC;CAChD,CAAC;AAEF,oBAAY,kCAAkC;IAC5C,2EAA2E;IAC3E,yBAAyB,gCAAgC;IACzD,2EAA2E;IAC3E,mBAAmB,yBAAyB;IAC5C,yFAAyF;IACzF,kBAAkB,yBAAyB;IAC3C,8DAA8D;IAC9D,mBAAmB,yBAAyB;IAC5C,iEAAiE;IACjE,6BAA6B,oCAAoC;IACjE,qDAAqD;IACrD,+BAA+B,sCAAsC;IACrE,0FAA0F;IAC1F,kBAAkB,wBAAwB;IAC1C,iFAAiF;IACjF,eAAe,qBAAqB;IACpC,6DAA6D;IAC7D,cAAc,oBAAoB;IAClC,qCAAqC;IACrC,kBAAkB,yBAAyB;CAC5C"}
|
|
@@ -1,34 +1,35 @@
|
|
|
1
|
-
export
|
|
2
|
-
export
|
|
1
|
+
export type NextAction = VerifyWithMicrodepositsAction | UrlRedirectAction | WeChatRedirectAction | AlipayRedirectAction | BoletoVoucherAction | OxxoVoucherAction;
|
|
2
|
+
export type VerifyWithMicrodepositsAction = {
|
|
3
3
|
type: 'verifyWithMicrodeposits';
|
|
4
4
|
redirectUrl: string;
|
|
5
5
|
microdepositType: string;
|
|
6
6
|
arrivalDate: string;
|
|
7
7
|
};
|
|
8
|
-
export
|
|
8
|
+
export type UrlRedirectAction = {
|
|
9
9
|
type: 'urlRedirect';
|
|
10
10
|
redirectUrl: string;
|
|
11
11
|
};
|
|
12
|
-
export
|
|
12
|
+
export type WeChatRedirectAction = {
|
|
13
13
|
type: 'weChatRedirect';
|
|
14
14
|
redirectUrl: string;
|
|
15
15
|
};
|
|
16
|
-
export
|
|
16
|
+
export type AlipayRedirectAction = {
|
|
17
17
|
type: 'alipayRedirect';
|
|
18
18
|
redirectUrl: string;
|
|
19
19
|
nativeRedirectUrl: string;
|
|
20
20
|
};
|
|
21
|
-
export
|
|
21
|
+
export type BoletoVoucherAction = {
|
|
22
22
|
type: 'boletoVoucher';
|
|
23
23
|
voucherURL: string;
|
|
24
24
|
};
|
|
25
|
-
export
|
|
25
|
+
export type KonbiniVoucherAction = {
|
|
26
26
|
type: 'konbiniVoucher';
|
|
27
27
|
voucherURL: string;
|
|
28
28
|
};
|
|
29
|
-
export
|
|
29
|
+
export type OxxoVoucherAction = {
|
|
30
30
|
type: 'oxxoVoucher';
|
|
31
31
|
expiration: number;
|
|
32
32
|
voucherURL: string;
|
|
33
33
|
voucherNumber: string;
|
|
34
34
|
};
|
|
35
|
+
//# sourceMappingURL=NextAction.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NextAction.d.ts","sourceRoot":"","sources":["../../../../src/types/NextAction.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,UAAU,GAClB,6BAA6B,GAC7B,iBAAiB,GACjB,oBAAoB,GACpB,oBAAoB,GACpB,mBAAmB,GACnB,iBAAiB,CAAC;AAEtB,MAAM,MAAM,6BAA6B,GAAG;IAC1C,IAAI,EAAE,yBAAyB,CAAC;IAChC,WAAW,EAAE,MAAM,CAAC;IACpB,gBAAgB,EAAE,MAAM,CAAC;IACzB,WAAW,EAAE,MAAM,CAAC;CACrB,CAAC;AAEF,MAAM,MAAM,iBAAiB,GAAG;IAC9B,IAAI,EAAE,aAAa,CAAC;IACpB,WAAW,EAAE,MAAM,CAAC;CACrB,CAAC;AAEF,MAAM,MAAM,oBAAoB,GAAG;IACjC,IAAI,EAAE,gBAAgB,CAAC;IACvB,WAAW,EAAE,MAAM,CAAC;CACrB,CAAC;AAEF,MAAM,MAAM,oBAAoB,GAAG;IACjC,IAAI,EAAE,gBAAgB,CAAC;IACvB,WAAW,EAAE,MAAM,CAAC;IACpB,iBAAiB,EAAE,MAAM,CAAC;CAC3B,CAAC;AAEF,MAAM,MAAM,mBAAmB,GAAG;IAChC,IAAI,EAAE,eAAe,CAAC;IACtB,UAAU,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,MAAM,MAAM,oBAAoB,GAAG;IACjC,IAAI,EAAE,gBAAgB,CAAC;IACvB,UAAU,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,MAAM,MAAM,iBAAiB,GAAG;IAC9B,IAAI,EAAE,aAAa,CAAC;IACpB,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;IACnB,aAAa,EAAE,MAAM,CAAC;CACvB,CAAC"}
|
|
@@ -26,13 +26,13 @@ export interface Result {
|
|
|
26
26
|
shipping: ShippingDetails | null;
|
|
27
27
|
nextAction: NextAction | null;
|
|
28
28
|
}
|
|
29
|
-
export
|
|
30
|
-
export
|
|
31
|
-
export
|
|
32
|
-
export
|
|
29
|
+
export type CaptureMethod = 'Automatic' | 'Manual';
|
|
30
|
+
export type ConfirmParams = CardParams | IdealParams | OxxoParams | P24Params | AlipayParams | GiropayParams | SepaParams | EpsParams | AuBecsDebitParams | SofortParams | GrabPayParams | FPXParams | AfterpayClearpayParams | KlarnaParams | BancontactParams | USBankAccountParams | PayPalParams | AffirmParams | CashAppParams | RevolutPayParams;
|
|
31
|
+
export type ConfirmOptions = PaymentMethod.ConfirmOptions;
|
|
32
|
+
export type LastPaymentError = StripeError<string> & {
|
|
33
33
|
paymentMethod: PaymentMethodResult;
|
|
34
34
|
};
|
|
35
|
-
export
|
|
35
|
+
export type FutureUsage = 'OffSession' | 'OnSession';
|
|
36
36
|
export interface ShippingDetails {
|
|
37
37
|
address: Required<Address>;
|
|
38
38
|
name: string;
|
|
@@ -50,7 +50,7 @@ export declare enum Status {
|
|
|
50
50
|
RequiresCapture = "RequiresCapture",
|
|
51
51
|
Unknown = "Unknown"
|
|
52
52
|
}
|
|
53
|
-
export
|
|
53
|
+
export type MandateData = {
|
|
54
54
|
customerAcceptance: {
|
|
55
55
|
online: {
|
|
56
56
|
ipAddress: string;
|
|
@@ -58,10 +58,10 @@ export declare type MandateData = {
|
|
|
58
58
|
};
|
|
59
59
|
};
|
|
60
60
|
};
|
|
61
|
-
|
|
61
|
+
type MetaData = {
|
|
62
62
|
[key: string]: string;
|
|
63
63
|
};
|
|
64
|
-
export
|
|
64
|
+
export type CardParams = {
|
|
65
65
|
paymentMethodType: 'Card';
|
|
66
66
|
paymentMethodData?: {
|
|
67
67
|
token?: string;
|
|
@@ -162,7 +162,7 @@ export interface AfterpayClearpayParams {
|
|
|
162
162
|
metadata?: MetaData;
|
|
163
163
|
};
|
|
164
164
|
}
|
|
165
|
-
export
|
|
165
|
+
export type KlarnaParams = {
|
|
166
166
|
paymentMethodType: 'Klarna';
|
|
167
167
|
paymentMethodData: {
|
|
168
168
|
billingDetails: Pick<Required<BillingDetails>, 'email'> & {
|
|
@@ -205,7 +205,7 @@ export interface AuBecsDebitParams {
|
|
|
205
205
|
mandateData?: MandateData;
|
|
206
206
|
};
|
|
207
207
|
}
|
|
208
|
-
export
|
|
208
|
+
export type AffirmParams = {
|
|
209
209
|
paymentMethodType: 'Affirm';
|
|
210
210
|
paymentMethodData?: {
|
|
211
211
|
/** Affirm requires that shipping is present for the payment to succeed because it significantly helps with loan approval rates. Shipping details can either be provided here or via the Payment Intent- https://stripe.com/docs/api/payment_intents/create#create_payment_intent-shipping. */
|
|
@@ -219,7 +219,7 @@ export declare type AffirmParams = {
|
|
|
219
219
|
* If paymentMethodData is null, it is assumed that the bank account details have already been attached
|
|
220
220
|
* via `collectBankAccountForPayment` or `collectBankAccountForSetup`.
|
|
221
221
|
*/
|
|
222
|
-
export
|
|
222
|
+
export type USBankAccountParams = {
|
|
223
223
|
paymentMethodType: 'USBankAccount';
|
|
224
224
|
paymentMethodData?: {
|
|
225
225
|
billingDetails: Pick<Required<BillingDetails>, 'name'> & BillingDetails;
|
|
@@ -233,7 +233,7 @@ export declare type USBankAccountParams = {
|
|
|
233
233
|
metadata?: MetaData;
|
|
234
234
|
};
|
|
235
235
|
};
|
|
236
|
-
export
|
|
236
|
+
export type PayPalParams = {
|
|
237
237
|
paymentMethodType: 'PayPal';
|
|
238
238
|
paymentMethodData?: {
|
|
239
239
|
billingDetails?: BillingDetails;
|
|
@@ -241,7 +241,7 @@ export declare type PayPalParams = {
|
|
|
241
241
|
metadata?: MetaData;
|
|
242
242
|
};
|
|
243
243
|
};
|
|
244
|
-
export
|
|
244
|
+
export type CashAppParams = {
|
|
245
245
|
paymentMethodType: 'CashApp';
|
|
246
246
|
paymentMethodData?: {
|
|
247
247
|
billingDetails?: BillingDetails;
|
|
@@ -249,7 +249,7 @@ export declare type CashAppParams = {
|
|
|
249
249
|
metadata?: MetaData;
|
|
250
250
|
};
|
|
251
251
|
};
|
|
252
|
-
export
|
|
252
|
+
export type RevolutPayParams = {
|
|
253
253
|
paymentMethodType: 'RevolutPay';
|
|
254
254
|
paymentMethodData?: {
|
|
255
255
|
billingDetails?: BillingDetails;
|
|
@@ -257,7 +257,7 @@ export declare type RevolutPayParams = {
|
|
|
257
257
|
metadata?: MetaData;
|
|
258
258
|
};
|
|
259
259
|
};
|
|
260
|
-
export
|
|
260
|
+
export type CollectBankAccountParams = {
|
|
261
261
|
paymentMethodType: 'USBankAccount';
|
|
262
262
|
paymentMethodData: {
|
|
263
263
|
billingDetails: {
|
|
@@ -269,3 +269,4 @@ export declare type CollectBankAccountParams = {
|
|
|
269
269
|
};
|
|
270
270
|
};
|
|
271
271
|
export {};
|
|
272
|
+
//# sourceMappingURL=PaymentIntent.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PaymentIntent.d.ts","sourceRoot":"","sources":["../../../../src/types/PaymentIntent.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,GAAG,CAAC;AACrC,OAAO,KAAK,EAAE,OAAO,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AACxD,OAAO,KAAK,EAAE,MAAM,IAAI,mBAAmB,EAAE,MAAM,iBAAiB,CAAC;AACrE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC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