@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 +11 -1
- package/dist/index.d.ts +11 -1
- package/dist/stripe.js +1 -1
- package/dist/stripe.mjs +1 -1
- package/package.json +1 -1
- package/pure/index.d.mts +11 -1
- package/pure/index.d.ts +11 -1
- package/pure/index.js +1 -1
- package/pure/index.mjs +1 -1
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
|
|
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
|
|
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
package/dist/stripe.mjs
CHANGED
package/package.json
CHANGED
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
|
|
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
|
|
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