@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 CHANGED
@@ -54,7 +54,7 @@ var registerWrapper = function registerWrapper(stripe, startTime) {
54
54
 
55
55
  stripe._registerWrapper({
56
56
  name: 'stripe-js',
57
- version: "1.26.0",
57
+ version: "1.27.0",
58
58
  startTime: startTime
59
59
  });
60
60
  };
package/dist/pure.js CHANGED
@@ -58,7 +58,7 @@ var registerWrapper = function registerWrapper(stripe, startTime) {
58
58
 
59
59
  stripe._registerWrapper({
60
60
  name: 'stripe-js',
61
- version: "1.26.0",
61
+ version: "1.27.0",
62
62
  startTime: startTime
63
63
  });
64
64
  };
@@ -38,7 +38,7 @@ var registerWrapper = function registerWrapper(stripe, startTime) {
38
38
 
39
39
  stripe._registerWrapper({
40
40
  name: 'stripe-js',
41
- version: "1.26.0",
41
+ version: "1.27.0",
42
42
  startTime: startTime
43
43
  });
44
44
  };
package/dist/stripe.js CHANGED
@@ -42,7 +42,7 @@ var registerWrapper = function registerWrapper(stripe, startTime) {
42
42
 
43
43
  stripe._registerWrapper({
44
44
  name: 'stripe-js',
45
- version: "1.26.0",
45
+ version: "1.27.0",
46
46
  startTime: startTime
47
47
  });
48
48
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stripe/stripe-js",
3
- "version": "1.26.0",
3
+ "version": "1.27.0",
4
4
  "description": "Stripe.js loading utility",
5
5
  "main": "dist/stripe.js",
6
6
  "module": "dist/stripe.esm.js",
@@ -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 payment method type for the bank account details (e.g. `us_bank_account`)
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
- payment_method_data: CollectBankAccountPaymentMethodData;
1325
+ clientSecret: string;
1326
+
1327
+ params: CollectBankAccountParams;
1319
1328
  }
@@ -11,7 +11,7 @@ import {
11
11
  CreatePaymentMethodPayPalData,
12
12
  CreatePaymentMethodBacsDebitData,
13
13
  CreatePaymentMethodUsBankAccountData,
14
- CollectBankAccountPaymentMethodData,
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 payment method type for the bank account details (e.g. `us_bank_account`)
208
+ * The client secret of the SetupIntent.
209
209
  */
210
- payment_method_type: string;
211
- /**
212
- * Payment method specific data to be sent with the request (billing details)
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