@stripe/stripe-js 1.54.0 → 1.54.2
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/README.md +6 -0
- 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/payment.d.ts +5 -1
- package/types/stripe-js/elements-group.d.ts +6 -6
package/README.md
CHANGED
|
@@ -8,6 +8,12 @@ you must load Stripe.js directly from `https://js.stripe.com`. You cannot
|
|
|
8
8
|
include it in a bundle or host it yourself. This package wraps the global
|
|
9
9
|
`Stripe` function provided by the Stripe.js script as an ES module.
|
|
10
10
|
|
|
11
|
+
Calling `loadStripe` always loads the latest version of Stripe.js, regardless of
|
|
12
|
+
which version of `@stripe/stripe-js` you use. Updates for this package only
|
|
13
|
+
impact tooling around the `loadStripe` helper itself and the TypeScript type
|
|
14
|
+
definitions provided for Stripe.js. Updates do not affect runtime availability
|
|
15
|
+
of features of Stripe.js.
|
|
16
|
+
|
|
11
17
|
[](https://www.npmjs.com/package/@stripe/stripe-js)
|
|
12
18
|
|
|
13
19
|
## Installation
|
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
|
@@ -167,12 +167,16 @@ export interface FieldsOption {
|
|
|
167
167
|
export type TermOption = 'auto' | 'always' | 'never';
|
|
168
168
|
|
|
169
169
|
export interface TermsOption {
|
|
170
|
+
applePay?: TermOption;
|
|
171
|
+
auBecsDebit?: TermOption;
|
|
170
172
|
bancontact?: TermOption;
|
|
171
173
|
card?: TermOption;
|
|
174
|
+
cashapp?: TermOption;
|
|
175
|
+
googlePay?: TermOption;
|
|
172
176
|
ideal?: TermOption;
|
|
177
|
+
paypal?: TermOption;
|
|
173
178
|
sepaDebit?: TermOption;
|
|
174
179
|
sofort?: TermOption;
|
|
175
|
-
auBecsDebit?: TermOption;
|
|
176
180
|
usBankAccount?: TermOption;
|
|
177
181
|
}
|
|
178
182
|
|
|
@@ -700,14 +700,14 @@ export interface StripeElementsOptionsMode extends BaseStripeElementsOptions {
|
|
|
700
700
|
*
|
|
701
701
|
* @docs https://stripe.com/docs/api/payment_intents/create#create_payment_intent-setup_future_usage
|
|
702
702
|
*/
|
|
703
|
-
setupFutureUsage?: 'off_session' | 'on_session';
|
|
703
|
+
setupFutureUsage?: 'off_session' | 'on_session' | null;
|
|
704
704
|
|
|
705
705
|
/**
|
|
706
706
|
* Indicates that you intend to make future payments with this PaymentIntent’s payment method.
|
|
707
707
|
*
|
|
708
708
|
* @docs https://stripe.com/docs/api/payment_intents/create#create_payment_intent-setup_future_usage
|
|
709
709
|
*/
|
|
710
|
-
setup_future_usage?: 'off_session' | 'on_session';
|
|
710
|
+
setup_future_usage?: 'off_session' | 'on_session' | null;
|
|
711
711
|
|
|
712
712
|
/**
|
|
713
713
|
* Controls when the funds will be captured from the customer’s account.
|
|
@@ -794,16 +794,16 @@ export interface StripeElementsUpdateOptions {
|
|
|
794
794
|
/**
|
|
795
795
|
* Indicates that you intend to make future payments with this PaymentIntent’s payment method.
|
|
796
796
|
*
|
|
797
|
-
* @docs https://stripe.com/docs/api/payment_intents/
|
|
797
|
+
* @docs https://stripe.com/docs/api/payment_intents/update#update_payment_intent-setup_future_usage
|
|
798
798
|
*/
|
|
799
|
-
setupFutureUsage?: 'off_session' | 'on_session';
|
|
799
|
+
setupFutureUsage?: 'off_session' | 'on_session' | null;
|
|
800
800
|
|
|
801
801
|
/**
|
|
802
802
|
* Indicates that you intend to make future payments with this PaymentIntent’s payment method.
|
|
803
803
|
*
|
|
804
|
-
* @docs https://stripe.com/docs/api/payment_intents/
|
|
804
|
+
* @docs https://stripe.com/docs/api/payment_intents/update#update_payment_intent-setup_future_usage
|
|
805
805
|
*/
|
|
806
|
-
setup_future_usage?: 'off_session' | 'on_session';
|
|
806
|
+
setup_future_usage?: 'off_session' | 'on_session' | null;
|
|
807
807
|
|
|
808
808
|
/**
|
|
809
809
|
* Controls when the funds will be captured from the customer’s account.
|