@stripe/stripe-js 9.0.0 → 9.0.1

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
@@ -168,3 +168,8 @@ The `loadStripe.setLoadParameters` function is only available when importing
168
168
  - [Stripe.js Docs](https://stripe.com/docs/stripe-js)
169
169
  - [Stripe.js Reference](https://stripe.com/docs/js)
170
170
  - [React Stripe.js Docs](https://stripe.com/docs/stripe-js/react)
171
+
172
+ ## Contributing
173
+
174
+ If you would like to contribute to Stripe.js, please make sure to read our
175
+ [contributor guidelines](CONTRIBUTING.md).
package/dist/index.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: "9.0.0",
74
+ version: "9.0.1",
75
75
  startTime: startTime
76
76
  });
77
77
  };
@@ -172,7 +172,7 @@ var initStripe = function initStripe(maybeStripe, args, startTime) {
172
172
  var expectedVersion = RELEASE_TRAIN;
173
173
 
174
174
  if (isTestKey && version !== expectedVersion) {
175
- console.warn("Stripe.js@".concat(version, " was loaded on the page, but @stripe/stripe-js@").concat("9.0.0", " expected Stripe.js@").concat(expectedVersion, ". This may result in unexpected behavior. For more information, see https://docs.stripe.com/sdks/stripejs-versioning"));
175
+ console.warn("Stripe.js@".concat(version, " was loaded on the page, but @stripe/stripe-js@").concat("9.0.1", " expected Stripe.js@").concat(expectedVersion, ". This may result in unexpected behavior. For more information, see https://docs.stripe.com/sdks/stripejs-versioning"));
176
176
  }
177
177
 
178
178
  var stripe = maybeStripe.apply(undefined, args);
package/dist/index.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: "9.0.0",
70
+ version: "9.0.1",
71
71
  startTime: startTime
72
72
  });
73
73
  };
@@ -168,7 +168,7 @@ var initStripe = function initStripe(maybeStripe, args, startTime) {
168
168
  var expectedVersion = RELEASE_TRAIN;
169
169
 
170
170
  if (isTestKey && version !== expectedVersion) {
171
- console.warn("Stripe.js@".concat(version, " was loaded on the page, but @stripe/stripe-js@").concat("9.0.0", " expected Stripe.js@").concat(expectedVersion, ". This may result in unexpected behavior. For more information, see https://docs.stripe.com/sdks/stripejs-versioning"));
171
+ console.warn("Stripe.js@".concat(version, " was loaded on the page, but @stripe/stripe-js@").concat("9.0.1", " expected Stripe.js@").concat(expectedVersion, ". This may result in unexpected behavior. For more information, see https://docs.stripe.com/sdks/stripejs-versioning"));
172
172
  }
173
173
 
174
174
  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: "9.0.0",
74
+ version: "9.0.1",
75
75
  startTime: startTime
76
76
  });
77
77
  };
@@ -172,7 +172,7 @@ var initStripe = function initStripe(maybeStripe, args, startTime) {
172
172
  var expectedVersion = RELEASE_TRAIN;
173
173
 
174
174
  if (isTestKey && version !== expectedVersion) {
175
- console.warn("Stripe.js@".concat(version, " was loaded on the page, but @stripe/stripe-js@").concat("9.0.0", " expected Stripe.js@").concat(expectedVersion, ". This may result in unexpected behavior. For more information, see https://docs.stripe.com/sdks/stripejs-versioning"));
175
+ console.warn("Stripe.js@".concat(version, " was loaded on the page, but @stripe/stripe-js@").concat("9.0.1", " expected Stripe.js@").concat(expectedVersion, ". This may result in unexpected behavior. For more information, see https://docs.stripe.com/sdks/stripejs-versioning"));
176
176
  }
177
177
 
178
178
  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: "9.0.0",
70
+ version: "9.0.1",
71
71
  startTime: startTime
72
72
  });
73
73
  };
@@ -168,7 +168,7 @@ var initStripe = function initStripe(maybeStripe, args, startTime) {
168
168
  var expectedVersion = RELEASE_TRAIN;
169
169
 
170
170
  if (isTestKey && version !== expectedVersion) {
171
- console.warn("Stripe.js@".concat(version, " was loaded on the page, but @stripe/stripe-js@").concat("9.0.0", " expected Stripe.js@").concat(expectedVersion, ". This may result in unexpected behavior. For more information, see https://docs.stripe.com/sdks/stripejs-versioning"));
171
+ console.warn("Stripe.js@".concat(version, " was loaded on the page, but @stripe/stripe-js@").concat("9.0.1", " expected Stripe.js@").concat(expectedVersion, ". This may result in unexpected behavior. For more information, see https://docs.stripe.com/sdks/stripejs-versioning"));
172
172
  }
173
173
 
174
174
  var stripe = maybeStripe.apply(undefined, args);
@@ -205,6 +205,7 @@ export interface TermsOption {
205
205
  cashapp?: TermOption;
206
206
  googlePay?: TermOption;
207
207
  ideal?: TermOption;
208
+ klarna?: TermOption;
208
209
  paypal?: TermOption;
209
210
  sepaDebit?: TermOption;
210
211
  sofort?: TermOption;
@@ -205,6 +205,7 @@ export interface TermsOption {
205
205
  cashapp?: TermOption;
206
206
  googlePay?: TermOption;
207
207
  ideal?: TermOption;
208
+ klarna?: TermOption;
208
209
  paypal?: TermOption;
209
210
  sepaDebit?: TermOption;
210
211
  sofort?: TermOption;
@@ -338,6 +338,15 @@ export interface StripeTaxIdElementOptions {
338
338
  };
339
339
  };
340
340
 
341
+ /**
342
+ * Control verification behavior for the TaxIdElement.
343
+ */
344
+ verification?: {
345
+ taxId?: {
346
+ mode?: 'if_supported' | 'never';
347
+ };
348
+ };
349
+
341
350
  /**
342
351
  * Default value for TaxIdElement fields
343
352
  */
@@ -378,4 +387,13 @@ export interface StripeTaxIdElementChangeEvent {
378
387
  taxIdType: TaxIdType;
379
388
  externalTaxIdType: ExternalTaxIdType;
380
389
  };
390
+
391
+ /**
392
+ * Verification status for the TaxIdElement, if verification is enabled.
393
+ */
394
+ verification?: {
395
+ taxId?: {
396
+ status: 'pending' | 'verified' | 'unverified' | 'unavailable';
397
+ };
398
+ };
381
399
  }
@@ -338,6 +338,15 @@ export interface StripeTaxIdElementOptions {
338
338
  };
339
339
  };
340
340
 
341
+ /**
342
+ * Control verification behavior for the TaxIdElement.
343
+ */
344
+ verification?: {
345
+ taxId?: {
346
+ mode?: 'if_supported' | 'never';
347
+ };
348
+ };
349
+
341
350
  /**
342
351
  * Default value for TaxIdElement fields
343
352
  */
@@ -378,4 +387,13 @@ export interface StripeTaxIdElementChangeEvent {
378
387
  taxIdType: TaxIdType;
379
388
  externalTaxIdType: ExternalTaxIdType;
380
389
  };
390
+
391
+ /**
392
+ * Verification status for the TaxIdElement, if verification is enabled.
393
+ */
394
+ verification?: {
395
+ taxId?: {
396
+ status: 'pending' | 'verified' | 'unverified' | 'unavailable';
397
+ };
398
+ };
381
399
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stripe/stripe-js",
3
- "version": "9.0.0",
3
+ "version": "9.0.1",
4
4
  "description": "Stripe.js loading utility",
5
5
  "repository": "github:stripe/stripe-js",
6
6
  "main": "lib/index.js",