@stripe/stripe-js 9.5.0 → 9.6.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
@@ -71,7 +71,7 @@ var registerWrapper = function registerWrapper(stripe, startTime) {
71
71
 
72
72
  stripe._registerWrapper({
73
73
  name: 'stripe-js',
74
- version: "9.5.0",
74
+ version: "9.6.0",
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.5.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.6.0", " 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.5.0",
70
+ version: "9.6.0",
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.5.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.6.0", " 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.5.0",
74
+ version: "9.6.0",
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.5.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.6.0", " 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.5.0",
70
+ version: "9.6.0",
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.5.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.6.0", " 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);
@@ -203,6 +203,11 @@ export type StripeCheckoutStatus =
203
203
  paymentStatus: 'paid' | 'unpaid' | 'no_payment_required';
204
204
  };
205
205
 
206
+ export type StripeCheckoutSurchargeStatus =
207
+ | {status: 'requires_input'}
208
+ | {status: 'complete'}
209
+ | {status: 'failed'};
210
+
206
211
  export type StripeCheckoutTaxStatus =
207
212
  | {status: 'ready'}
208
213
  | {status: 'requires_shipping_address'}
@@ -214,6 +219,7 @@ export type StripeCheckoutTotalSummary = {
214
219
  discount: StripeCheckoutAmount;
215
220
  shippingRate: StripeCheckoutAmount;
216
221
  subtotal: StripeCheckoutAmount;
222
+ surcharge: StripeCheckoutAmount;
217
223
  taxExclusive: StripeCheckoutAmount;
218
224
  taxInclusive: StripeCheckoutAmount;
219
225
  total: StripeCheckoutAmount;
@@ -363,6 +369,7 @@ export interface StripeCheckoutSession {
363
369
  shippingAddress: StripeCheckoutContact | null;
364
370
  shippingOptions: Array<StripeCheckoutShippingOption>;
365
371
  status: StripeCheckoutStatus;
372
+ surcharge: StripeCheckoutSurchargeStatus | null;
366
373
  tax: StripeCheckoutTaxStatus;
367
374
  taxAmounts: Array<StripeCheckoutTaxAmount> | null;
368
375
  taxIdInfo: StripeCheckoutTaxIdInfo | null;
@@ -203,6 +203,11 @@ export type StripeCheckoutStatus =
203
203
  paymentStatus: 'paid' | 'unpaid' | 'no_payment_required';
204
204
  };
205
205
 
206
+ export type StripeCheckoutSurchargeStatus =
207
+ | {status: 'requires_input'}
208
+ | {status: 'complete'}
209
+ | {status: 'failed'};
210
+
206
211
  export type StripeCheckoutTaxStatus =
207
212
  | {status: 'ready'}
208
213
  | {status: 'requires_shipping_address'}
@@ -214,6 +219,7 @@ export type StripeCheckoutTotalSummary = {
214
219
  discount: StripeCheckoutAmount;
215
220
  shippingRate: StripeCheckoutAmount;
216
221
  subtotal: StripeCheckoutAmount;
222
+ surcharge: StripeCheckoutAmount;
217
223
  taxExclusive: StripeCheckoutAmount;
218
224
  taxInclusive: StripeCheckoutAmount;
219
225
  total: StripeCheckoutAmount;
@@ -363,6 +369,7 @@ export interface StripeCheckoutSession {
363
369
  shippingAddress: StripeCheckoutContact | null;
364
370
  shippingOptions: Array<StripeCheckoutShippingOption>;
365
371
  status: StripeCheckoutStatus;
372
+ surcharge: StripeCheckoutSurchargeStatus | null;
366
373
  tax: StripeCheckoutTaxStatus;
367
374
  taxAmounts: Array<StripeCheckoutTaxAmount> | null;
368
375
  taxIdInfo: StripeCheckoutTaxIdInfo | null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stripe/stripe-js",
3
- "version": "9.5.0",
3
+ "version": "9.6.0",
4
4
  "description": "Stripe.js loading utility",
5
5
  "repository": "github:stripe/stripe-js",
6
6
  "main": "lib/index.js",