@stripe/stripe-js 9.12.0 → 9.13.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 +2 -2
- package/dist/index.mjs +2 -2
- package/dist/pure.js +2 -2
- package/dist/pure.mjs +2 -2
- package/dist/stripe-js/checkout.d.mts +15 -0
- package/dist/stripe-js/checkout.d.ts +15 -0
- package/dist/stripe-js/elements/payment.d.mts +21 -1
- package/dist/stripe-js/elements/payment.d.ts +21 -1
- package/package.json +1 -1
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.
|
|
74
|
+
version: "9.13.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.
|
|
175
|
+
console.warn("Stripe.js@".concat(version, " was loaded on the page, but @stripe/stripe-js@").concat("9.13.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.
|
|
70
|
+
version: "9.13.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.
|
|
171
|
+
console.warn("Stripe.js@".concat(version, " was loaded on the page, but @stripe/stripe-js@").concat("9.13.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.
|
|
74
|
+
version: "9.13.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.
|
|
175
|
+
console.warn("Stripe.js@".concat(version, " was loaded on the page, but @stripe/stripe-js@").concat("9.13.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.
|
|
70
|
+
version: "9.13.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.
|
|
171
|
+
console.warn("Stripe.js@".concat(version, " was loaded on the page, but @stripe/stripe-js@").concat("9.13.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);
|
|
@@ -468,6 +468,21 @@ export type StripeCheckoutFormOptions = {
|
|
|
468
468
|
*/
|
|
469
469
|
paymentMethods?: ExpressCheckoutPaymentMethodsOption;
|
|
470
470
|
};
|
|
471
|
+
|
|
472
|
+
/**
|
|
473
|
+
* Client-side feature configuration for the CheckoutForm.
|
|
474
|
+
*/
|
|
475
|
+
features?: {
|
|
476
|
+
/**
|
|
477
|
+
* Control whether the promotion code collection UI is displayed in the CheckoutForm.
|
|
478
|
+
*
|
|
479
|
+
* Only applies when `allow_promotion_codes`is enabled on the Checkout Session.
|
|
480
|
+
*
|
|
481
|
+
* @default 'auto'
|
|
482
|
+
* @docs https://stripe.com/docs/checkout/promotion-codes
|
|
483
|
+
*/
|
|
484
|
+
promotionCodeCollection?: 'auto' | 'never';
|
|
485
|
+
};
|
|
471
486
|
};
|
|
472
487
|
|
|
473
488
|
export type StripeCheckoutExpressCheckoutElementOptions = {
|
|
@@ -468,6 +468,21 @@ export type StripeCheckoutFormOptions = {
|
|
|
468
468
|
*/
|
|
469
469
|
paymentMethods?: ExpressCheckoutPaymentMethodsOption;
|
|
470
470
|
};
|
|
471
|
+
|
|
472
|
+
/**
|
|
473
|
+
* Client-side feature configuration for the CheckoutForm.
|
|
474
|
+
*/
|
|
475
|
+
features?: {
|
|
476
|
+
/**
|
|
477
|
+
* Control whether the promotion code collection UI is displayed in the CheckoutForm.
|
|
478
|
+
*
|
|
479
|
+
* Only applies when `allow_promotion_codes`is enabled on the Checkout Session.
|
|
480
|
+
*
|
|
481
|
+
* @default 'auto'
|
|
482
|
+
* @docs https://stripe.com/docs/checkout/promotion-codes
|
|
483
|
+
*/
|
|
484
|
+
promotionCodeCollection?: 'auto' | 'never';
|
|
485
|
+
};
|
|
471
486
|
};
|
|
472
487
|
|
|
473
488
|
export type StripeCheckoutExpressCheckoutElementOptions = {
|
|
@@ -167,7 +167,9 @@ export type StripePaymentElement = StripeElementBase & {
|
|
|
167
167
|
* Updates the options the `PaymentElement` was initialized with.
|
|
168
168
|
* Updates are merged into the existing configuration.
|
|
169
169
|
*/
|
|
170
|
-
update(
|
|
170
|
+
update(
|
|
171
|
+
options: Partial<StripePaymentElementUpdateOptions>
|
|
172
|
+
): StripePaymentElement;
|
|
171
173
|
|
|
172
174
|
/**
|
|
173
175
|
* Collapses the Payment Element into a row of payment method tabs.
|
|
@@ -401,6 +403,24 @@ export interface StripePaymentElementOptions {
|
|
|
401
403
|
applePay?: ApplePayOption;
|
|
402
404
|
}
|
|
403
405
|
|
|
406
|
+
/**
|
|
407
|
+
* The subset of `StripePaymentElementOptions` that can be updated after the
|
|
408
|
+
* `PaymentElement` has been created.
|
|
409
|
+
*
|
|
410
|
+
* @see https://docs.stripe.com/js/elements_object/update_payment_element
|
|
411
|
+
*/
|
|
412
|
+
export type StripePaymentElementUpdateOptions = Pick<
|
|
413
|
+
StripePaymentElementOptions,
|
|
414
|
+
| 'defaultValues'
|
|
415
|
+
| 'business'
|
|
416
|
+
| 'paymentMethodOrder'
|
|
417
|
+
| 'fields'
|
|
418
|
+
| 'readOnly'
|
|
419
|
+
| 'terms'
|
|
420
|
+
| 'layout'
|
|
421
|
+
| 'applePay'
|
|
422
|
+
>;
|
|
423
|
+
|
|
404
424
|
export interface StripePaymentElementChangeEvent {
|
|
405
425
|
/**
|
|
406
426
|
* The type of element that emitted this event.
|
|
@@ -167,7 +167,9 @@ export type StripePaymentElement = StripeElementBase & {
|
|
|
167
167
|
* Updates the options the `PaymentElement` was initialized with.
|
|
168
168
|
* Updates are merged into the existing configuration.
|
|
169
169
|
*/
|
|
170
|
-
update(
|
|
170
|
+
update(
|
|
171
|
+
options: Partial<StripePaymentElementUpdateOptions>
|
|
172
|
+
): StripePaymentElement;
|
|
171
173
|
|
|
172
174
|
/**
|
|
173
175
|
* Collapses the Payment Element into a row of payment method tabs.
|
|
@@ -401,6 +403,24 @@ export interface StripePaymentElementOptions {
|
|
|
401
403
|
applePay?: ApplePayOption;
|
|
402
404
|
}
|
|
403
405
|
|
|
406
|
+
/**
|
|
407
|
+
* The subset of `StripePaymentElementOptions` that can be updated after the
|
|
408
|
+
* `PaymentElement` has been created.
|
|
409
|
+
*
|
|
410
|
+
* @see https://docs.stripe.com/js/elements_object/update_payment_element
|
|
411
|
+
*/
|
|
412
|
+
export type StripePaymentElementUpdateOptions = Pick<
|
|
413
|
+
StripePaymentElementOptions,
|
|
414
|
+
| 'defaultValues'
|
|
415
|
+
| 'business'
|
|
416
|
+
| 'paymentMethodOrder'
|
|
417
|
+
| 'fields'
|
|
418
|
+
| 'readOnly'
|
|
419
|
+
| 'terms'
|
|
420
|
+
| 'layout'
|
|
421
|
+
| 'applePay'
|
|
422
|
+
>;
|
|
423
|
+
|
|
404
424
|
export interface StripePaymentElementChangeEvent {
|
|
405
425
|
/**
|
|
406
426
|
* The type of element that emitted this event.
|