@stripe/stripe-js 7.2.0 → 7.3.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/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/elements/express-checkout.d.mts +4 -1
- package/dist/stripe-js/elements/express-checkout.d.ts +4 -1
- package/dist/stripe-js/elements/payment.d.mts +1 -0
- package/dist/stripe-js/elements/payment.d.ts +1 -0
- package/dist/stripe-js/elements-group.d.mts +9 -0
- package/dist/stripe-js/elements-group.d.ts +9 -0
- package/package.json +1 -1
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.
|
|
58
|
+
version: "7.3.1",
|
|
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.
|
|
154
|
+
console.warn("Stripe.js@".concat(version, " was loaded on the page, but @stripe/stripe-js@").concat("7.3.1", " 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.
|
|
54
|
+
version: "7.3.1",
|
|
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.
|
|
150
|
+
console.warn("Stripe.js@".concat(version, " was loaded on the page, but @stripe/stripe-js@").concat("7.3.1", " 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.
|
|
74
|
+
version: "7.3.1",
|
|
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.
|
|
170
|
+
console.warn("Stripe.js@".concat(version, " was loaded on the page, but @stripe/stripe-js@").concat("7.3.1", " 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.
|
|
70
|
+
version: "7.3.1",
|
|
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.
|
|
166
|
+
console.warn("Stripe.js@".concat(version, " was loaded on the page, but @stripe/stripe-js@").concat("7.3.1", " 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 {
|
|
@@ -216,6 +216,7 @@ export type PaymentWalletOption = 'auto' | 'never';
|
|
|
216
216
|
export interface PaymentWalletsOption {
|
|
217
217
|
applePay?: PaymentWalletOption;
|
|
218
218
|
googlePay?: PaymentWalletOption;
|
|
219
|
+
link?: PaymentWalletOption;
|
|
219
220
|
}
|
|
220
221
|
|
|
221
222
|
export type Layout = 'tabs' | 'accordion' | 'auto';
|
|
@@ -216,6 +216,7 @@ export type PaymentWalletOption = 'auto' | 'never';
|
|
|
216
216
|
export interface PaymentWalletsOption {
|
|
217
217
|
applePay?: PaymentWalletOption;
|
|
218
218
|
googlePay?: PaymentWalletOption;
|
|
219
|
+
link?: PaymentWalletOption;
|
|
219
220
|
}
|
|
220
221
|
|
|
221
222
|
export type Layout = 'tabs' | 'accordion' | 'auto';
|
|
@@ -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
|