@stripe/stripe-js 3.0.7 → 3.0.8

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/index.d.mts CHANGED
@@ -1687,6 +1687,11 @@ interface ConfirmPaymentData extends PaymentIntentConfirmParams {
1687
1687
  * @docs https://stripe.com/docs/api/payment_intents/create#create_payment_intent-payment_method_data-billing_details
1688
1688
  */
1689
1689
  billing_details?: PaymentMethodCreateParams.BillingDetails;
1690
+
1691
+ /**
1692
+ * Specifies if the PaymentMethod should be redisplayed when using the Saved Payment Method feature
1693
+ */
1694
+ allow_redisplay?: 'always' | 'limited' | 'unspecified';
1690
1695
  };
1691
1696
 
1692
1697
  /**
@@ -2792,7 +2797,12 @@ interface StripeEmbeddedCheckoutOptions {
2792
2797
  /**
2793
2798
  * The client secret of the [Checkout Session](https://stripe.com/docs/api/checkout/sessions).
2794
2799
  */
2795
- clientSecret: string;
2800
+ clientSecret?: string;
2801
+ /**
2802
+ * A function that returns a Promise which resolves with the client secret of
2803
+ * the [Checkout Session](https://stripe.com/docs/api/checkout/sessions).
2804
+ */
2805
+ fetchClientSecret?: () => Promise<string>;
2796
2806
  /**
2797
2807
  * onComplete is called when the Checkout Session completes successfully.
2798
2808
  * You can use it to unmount Embedded Checkout and render a custom success UI.
package/dist/index.d.ts CHANGED
@@ -1687,6 +1687,11 @@ interface ConfirmPaymentData extends PaymentIntentConfirmParams {
1687
1687
  * @docs https://stripe.com/docs/api/payment_intents/create#create_payment_intent-payment_method_data-billing_details
1688
1688
  */
1689
1689
  billing_details?: PaymentMethodCreateParams.BillingDetails;
1690
+
1691
+ /**
1692
+ * Specifies if the PaymentMethod should be redisplayed when using the Saved Payment Method feature
1693
+ */
1694
+ allow_redisplay?: 'always' | 'limited' | 'unspecified';
1690
1695
  };
1691
1696
 
1692
1697
  /**
@@ -2792,7 +2797,12 @@ interface StripeEmbeddedCheckoutOptions {
2792
2797
  /**
2793
2798
  * The client secret of the [Checkout Session](https://stripe.com/docs/api/checkout/sessions).
2794
2799
  */
2795
- clientSecret: string;
2800
+ clientSecret?: string;
2801
+ /**
2802
+ * A function that returns a Promise which resolves with the client secret of
2803
+ * the [Checkout Session](https://stripe.com/docs/api/checkout/sessions).
2804
+ */
2805
+ fetchClientSecret?: () => Promise<string>;
2796
2806
  /**
2797
2807
  * onComplete is called when the Checkout Session completes successfully.
2798
2808
  * You can use it to unmount Embedded Checkout and render a custom success UI.
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: "3.0.7",
45
+ version: "3.0.8",
46
46
  startTime: startTime
47
47
  });
48
48
  };
package/dist/stripe.mjs CHANGED
@@ -38,7 +38,7 @@ var registerWrapper = function registerWrapper(stripe, startTime) {
38
38
 
39
39
  stripe._registerWrapper({
40
40
  name: 'stripe-js',
41
- version: "3.0.7",
41
+ version: "3.0.8",
42
42
  startTime: startTime
43
43
  });
44
44
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stripe/stripe-js",
3
- "version": "3.0.7",
3
+ "version": "3.0.8",
4
4
  "description": "Stripe.js loading utility",
5
5
  "repository": "github:stripe/stripe-js",
6
6
  "main": "dist/stripe.js",
package/pure/index.d.mts CHANGED
@@ -4881,6 +4881,11 @@ interface ConfirmPaymentData extends PaymentIntentConfirmParams {
4881
4881
  * @docs https://stripe.com/docs/api/payment_intents/create#create_payment_intent-payment_method_data-billing_details
4882
4882
  */
4883
4883
  billing_details?: PaymentMethodCreateParams.BillingDetails;
4884
+
4885
+ /**
4886
+ * Specifies if the PaymentMethod should be redisplayed when using the Saved Payment Method feature
4887
+ */
4888
+ allow_redisplay?: 'always' | 'limited' | 'unspecified';
4884
4889
  };
4885
4890
 
4886
4891
  /**
@@ -5986,7 +5991,12 @@ interface StripeEmbeddedCheckoutOptions {
5986
5991
  /**
5987
5992
  * The client secret of the [Checkout Session](https://stripe.com/docs/api/checkout/sessions).
5988
5993
  */
5989
- clientSecret: string;
5994
+ clientSecret?: string;
5995
+ /**
5996
+ * A function that returns a Promise which resolves with the client secret of
5997
+ * the [Checkout Session](https://stripe.com/docs/api/checkout/sessions).
5998
+ */
5999
+ fetchClientSecret?: () => Promise<string>;
5990
6000
  /**
5991
6001
  * onComplete is called when the Checkout Session completes successfully.
5992
6002
  * You can use it to unmount Embedded Checkout and render a custom success UI.
package/pure/index.d.ts CHANGED
@@ -4881,6 +4881,11 @@ interface ConfirmPaymentData extends PaymentIntentConfirmParams {
4881
4881
  * @docs https://stripe.com/docs/api/payment_intents/create#create_payment_intent-payment_method_data-billing_details
4882
4882
  */
4883
4883
  billing_details?: PaymentMethodCreateParams.BillingDetails;
4884
+
4885
+ /**
4886
+ * Specifies if the PaymentMethod should be redisplayed when using the Saved Payment Method feature
4887
+ */
4888
+ allow_redisplay?: 'always' | 'limited' | 'unspecified';
4884
4889
  };
4885
4890
 
4886
4891
  /**
@@ -5986,7 +5991,12 @@ interface StripeEmbeddedCheckoutOptions {
5986
5991
  /**
5987
5992
  * The client secret of the [Checkout Session](https://stripe.com/docs/api/checkout/sessions).
5988
5993
  */
5989
- clientSecret: string;
5994
+ clientSecret?: string;
5995
+ /**
5996
+ * A function that returns a Promise which resolves with the client secret of
5997
+ * the [Checkout Session](https://stripe.com/docs/api/checkout/sessions).
5998
+ */
5999
+ fetchClientSecret?: () => Promise<string>;
5990
6000
  /**
5991
6001
  * onComplete is called when the Checkout Session completes successfully.
5992
6002
  * You can use it to unmount Embedded Checkout and render a custom success UI.
package/pure/index.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: "3.0.7",
61
+ version: "3.0.8",
62
62
  startTime: startTime
63
63
  });
64
64
  };
package/pure/index.mjs CHANGED
@@ -54,7 +54,7 @@ var registerWrapper = function registerWrapper(stripe, startTime) {
54
54
 
55
55
  stripe._registerWrapper({
56
56
  name: 'stripe-js',
57
- version: "3.0.7",
57
+ version: "3.0.8",
58
58
  startTime: startTime
59
59
  });
60
60
  };