@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 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
  [![npm version](https://img.shields.io/npm/v/@stripe/stripe-js.svg?style=flat-square)](https://www.npmjs.com/package/@stripe/stripe-js)
12
18
 
13
19
  ## Installation
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.54.0",
57
+ version: "1.54.2",
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.54.0",
61
+ version: "1.54.2",
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.54.0",
41
+ version: "1.54.2",
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.54.0",
45
+ version: "1.54.2",
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.54.0",
3
+ "version": "1.54.2",
4
4
  "description": "Stripe.js loading utility",
5
5
  "main": "dist/stripe.js",
6
6
  "module": "dist/stripe.esm.js",
@@ -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/create#create_payment_intent-setup_future_usage
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/create#create_payment_intent-setup_future_usage
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.