@stripe/stripe-js 4.5.0 → 4.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/api/setup-intents.d.mts +28 -3
- package/dist/api/setup-intents.d.ts +28 -3
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/dist/pure.js +1 -1
- package/dist/pure.mjs +1 -1
- package/dist/stripe-js/elements-group.d.mts +5 -0
- package/dist/stripe-js/elements-group.d.ts +5 -0
- package/package.json +1 -1
|
@@ -131,17 +131,25 @@ export namespace SetupIntent {
|
|
|
131
131
|
}
|
|
132
132
|
|
|
133
133
|
export interface NextAction {
|
|
134
|
-
redirect_to_url?: NextAction.RedirectToUrl;
|
|
135
|
-
|
|
136
134
|
/**
|
|
137
|
-
* Type of the next action to perform, one of `redirect_to_url` or `
|
|
135
|
+
* Type of the next action to perform, one of `redirect_to_url`, `use_stripe_sdk`, or `verify_with_microdeposits`.
|
|
138
136
|
*/
|
|
139
137
|
type: string;
|
|
140
138
|
|
|
139
|
+
/**
|
|
140
|
+
* Contains instructions for authenticating a payment by redirecting your customer to another page or application.
|
|
141
|
+
*/
|
|
142
|
+
redirect_to_url?: NextAction.RedirectToUrl;
|
|
143
|
+
|
|
141
144
|
/**
|
|
142
145
|
* When confirming a SetupIntent with Stripe.js, Stripe.js depends on the contents of this dictionary to invoke authentication flows. The shape of the contents is subject to change and is only intended to be used by Stripe.js.
|
|
143
146
|
*/
|
|
144
147
|
use_stripe_sdk?: NextAction.UseStripeSdk;
|
|
148
|
+
|
|
149
|
+
/**
|
|
150
|
+
* Contains details describing microdeposits verification flow.
|
|
151
|
+
*/
|
|
152
|
+
verify_with_microdeposits?: NextAction.VerifyWithMicrodeposits;
|
|
145
153
|
}
|
|
146
154
|
|
|
147
155
|
export namespace NextAction {
|
|
@@ -158,6 +166,23 @@ export namespace SetupIntent {
|
|
|
158
166
|
}
|
|
159
167
|
|
|
160
168
|
export interface UseStripeSdk {}
|
|
169
|
+
|
|
170
|
+
export interface VerifyWithMicrodeposits {
|
|
171
|
+
/**
|
|
172
|
+
* The timestamp when the microdeposits are expected to land.
|
|
173
|
+
*/
|
|
174
|
+
arrival_date: number;
|
|
175
|
+
|
|
176
|
+
/**
|
|
177
|
+
* The URL for the hosted verification page, which allows customers to verify their bank account.
|
|
178
|
+
*/
|
|
179
|
+
hosted_verification_url: string;
|
|
180
|
+
|
|
181
|
+
/**
|
|
182
|
+
* The type of the microdeposit sent to the customer. Used to distinguish between different verification methods.
|
|
183
|
+
*/
|
|
184
|
+
microdeposit_type: string | null;
|
|
185
|
+
}
|
|
161
186
|
}
|
|
162
187
|
|
|
163
188
|
export type Status =
|
|
@@ -131,17 +131,25 @@ export namespace SetupIntent {
|
|
|
131
131
|
}
|
|
132
132
|
|
|
133
133
|
export interface NextAction {
|
|
134
|
-
redirect_to_url?: NextAction.RedirectToUrl;
|
|
135
|
-
|
|
136
134
|
/**
|
|
137
|
-
* Type of the next action to perform, one of `redirect_to_url` or `
|
|
135
|
+
* Type of the next action to perform, one of `redirect_to_url`, `use_stripe_sdk`, or `verify_with_microdeposits`.
|
|
138
136
|
*/
|
|
139
137
|
type: string;
|
|
140
138
|
|
|
139
|
+
/**
|
|
140
|
+
* Contains instructions for authenticating a payment by redirecting your customer to another page or application.
|
|
141
|
+
*/
|
|
142
|
+
redirect_to_url?: NextAction.RedirectToUrl;
|
|
143
|
+
|
|
141
144
|
/**
|
|
142
145
|
* When confirming a SetupIntent with Stripe.js, Stripe.js depends on the contents of this dictionary to invoke authentication flows. The shape of the contents is subject to change and is only intended to be used by Stripe.js.
|
|
143
146
|
*/
|
|
144
147
|
use_stripe_sdk?: NextAction.UseStripeSdk;
|
|
148
|
+
|
|
149
|
+
/**
|
|
150
|
+
* Contains details describing microdeposits verification flow.
|
|
151
|
+
*/
|
|
152
|
+
verify_with_microdeposits?: NextAction.VerifyWithMicrodeposits;
|
|
145
153
|
}
|
|
146
154
|
|
|
147
155
|
export namespace NextAction {
|
|
@@ -158,6 +166,23 @@ export namespace SetupIntent {
|
|
|
158
166
|
}
|
|
159
167
|
|
|
160
168
|
export interface UseStripeSdk {}
|
|
169
|
+
|
|
170
|
+
export interface VerifyWithMicrodeposits {
|
|
171
|
+
/**
|
|
172
|
+
* The timestamp when the microdeposits are expected to land.
|
|
173
|
+
*/
|
|
174
|
+
arrival_date: number;
|
|
175
|
+
|
|
176
|
+
/**
|
|
177
|
+
* The URL for the hosted verification page, which allows customers to verify their bank account.
|
|
178
|
+
*/
|
|
179
|
+
hosted_verification_url: string;
|
|
180
|
+
|
|
181
|
+
/**
|
|
182
|
+
* The type of the microdeposit sent to the customer. Used to distinguish between different verification methods.
|
|
183
|
+
*/
|
|
184
|
+
microdeposit_type: string | null;
|
|
185
|
+
}
|
|
161
186
|
}
|
|
162
187
|
|
|
163
188
|
export type Status =
|
package/dist/index.js
CHANGED
package/dist/index.mjs
CHANGED
package/dist/pure.js
CHANGED
package/dist/pure.mjs
CHANGED
|
@@ -900,6 +900,11 @@ export interface StripeElementsUpdateOptions {
|
|
|
900
900
|
* @docs https://stripe.com/docs/js/elements_object/create_without_intent#stripe_elements_no_intent-options-onBehalfOf
|
|
901
901
|
*/
|
|
902
902
|
on_behalf_of?: string;
|
|
903
|
+
|
|
904
|
+
/**
|
|
905
|
+
* Display saved PaymentMethods and Customer information.
|
|
906
|
+
*/
|
|
907
|
+
customerSessionClientSecret?: string;
|
|
903
908
|
}
|
|
904
909
|
|
|
905
910
|
/*
|
|
@@ -900,6 +900,11 @@ export interface StripeElementsUpdateOptions {
|
|
|
900
900
|
* @docs https://stripe.com/docs/js/elements_object/create_without_intent#stripe_elements_no_intent-options-onBehalfOf
|
|
901
901
|
*/
|
|
902
902
|
on_behalf_of?: string;
|
|
903
|
+
|
|
904
|
+
/**
|
|
905
|
+
* Display saved PaymentMethods and Customer information.
|
|
906
|
+
*/
|
|
907
|
+
customerSessionClientSecret?: string;
|
|
903
908
|
}
|
|
904
909
|
|
|
905
910
|
/*
|