@stripe/stripe-js 1.26.0 → 1.27.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/pure.esm.js +1 -1
- package/dist/pure.js +1 -1
- package/dist/stripe.esm.js +1 -1
- package/dist/stripe.js +1 -1
- package/package.json +1 -1
- package/types/stripe-js/elements-group.d.ts +7 -0
- package/types/stripe-js/payment-intents.d.ts +15 -6
- package/types/stripe-js/setup-intents.d.ts +5 -7
- package/types/stripe-js/stripe.d.ts +0 -2
package/dist/pure.esm.js
CHANGED
package/dist/pure.js
CHANGED
package/dist/stripe.esm.js
CHANGED
package/dist/stripe.js
CHANGED
package/package.json
CHANGED
|
@@ -458,6 +458,13 @@ export interface StripeElementsOptions {
|
|
|
458
458
|
* @docs https://stripe.com/docs/api/payment_intents/object#payment_intent_object-client_secret
|
|
459
459
|
*/
|
|
460
460
|
clientSecret?: string;
|
|
461
|
+
|
|
462
|
+
/**
|
|
463
|
+
* Display skeleton loader UI while waiting for Elements to be fully loaded, after they are mounted.
|
|
464
|
+
* Supported for the `payment`, `shippingAddress`, and `linkAuthentication` Elements.
|
|
465
|
+
* Default is `'auto'` (Stripe determines if a loader UI should be shown).
|
|
466
|
+
*/
|
|
467
|
+
loader?: 'auto' | 'always' | 'never';
|
|
461
468
|
}
|
|
462
469
|
|
|
463
470
|
/*
|
|
@@ -483,6 +483,17 @@ export interface CreatePaymentMethodUsBankAccountData
|
|
|
483
483
|
billing_details: PaymentMethodCreateParams.BillingDetails;
|
|
484
484
|
}
|
|
485
485
|
|
|
486
|
+
export interface CollectBankAccountParams {
|
|
487
|
+
/**
|
|
488
|
+
* The payment method type for the bank account details (e.g. `us_bank_account`)
|
|
489
|
+
*/
|
|
490
|
+
payment_method_type: string;
|
|
491
|
+
/**
|
|
492
|
+
* Payment method specific data to be sent with the request (billing details)
|
|
493
|
+
*/
|
|
494
|
+
payment_method_data: CollectBankAccountPaymentMethodData;
|
|
495
|
+
}
|
|
496
|
+
|
|
486
497
|
export interface CollectBankAccountPaymentMethodData {
|
|
487
498
|
/**
|
|
488
499
|
* The customer's billing details.
|
|
@@ -1309,11 +1320,9 @@ export interface VerifyMicrodepositsForPaymentData {
|
|
|
1309
1320
|
*/
|
|
1310
1321
|
export interface CollectBankAccountForPaymentOptions {
|
|
1311
1322
|
/**
|
|
1312
|
-
* The
|
|
1313
|
-
*/
|
|
1314
|
-
payment_method_type: string;
|
|
1315
|
-
/**
|
|
1316
|
-
* Payment method specific data to be sent with the request (billing details)
|
|
1323
|
+
* The client secret of the PaymentIntent.
|
|
1317
1324
|
*/
|
|
1318
|
-
|
|
1325
|
+
clientSecret: string;
|
|
1326
|
+
|
|
1327
|
+
params: CollectBankAccountParams;
|
|
1319
1328
|
}
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
CreatePaymentMethodPayPalData,
|
|
12
12
|
CreatePaymentMethodBacsDebitData,
|
|
13
13
|
CreatePaymentMethodUsBankAccountData,
|
|
14
|
-
|
|
14
|
+
CollectBankAccountParams,
|
|
15
15
|
} from './payment-intents';
|
|
16
16
|
|
|
17
17
|
import {Omit} from '../utils';
|
|
@@ -205,11 +205,9 @@ export interface ConfirmUsBankAccountSetupData
|
|
|
205
205
|
*/
|
|
206
206
|
export interface CollectBankAccountForSetupOptions {
|
|
207
207
|
/**
|
|
208
|
-
* The
|
|
208
|
+
* The client secret of the SetupIntent.
|
|
209
209
|
*/
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
*/
|
|
214
|
-
payment_method_data: CollectBankAccountPaymentMethodData;
|
|
210
|
+
clientSecret: string;
|
|
211
|
+
|
|
212
|
+
params: CollectBankAccountParams;
|
|
215
213
|
}
|
|
@@ -513,7 +513,6 @@ export interface Stripe {
|
|
|
513
513
|
* @docs https://stripe.com/docs/js/payment_intents/collect_bank_account_for_payment
|
|
514
514
|
*/
|
|
515
515
|
collectBankAccountForPayment(
|
|
516
|
-
clientSecret: string,
|
|
517
516
|
options: paymentIntents.CollectBankAccountForPaymentOptions
|
|
518
517
|
): Promise<PaymentIntentResult>;
|
|
519
518
|
|
|
@@ -786,7 +785,6 @@ export interface Stripe {
|
|
|
786
785
|
* @docs https://stripe.com/docs/js/setup_intents/collect_bank_account_for_setup
|
|
787
786
|
*/
|
|
788
787
|
collectBankAccountForSetup(
|
|
789
|
-
clientSecret: string,
|
|
790
788
|
options: setupIntents.CollectBankAccountForSetupOptions
|
|
791
789
|
): Promise<SetupIntentResult>;
|
|
792
790
|
|