@stripe/stripe-js 7.1.0 → 7.3.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/index.js CHANGED
@@ -55,7 +55,7 @@ var registerWrapper = function registerWrapper(stripe, startTime) {
55
55
 
56
56
  stripe._registerWrapper({
57
57
  name: 'stripe-js',
58
- version: "7.1.0",
58
+ version: "7.3.0",
59
59
  startTime: startTime
60
60
  });
61
61
  };
@@ -151,7 +151,7 @@ var initStripe = function initStripe(maybeStripe, args, startTime) {
151
151
  var expectedVersion = RELEASE_TRAIN;
152
152
 
153
153
  if (isTestKey && version !== expectedVersion) {
154
- console.warn("Stripe.js@".concat(version, " was loaded on the page, but @stripe/stripe-js@").concat("7.1.0", " expected Stripe.js@").concat(expectedVersion, ". This may result in unexpected behavior. For more information, see https://docs.stripe.com/sdks/stripejs-versioning"));
154
+ console.warn("Stripe.js@".concat(version, " was loaded on the page, but @stripe/stripe-js@").concat("7.3.0", " expected Stripe.js@").concat(expectedVersion, ". This may result in unexpected behavior. For more information, see https://docs.stripe.com/sdks/stripejs-versioning"));
155
155
  }
156
156
 
157
157
  var stripe = maybeStripe.apply(undefined, args);
package/dist/index.mjs CHANGED
@@ -51,7 +51,7 @@ var registerWrapper = function registerWrapper(stripe, startTime) {
51
51
 
52
52
  stripe._registerWrapper({
53
53
  name: 'stripe-js',
54
- version: "7.1.0",
54
+ version: "7.3.0",
55
55
  startTime: startTime
56
56
  });
57
57
  };
@@ -147,7 +147,7 @@ var initStripe = function initStripe(maybeStripe, args, startTime) {
147
147
  var expectedVersion = RELEASE_TRAIN;
148
148
 
149
149
  if (isTestKey && version !== expectedVersion) {
150
- console.warn("Stripe.js@".concat(version, " was loaded on the page, but @stripe/stripe-js@").concat("7.1.0", " expected Stripe.js@").concat(expectedVersion, ". This may result in unexpected behavior. For more information, see https://docs.stripe.com/sdks/stripejs-versioning"));
150
+ console.warn("Stripe.js@".concat(version, " was loaded on the page, but @stripe/stripe-js@").concat("7.3.0", " expected Stripe.js@").concat(expectedVersion, ". This may result in unexpected behavior. For more information, see https://docs.stripe.com/sdks/stripejs-versioning"));
151
151
  }
152
152
 
153
153
  var stripe = maybeStripe.apply(undefined, args);
package/dist/pure.js CHANGED
@@ -71,7 +71,7 @@ var registerWrapper = function registerWrapper(stripe, startTime) {
71
71
 
72
72
  stripe._registerWrapper({
73
73
  name: 'stripe-js',
74
- version: "7.1.0",
74
+ version: "7.3.0",
75
75
  startTime: startTime
76
76
  });
77
77
  };
@@ -167,7 +167,7 @@ var initStripe = function initStripe(maybeStripe, args, startTime) {
167
167
  var expectedVersion = RELEASE_TRAIN;
168
168
 
169
169
  if (isTestKey && version !== expectedVersion) {
170
- console.warn("Stripe.js@".concat(version, " was loaded on the page, but @stripe/stripe-js@").concat("7.1.0", " expected Stripe.js@").concat(expectedVersion, ". This may result in unexpected behavior. For more information, see https://docs.stripe.com/sdks/stripejs-versioning"));
170
+ console.warn("Stripe.js@".concat(version, " was loaded on the page, but @stripe/stripe-js@").concat("7.3.0", " expected Stripe.js@").concat(expectedVersion, ". This may result in unexpected behavior. For more information, see https://docs.stripe.com/sdks/stripejs-versioning"));
171
171
  }
172
172
 
173
173
  var stripe = maybeStripe.apply(undefined, args);
package/dist/pure.mjs CHANGED
@@ -67,7 +67,7 @@ var registerWrapper = function registerWrapper(stripe, startTime) {
67
67
 
68
68
  stripe._registerWrapper({
69
69
  name: 'stripe-js',
70
- version: "7.1.0",
70
+ version: "7.3.0",
71
71
  startTime: startTime
72
72
  });
73
73
  };
@@ -163,7 +163,7 @@ var initStripe = function initStripe(maybeStripe, args, startTime) {
163
163
  var expectedVersion = RELEASE_TRAIN;
164
164
 
165
165
  if (isTestKey && version !== expectedVersion) {
166
- console.warn("Stripe.js@".concat(version, " was loaded on the page, but @stripe/stripe-js@").concat("7.1.0", " expected Stripe.js@").concat(expectedVersion, ". This may result in unexpected behavior. For more information, see https://docs.stripe.com/sdks/stripejs-versioning"));
166
+ console.warn("Stripe.js@".concat(version, " was loaded on the page, but @stripe/stripe-js@").concat("7.3.0", " expected Stripe.js@").concat(expectedVersion, ". This may result in unexpected behavior. For more information, see https://docs.stripe.com/sdks/stripejs-versioning"));
167
167
  }
168
168
 
169
169
  var stripe = maybeStripe.apply(undefined, args);
@@ -194,7 +194,8 @@ export type ExpressPaymentType =
194
194
  | 'apple_pay'
195
195
  | 'amazon_pay'
196
196
  | 'link'
197
- | 'paypal';
197
+ | 'paypal'
198
+ | 'klarna';
198
199
 
199
200
  export type ExpressCheckoutPartialAddress = {
200
201
  city: string;
@@ -261,6 +262,7 @@ export type ExpressCheckoutPaymentMethodsOption = {
261
262
  googlePay?: ExpressCheckoutPaymentMethodOptionWithAlways;
262
263
  link?: ExpressCheckoutPaymentMethodOption;
263
264
  paypal?: ExpressCheckoutPaymentMethodOption;
265
+ klarna?: ExpressCheckoutPaymentMethodOption;
264
266
  };
265
267
 
266
268
  export type ExpressCheckoutWalletsOption = {
@@ -446,6 +448,7 @@ export type AvailablePaymentMethods = {
446
448
  googlePay: boolean;
447
449
  link: boolean;
448
450
  paypal: boolean;
451
+ klarna: boolean;
449
452
  };
450
453
 
451
454
  export interface StripeExpressCheckoutElementReadyEvent {
@@ -194,7 +194,8 @@ export type ExpressPaymentType =
194
194
  | 'apple_pay'
195
195
  | 'amazon_pay'
196
196
  | 'link'
197
- | 'paypal';
197
+ | 'paypal'
198
+ | 'klarna';
198
199
 
199
200
  export type ExpressCheckoutPartialAddress = {
200
201
  city: string;
@@ -261,6 +262,7 @@ export type ExpressCheckoutPaymentMethodsOption = {
261
262
  googlePay?: ExpressCheckoutPaymentMethodOptionWithAlways;
262
263
  link?: ExpressCheckoutPaymentMethodOption;
263
264
  paypal?: ExpressCheckoutPaymentMethodOption;
265
+ klarna?: ExpressCheckoutPaymentMethodOption;
264
266
  };
265
267
 
266
268
  export type ExpressCheckoutWalletsOption = {
@@ -446,6 +448,7 @@ export type AvailablePaymentMethods = {
446
448
  googlePay: boolean;
447
449
  link: boolean;
448
450
  paypal: boolean;
451
+ klarna: boolean;
449
452
  };
450
453
 
451
454
  export interface StripeExpressCheckoutElementReadyEvent {
@@ -42,15 +42,18 @@ export interface StripePaymentMethodMessagingElementOptions {
42
42
  * The currency to display.
43
43
  */
44
44
  currency:
45
- | 'USD'
46
- | 'GBP'
47
- | 'EUR'
45
+ | 'AUD'
46
+ | 'CAD'
47
+ | 'CHF'
48
+ | 'CZK'
48
49
  | 'DKK'
50
+ | 'EUR'
51
+ | 'GBP'
49
52
  | 'NOK'
53
+ | 'NZD'
54
+ | 'PLN'
50
55
  | 'SEK'
51
- | 'AUD'
52
- | 'CAD'
53
- | 'NZD';
56
+ | 'USD';
54
57
 
55
58
  /**
56
59
  * Payment methods to show messaging for.
@@ -71,24 +74,30 @@ export interface StripePaymentMethodMessagingElementOptions {
71
74
  /**
72
75
  * The country the end-buyer is in.
73
76
  */
74
- countryCode:
75
- | 'US'
76
- | 'CA'
77
- | 'AU'
78
- | 'NZ'
79
- | 'GB'
80
- | 'IE'
81
- | 'FR'
82
- | 'ES'
83
- | 'DE'
77
+ countryCode?:
84
78
  | 'AT'
79
+ | 'AU'
85
80
  | 'BE'
81
+ | 'CA'
82
+ | 'CH'
83
+ | 'CZ'
84
+ | 'DE'
86
85
  | 'DK'
86
+ | 'ES'
87
87
  | 'FI'
88
+ | 'FR'
89
+ | 'GB'
90
+ | 'GR'
91
+ | 'IE'
88
92
  | 'IT'
89
93
  | 'NL'
90
94
  | 'NO'
91
- | 'SE';
95
+ | 'NZ'
96
+ | 'PL'
97
+ | 'PT'
98
+ | 'RO'
99
+ | 'SE'
100
+ | 'US';
92
101
 
93
102
  /**
94
103
  * The logo color to display in the message. Defaults to black
@@ -42,15 +42,18 @@ export interface StripePaymentMethodMessagingElementOptions {
42
42
  * The currency to display.
43
43
  */
44
44
  currency:
45
- | 'USD'
46
- | 'GBP'
47
- | 'EUR'
45
+ | 'AUD'
46
+ | 'CAD'
47
+ | 'CHF'
48
+ | 'CZK'
48
49
  | 'DKK'
50
+ | 'EUR'
51
+ | 'GBP'
49
52
  | 'NOK'
53
+ | 'NZD'
54
+ | 'PLN'
50
55
  | 'SEK'
51
- | 'AUD'
52
- | 'CAD'
53
- | 'NZD';
56
+ | 'USD';
54
57
 
55
58
  /**
56
59
  * Payment methods to show messaging for.
@@ -71,24 +74,30 @@ export interface StripePaymentMethodMessagingElementOptions {
71
74
  /**
72
75
  * The country the end-buyer is in.
73
76
  */
74
- countryCode:
75
- | 'US'
76
- | 'CA'
77
- | 'AU'
78
- | 'NZ'
79
- | 'GB'
80
- | 'IE'
81
- | 'FR'
82
- | 'ES'
83
- | 'DE'
77
+ countryCode?:
84
78
  | 'AT'
79
+ | 'AU'
85
80
  | 'BE'
81
+ | 'CA'
82
+ | 'CH'
83
+ | 'CZ'
84
+ | 'DE'
86
85
  | 'DK'
86
+ | 'ES'
87
87
  | 'FI'
88
+ | 'FR'
89
+ | 'GB'
90
+ | 'GR'
91
+ | 'IE'
88
92
  | 'IT'
89
93
  | 'NL'
90
94
  | 'NO'
91
- | 'SE';
95
+ | 'NZ'
96
+ | 'PL'
97
+ | 'PT'
98
+ | 'RO'
99
+ | 'SE'
100
+ | 'US';
92
101
 
93
102
  /**
94
103
  * The logo color to display in the message. Defaults to black
@@ -682,6 +682,15 @@ interface BaseStripeElementsOptions {
682
682
  * @docs https://docs.stripe.com/js/elements_object/create#stripe_elements-options-customPaymentMethods
683
683
  */
684
684
  customPaymentMethods?: CustomPaymentMethod[];
685
+
686
+ /**
687
+ * The syncAddressCheckbox parameter configures which Address Element to show the checkbox above when using 2 Address Elements.
688
+ *
689
+ * Default is 'billing'
690
+ *
691
+ * @docs https://docs.stripe.com/js/elements_object/create#stripe_elements-options-syncAddressCheckbox
692
+ */
693
+ syncAddressCheckbox?: 'billing' | 'shipping' | 'none';
685
694
  }
686
695
 
687
696
  export interface StripeElementsOptionsClientSecret
@@ -682,6 +682,15 @@ interface BaseStripeElementsOptions {
682
682
  * @docs https://docs.stripe.com/js/elements_object/create#stripe_elements-options-customPaymentMethods
683
683
  */
684
684
  customPaymentMethods?: CustomPaymentMethod[];
685
+
686
+ /**
687
+ * The syncAddressCheckbox parameter configures which Address Element to show the checkbox above when using 2 Address Elements.
688
+ *
689
+ * Default is 'billing'
690
+ *
691
+ * @docs https://docs.stripe.com/js/elements_object/create#stripe_elements-options-syncAddressCheckbox
692
+ */
693
+ syncAddressCheckbox?: 'billing' | 'shipping' | 'none';
685
694
  }
686
695
 
687
696
  export interface StripeElementsOptionsClientSecret
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stripe/stripe-js",
3
- "version": "7.1.0",
3
+ "version": "7.3.0",
4
4
  "description": "Stripe.js loading utility",
5
5
  "repository": "github:stripe/stripe-js",
6
6
  "main": "lib/index.js",