@stripe/stripe-react-native 0.42.0 → 0.44.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 +26 -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 +8 -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 +422 -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 +656 -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 +13 -7
- package/ios/FinancialConnections.swift +6 -2
- package/ios/StripeSdk+CustomerSheet.swift +3 -1
- package/ios/StripeSdk+PaymentSheet.swift +86 -21
- 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 +16 -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 +91 -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/helpers.ts +2 -1
- package/src/types/Common.ts +3 -0
- package/src/types/CustomerSheet.ts +11 -0
- package/src/types/FinancialConnections.ts +3 -0
- package/src/types/PaymentMethod.ts +5 -1
- package/src/types/PaymentSheet.ts +85 -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
|
@@ -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/C,OAAO,KAAK,KAAK,aAAa,MAAM,iBAAiB,CAAC;AACtD,OAAO,KAA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KAAK,CAAC,EAAE,MAAM,CAAC;SAChB,CAAC;QACF,WAAW,CAAC,EAAE,WAAW,CAAC;QAC1B,QAAQ,CAAC,EAAE,QAAQ,CAAC;KACrB,CAAC;CACH,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { FormDetails } from './components/AuBECSDebitFormComponent';
|
|
2
2
|
import type { CardBrand, BankAcccountHolderType, BankAcccountType } from './Token';
|
|
3
3
|
import type { FutureUsage } from './PaymentIntent';
|
|
4
|
-
import type { Address, BillingDetails } from './Common';
|
|
4
|
+
import type { Address, BillingDetails, UserInterfaceStyle } from './Common';
|
|
5
5
|
import type { FinancialConnectionsEvent } from './FinancialConnections';
|
|
6
6
|
export interface Result {
|
|
7
7
|
id: string;
|
|
@@ -19,14 +19,14 @@ export interface Result {
|
|
|
19
19
|
Upi: UpiResult;
|
|
20
20
|
USBankAccount: USBankAccountResult;
|
|
21
21
|
}
|
|
22
|
-
export
|
|
23
|
-
export
|
|
24
|
-
export
|
|
22
|
+
export type CreateParams = CardParams | IdealParams | OxxoParams | P24Params | AlipayParams | GiropayParams | SepaParams | EpsParams | AuBecsDebitParams | SofortParams | GrabPayParams | FPXParams | AfterpayClearpayParams | KlarnaParams | BancontactParams | USBankAccountParams | PayPalParams | AffirmParams | CashAppParams;
|
|
23
|
+
export type ConfirmParams = CreateParams;
|
|
24
|
+
export type CreateOptions = {
|
|
25
25
|
setupFutureUsage?: FutureUsage;
|
|
26
26
|
};
|
|
27
|
-
export
|
|
28
|
-
export
|
|
29
|
-
export
|
|
27
|
+
export type ConfirmOptions = CreateOptions;
|
|
28
|
+
export type ShippingDetails = BillingDetails;
|
|
29
|
+
export type CardParams = {
|
|
30
30
|
paymentMethodType: 'Card';
|
|
31
31
|
paymentMethodData?: {
|
|
32
32
|
token?: string;
|
|
@@ -101,7 +101,7 @@ export interface AfterpayClearpayParams {
|
|
|
101
101
|
billingDetails: BillingDetails;
|
|
102
102
|
};
|
|
103
103
|
}
|
|
104
|
-
export
|
|
104
|
+
export type KlarnaParams = {
|
|
105
105
|
paymentMethodType: 'Klarna';
|
|
106
106
|
paymentMethodData: {
|
|
107
107
|
billingDetails: Pick<Required<BillingDetails>, 'email'> & {
|
|
@@ -135,7 +135,7 @@ export interface AuBecsDebitParams {
|
|
|
135
135
|
formDetails: FormDetails;
|
|
136
136
|
};
|
|
137
137
|
}
|
|
138
|
-
export
|
|
138
|
+
export type AffirmParams = {
|
|
139
139
|
paymentMethodType: 'Affirm';
|
|
140
140
|
paymentMethodData?: {
|
|
141
141
|
/** 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. */
|
|
@@ -147,7 +147,7 @@ export declare type AffirmParams = {
|
|
|
147
147
|
* If paymentMethodData is null, it is assumed that the bank account details have already been attached
|
|
148
148
|
* via `collectBankAccountForPayment` or `collectBankAccountForSetup`.
|
|
149
149
|
*/
|
|
150
|
-
export
|
|
150
|
+
export type USBankAccountParams = {
|
|
151
151
|
paymentMethodType: 'USBankAccount';
|
|
152
152
|
paymentMethodData?: {
|
|
153
153
|
billingDetails: Pick<Required<BillingDetails>, 'name'> & BillingDetails;
|
|
@@ -159,13 +159,13 @@ export declare type USBankAccountParams = {
|
|
|
159
159
|
accountType?: BankAcccountType;
|
|
160
160
|
};
|
|
161
161
|
};
|
|
162
|
-
export
|
|
162
|
+
export type PayPalParams = {
|
|
163
163
|
paymentMethodType: 'PayPal';
|
|
164
164
|
paymentMethodData?: {
|
|
165
165
|
billingDetails?: BillingDetails;
|
|
166
166
|
};
|
|
167
167
|
};
|
|
168
|
-
export
|
|
168
|
+
export type CashAppParams = {
|
|
169
169
|
paymentMethodType: 'CashApp';
|
|
170
170
|
paymentMethodData?: {
|
|
171
171
|
billingDetails?: BillingDetails;
|
|
@@ -215,7 +215,7 @@ export interface SofortResult {
|
|
|
215
215
|
export interface UpiResult {
|
|
216
216
|
vpa?: string;
|
|
217
217
|
}
|
|
218
|
-
export
|
|
218
|
+
export type USBankAccountResult = {
|
|
219
219
|
routingNumber?: string;
|
|
220
220
|
accountHolderType?: BankAcccountHolderType;
|
|
221
221
|
accountType?: BankAcccountType;
|
|
@@ -226,8 +226,8 @@ export declare type USBankAccountResult = {
|
|
|
226
226
|
preferredNetwork?: string;
|
|
227
227
|
supportedNetworks?: string[];
|
|
228
228
|
};
|
|
229
|
-
export
|
|
230
|
-
export
|
|
229
|
+
export type Type = 'AfterpayClearpay' | 'Card' | 'Alipay' | 'GrabPay' | 'Ideal' | 'Fpx' | 'CardPresent' | 'SepaDebit' | 'AuBecsDebit' | 'BacsDebit' | 'Giropay' | 'P24' | 'Eps' | 'Bancontact' | 'Oxxo' | 'Sofort' | 'Upi' | 'USBankAccount' | 'PayPal' | 'Unknown';
|
|
230
|
+
export type CollectBankAccountParams = {
|
|
231
231
|
paymentMethodType: 'USBankAccount';
|
|
232
232
|
paymentMethodData: {
|
|
233
233
|
billingDetails: {
|
|
@@ -235,10 +235,15 @@ export declare type CollectBankAccountParams = {
|
|
|
235
235
|
email?: string;
|
|
236
236
|
};
|
|
237
237
|
};
|
|
238
|
+
/** 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. */
|
|
239
|
+
style?: UserInterfaceStyle;
|
|
238
240
|
/** An optional event listener to receive @type {FinancialConnectionEvent} for specific events during the process of a user connecting their financial accounts. */
|
|
239
241
|
onEvent?: (event: FinancialConnectionsEvent) => void;
|
|
240
242
|
};
|
|
241
|
-
export
|
|
243
|
+
export type CollectBankAccountTokenParams = {
|
|
244
|
+
/** 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. */
|
|
245
|
+
style?: UserInterfaceStyle;
|
|
242
246
|
/** An optional event listener to receive @type {FinancialConnectionEvent} for specific events during the process of a user connecting their financial accounts. */
|
|
243
247
|
onEvent?: (event: FinancialConnectionsEvent) => void;
|
|
244
248
|
};
|
|
249
|
+
//# sourceMappingURL=PaymentMethod.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PaymentMethod.d.ts","sourceRoot":"","sources":["../../../../src/types/PaymentMethod.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uCAAuC,CAAC;AACzE,OAAO,KAAK,EACV,SAAS,EACT,sBAAsB,EACtB,gBAAgB,EACjB,MAAM,SAAS,CAAC;AACjB,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AACnD,OAAO,KAAK,EAAE,OAAO,EAAE,cAAc,EAAE,kBAAkB,EAAE,MAAM,UAAU,CAAC;AAC5E,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,wBAAwB,CAAC;AAExE,MAAM,WAAW,MAAM;IACrB,EAAE,EAAE,MAAM,CAAC;IACX,QAAQ,EAAE,OAAO,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC;IACnB,cAAc,EAAE,cAAc,CAAC;IAC/B,iBAAiB,EAAE,IAAI,CAAC;IACxB,WAAW,EAAE,iBAAiB,CAAC;IAC/B,SAAS,EAAE,eAAe,CAAC;IAC3B,IAAI,EAAE,UAAU,CAAC;IACjB,GAAG,EAAE,SAAS,CAAC;IACf,KAAK,EAAE,WAAW,CAAC;IACnB,SAAS,EAAE,eAAe,CAAC;IAC3B,MAAM,EAAE,YAAY,CAAC;IACrB,GAAG,EAAE,SAAS,CAAC;IACf,aAAa,EAAE,mBAAmB,CAAC;CACpC;AAED,MAAM,MAAM,YAAY,GACpB,UAAU,GACV,WAAW,GACX,UAAU,GACV,SAAS,GACT,YAAY,GACZ,aAAa,GACb,UAAU,GACV,SAAS,GACT,iBAAiB,GACjB,YAAY,GACZ,aAAa,GACb,SAAS,GACT,sBAAsB,GACtB,YAAY,GAEZ,gBAAgB,GAChB,mBAAmB,GACnB,YAAY,GACZ,YAAY,GACZ,aAAa,CAAC;AAElB,MA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1
|
+
import type { BillingDetails, AddressDetails, CardBrand, UserInterfaceStyle } from './Common';
|
|
2
2
|
import type { CartSummaryItem } from './ApplePay';
|
|
3
3
|
import type { ButtonType, RecurringPaymentRequest, AutomaticReloadPaymentRequest, MultiMerchantRequest } from './PlatformPay';
|
|
4
4
|
import type { FutureUsage } from './PaymentIntent';
|
|
5
5
|
import type { Result } from './PaymentMethod';
|
|
6
6
|
import type { StripeError } from './Errors';
|
|
7
|
-
export
|
|
7
|
+
export type SetupParamsBase = IntentParams & {
|
|
8
8
|
/** Your customer-facing business name. On Android, this is required and cannot be an empty string. */
|
|
9
9
|
merchantDisplayName: string;
|
|
10
10
|
/** The identifier of the Stripe Customer object. See https://stripe.com/docs/api/customers/object#customer_object-id */
|
|
@@ -16,8 +16,10 @@ export declare type SetupParamsBase = IntentParams & {
|
|
|
16
16
|
applePay?: ApplePayParams;
|
|
17
17
|
/** Android only. Enable Google Pay in the Payment Sheet by passing a GooglePayParams object. */
|
|
18
18
|
googlePay?: GooglePayParams;
|
|
19
|
+
/** Configuration for Link */
|
|
20
|
+
link?: LinkParams;
|
|
19
21
|
/** The color styling to use for PaymentSheet UI. Defaults to 'automatic'. */
|
|
20
|
-
style?:
|
|
22
|
+
style?: UserInterfaceStyle;
|
|
21
23
|
/** A URL that redirects back to your app that PaymentSheet can use to auto-dismiss web views used for additional authentication, e.g. 3DS2 */
|
|
22
24
|
returnURL?: string;
|
|
23
25
|
/** Configuration for how billing details are collected during checkout. */
|
|
@@ -64,8 +66,19 @@ export declare type SetupParamsBase = IntentParams & {
|
|
|
64
66
|
* - Note: Defaults to `Automatic` if not set
|
|
65
67
|
*/
|
|
66
68
|
paymentMethodLayout?: PaymentMethodLayout;
|
|
69
|
+
/**
|
|
70
|
+
* By default, PaymentSheet will accept all supported cards by Stripe.
|
|
71
|
+
* You can specify card brands PaymentSheet should block or allow payment for by providing an array of those card brands.
|
|
72
|
+
* Note: This is only a client-side solution.
|
|
73
|
+
* Note: Card brand filtering is not currently supported in Link.
|
|
74
|
+
*/
|
|
75
|
+
cardBrandAcceptance?: CardBrandAcceptance;
|
|
76
|
+
/** (Private Preview) This parameter is expected to be removed once we GA this feature
|
|
77
|
+
* When using customerSessions, allow users to update their saved cards
|
|
78
|
+
*/
|
|
79
|
+
updatePaymentMethodEnabled?: boolean;
|
|
67
80
|
};
|
|
68
|
-
export
|
|
81
|
+
export type SetupParams = (SetupParamsBase & {
|
|
69
82
|
/** A short-lived token that allows the SDK to access a Customer’s payment methods. */
|
|
70
83
|
customerEphemeralKeySecret: string;
|
|
71
84
|
customerSessionClientSecret?: never;
|
|
@@ -76,7 +89,7 @@ export declare type SetupParams = (SetupParamsBase & {
|
|
|
76
89
|
*/
|
|
77
90
|
customerSessionClientSecret: string;
|
|
78
91
|
}) | SetupParamsBase;
|
|
79
|
-
export
|
|
92
|
+
export type IntentParams = {
|
|
80
93
|
paymentIntentClientSecret: string;
|
|
81
94
|
setupIntentClientSecret?: undefined;
|
|
82
95
|
intentConfiguration?: never;
|
|
@@ -89,7 +102,7 @@ export declare type IntentParams = {
|
|
|
89
102
|
paymentIntentClientSecret?: never;
|
|
90
103
|
intentConfiguration: IntentConfiguration;
|
|
91
104
|
};
|
|
92
|
-
export
|
|
105
|
+
export type ApplePayParams = {
|
|
93
106
|
/** The two-letter ISO 3166 code of the country of your business, e.g. "US" */
|
|
94
107
|
merchantCountryCode: string;
|
|
95
108
|
/**
|
|
@@ -106,7 +119,7 @@ export declare type ApplePayParams = {
|
|
|
106
119
|
* function, or else the Apple Pay sheet will hang. */
|
|
107
120
|
setOrderTracking?: (completion: (orderIdentifier: string, orderTypeIdentifier: string, authenticationToken: string, webServiceUrl: string) => void) => void;
|
|
108
121
|
};
|
|
109
|
-
export
|
|
122
|
+
export type GooglePayParams = {
|
|
110
123
|
/** The two-letter ISO 3166 code of the country of your business, e.g. "US" */
|
|
111
124
|
merchantCountryCode: string;
|
|
112
125
|
/** The three-letter ISO 4217 alphabetic currency code, e.g. "USD" or "EUR". Required in order to support Google Pay when processing a Setup Intent. */
|
|
@@ -122,10 +135,23 @@ export declare type GooglePayParams = {
|
|
|
122
135
|
* for more information on button types. */
|
|
123
136
|
buttonType?: ButtonType;
|
|
124
137
|
};
|
|
138
|
+
export type LinkParams = {
|
|
139
|
+
/** Display configuration for Link */
|
|
140
|
+
display?: LinkDisplay;
|
|
141
|
+
};
|
|
142
|
+
/**
|
|
143
|
+
* Display configuration for Link
|
|
144
|
+
*/
|
|
145
|
+
export declare enum LinkDisplay {
|
|
146
|
+
/** Link will be displayed when available. */
|
|
147
|
+
AUTOMATIC = "automatic",
|
|
148
|
+
/** Link will never be displayed. */
|
|
149
|
+
NEVER = "never"
|
|
150
|
+
}
|
|
125
151
|
/**
|
|
126
152
|
* Used to customize the appearance of your PaymentSheet
|
|
127
153
|
*/
|
|
128
|
-
export
|
|
154
|
+
export type AppearanceParams = RecursivePartial<{
|
|
129
155
|
/** Describes the appearance of fonts in your PaymentSheet */
|
|
130
156
|
font: FontConfig;
|
|
131
157
|
/** Describes the colors in your PaymentSheet. Provide either a base config, or both `light` and `dark` configs, which will be useed based on whether the user is in Light or Dark mode. */
|
|
@@ -149,7 +175,7 @@ export declare type AppearanceParams = RecursivePartial<{
|
|
|
149
175
|
/** Describes the appearance of the primary "Pay" button at the bottom of your Payment Sheet */
|
|
150
176
|
primaryButton: PrimaryButtonConfig;
|
|
151
177
|
}>;
|
|
152
|
-
export
|
|
178
|
+
export type FontConfig = {
|
|
153
179
|
/**
|
|
154
180
|
* The font used for regular text. PaymentSheet will attempt to use medium and bold versions of this font if they exist.
|
|
155
181
|
*
|
|
@@ -164,7 +190,7 @@ export declare type FontConfig = {
|
|
|
164
190
|
*/
|
|
165
191
|
scale: number;
|
|
166
192
|
};
|
|
167
|
-
export
|
|
193
|
+
export type ShadowConfig = {
|
|
168
194
|
/** The color of the shadow.
|
|
169
195
|
* @default "#000000"
|
|
170
196
|
* */
|
|
@@ -185,7 +211,7 @@ export declare type ShadowConfig = {
|
|
|
185
211
|
*/
|
|
186
212
|
blurRadius: number;
|
|
187
213
|
};
|
|
188
|
-
export
|
|
214
|
+
export type GlobalColorConfig = {
|
|
189
215
|
/** A primary color used throughout your PaymentSheet, represented as a hex string with format #RRGGBB or #AARRGGBB.
|
|
190
216
|
* @default The System blue color on iOS, and "#007AFF" (light) / "#0074D4" (dark) on Android.
|
|
191
217
|
*/
|
|
@@ -231,7 +257,7 @@ export declare type GlobalColorConfig = {
|
|
|
231
257
|
*/
|
|
232
258
|
error: string;
|
|
233
259
|
};
|
|
234
|
-
export
|
|
260
|
+
export type PrimaryButtonConfig = {
|
|
235
261
|
/** The font family used specifically for the primary button.
|
|
236
262
|
* @default The root `appearance.font.family`
|
|
237
263
|
*/
|
|
@@ -257,7 +283,7 @@ export declare type PrimaryButtonConfig = {
|
|
|
257
283
|
shadow: ShadowConfig;
|
|
258
284
|
};
|
|
259
285
|
};
|
|
260
|
-
export
|
|
286
|
+
export type PrimaryButtonColorConfig = {
|
|
261
287
|
/** The background color used for the primary button in your PaymentSheet, represented as a hex string with format #RRGGBB or #AARRGGBB.
|
|
262
288
|
* @default The root `appearance.colors.primary`
|
|
263
289
|
*/
|
|
@@ -271,20 +297,20 @@ export declare type PrimaryButtonColorConfig = {
|
|
|
271
297
|
*/
|
|
272
298
|
border: string;
|
|
273
299
|
};
|
|
274
|
-
|
|
300
|
+
type RecursivePartial<T> = {
|
|
275
301
|
[P in keyof T]?: T[P] extends (infer U)[] ? RecursivePartial<U>[] : T[P] extends object ? RecursivePartial<T[P]> : T[P];
|
|
276
302
|
};
|
|
277
303
|
export interface PaymentOption {
|
|
278
304
|
label: string;
|
|
279
305
|
image: string;
|
|
280
306
|
}
|
|
281
|
-
export
|
|
307
|
+
export type PresentOptions = {
|
|
282
308
|
/** The number of milliseconds (after presenting) before the Payment Sheet closes automatically, at which point
|
|
283
309
|
*`presentPaymentSheet` will resolve with an `error.code` of `PaymentSheetError.Timeout`. The default is no timeout.
|
|
284
310
|
*/
|
|
285
311
|
timeout?: number;
|
|
286
312
|
};
|
|
287
|
-
export
|
|
313
|
+
export type BillingDetailsCollectionConfiguration = {
|
|
288
314
|
/** How to collect the name field. Defaults to `CollectionMode.automatic`. */
|
|
289
315
|
name?: CollectionMode;
|
|
290
316
|
/** How to collect the phone field. Defaults to `CollectionMode.automatic`. */
|
|
@@ -312,20 +338,20 @@ export declare enum AddressCollectionMode {
|
|
|
312
338
|
/** Collect the full billing address, regardless of the Payment Method's requirements. */
|
|
313
339
|
FULL = "full"
|
|
314
340
|
}
|
|
315
|
-
export
|
|
316
|
-
export
|
|
341
|
+
export type IntentCreationError = StripeError<'Failed'>;
|
|
342
|
+
export type IntentCreationCallbackParams = {
|
|
317
343
|
clientSecret: string;
|
|
318
344
|
error?: never;
|
|
319
345
|
} | {
|
|
320
346
|
clientSecret?: never;
|
|
321
347
|
error: IntentCreationError;
|
|
322
348
|
};
|
|
323
|
-
export
|
|
349
|
+
export type IntentConfiguration = {
|
|
324
350
|
confirmHandler: (paymentMethod: Result, shouldSavePaymentMethod: boolean, intentCreationCallback: (result: IntentCreationCallbackParams) => void) => void;
|
|
325
351
|
mode: Mode;
|
|
326
352
|
paymentMethodTypes?: Array<string>;
|
|
327
353
|
};
|
|
328
|
-
export
|
|
354
|
+
export type Mode = PaymentMode | SetupMode;
|
|
329
355
|
/**
|
|
330
356
|
* Controls when the funds will be captured. Seealso: https://stripe.com/docs/api/payment_intents/create#create_payment_intent-capture_method
|
|
331
357
|
*/
|
|
@@ -339,13 +365,13 @@ export declare enum CaptureMethod {
|
|
|
339
365
|
- Seealso: https://stripe.com/docs/payments/payment-intents/asynchronous-capture-automatic-async */
|
|
340
366
|
AutomaticAsync = "AutomaticAsync"
|
|
341
367
|
}
|
|
342
|
-
export
|
|
368
|
+
export type PaymentMode = {
|
|
343
369
|
amount: number;
|
|
344
370
|
currencyCode: string;
|
|
345
371
|
setupFutureUsage?: FutureUsage;
|
|
346
372
|
captureMethod?: CaptureMethod;
|
|
347
373
|
};
|
|
348
|
-
export
|
|
374
|
+
export type SetupMode = {
|
|
349
375
|
currencyCode?: string;
|
|
350
376
|
setupFutureUsage: FutureUsage;
|
|
351
377
|
};
|
|
@@ -365,4 +391,47 @@ export declare enum PaymentMethodLayout {
|
|
|
365
391
|
*/
|
|
366
392
|
Automatic = "Automatic"
|
|
367
393
|
}
|
|
394
|
+
/** Card brand categories that can be allowed or disallowed */
|
|
395
|
+
export declare enum CardBrandCategory {
|
|
396
|
+
/** Visa branded cards */
|
|
397
|
+
Visa = "visa",
|
|
398
|
+
/** Mastercard branded cards */
|
|
399
|
+
Mastercard = "mastercard",
|
|
400
|
+
/** American Express branded cards */
|
|
401
|
+
Amex = "amex",
|
|
402
|
+
/**
|
|
403
|
+
* Discover branded cards
|
|
404
|
+
* Note: Encompasses all of Discover Global Network (Discover, Diners, JCB, UnionPay, Elo)
|
|
405
|
+
*/
|
|
406
|
+
Discover = "discover"
|
|
407
|
+
}
|
|
408
|
+
/** Filter types for card brand acceptance */
|
|
409
|
+
export declare enum CardBrandAcceptanceFilter {
|
|
410
|
+
/** Accept all card brands supported by Stripe */
|
|
411
|
+
All = "all",
|
|
412
|
+
/** Accept only the specified card brands */
|
|
413
|
+
Allowed = "allowed",
|
|
414
|
+
/** Accept all card brands except the specified ones */
|
|
415
|
+
Disallowed = "disallowed"
|
|
416
|
+
}
|
|
417
|
+
/** Options to block certain card brands on the client */
|
|
418
|
+
export type CardBrandAcceptance = {
|
|
419
|
+
/** Accept all card brands supported by Stripe */
|
|
420
|
+
filter: CardBrandAcceptanceFilter.All;
|
|
421
|
+
} | {
|
|
422
|
+
/** Accept only the specified card brands */
|
|
423
|
+
filter: CardBrandAcceptanceFilter.Allowed;
|
|
424
|
+
/** List of card brands to accept
|
|
425
|
+
* Note: Any card brands that do not map to a CardBrandCategory will be blocked when using an allow list
|
|
426
|
+
*/
|
|
427
|
+
brands: CardBrandCategory[];
|
|
428
|
+
} | {
|
|
429
|
+
/** Accept all card brands except the specified ones */
|
|
430
|
+
filter: CardBrandAcceptanceFilter.Disallowed;
|
|
431
|
+
/** List of card brands to block
|
|
432
|
+
* Note: Any card brands that do not map to a CardBrandCategory will be accepted when using a disallow list
|
|
433
|
+
*/
|
|
434
|
+
brands: CardBrandCategory[];
|
|
435
|
+
};
|
|
368
436
|
export {};
|
|
437
|
+
//# sourceMappingURL=PaymentSheet.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PaymentSheet.d.ts","sourceRoot":"","sources":["../../../../src/types/PaymentSheet.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,cAAc,EACd,cAAc,EACd,SAAS,EACT,kBAAkB,EACnB,MAAM,UAAU,CAAC;AAClB,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAClD,OAAO,KAAK,EACV,UAAU,EACV,uBAAuB,EACvB,6BAA6B,EAC7B,oBAAoB,EACrB,MAAM,eAAe,CAAC;AACvB,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AACnD,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AAC9C,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAE5C,MAAM,MAAM,eAAe,GAAG,YAAY,GAAG;IAC3C,sGAAsG;IACtG,mBAAmB,EAAE,MAAM,CAAC;IAC5B,wHAAwH;IACxH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;6FACyF;IACzF,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,4FAA4F;IAC5F,QAAQ,CAAC,EAAE,cAAc,CAAC;IAC1B,iGAAiG;IACjG,SAAS,CAAC,EAAE,eAAe,CAAC;IAC5B,6BAA6B;IAC7B,IAAI,CAAC,EAAE,UAAU,CAAC;IAClB,6EAA6E;IAC7E,KAAK,CAAC,EAAE,kBAAkB,CAAC;IAC3B,8IAA8I;IAC9I,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,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