@stripe/stripe-js 1.52.1 → 1.54.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/pure.esm.js
CHANGED
package/dist/pure.js
CHANGED
package/dist/stripe.esm.js
CHANGED
package/dist/stripe.js
CHANGED
package/package.json
CHANGED
|
@@ -188,7 +188,7 @@ export type StripeExpressCheckoutElement = StripeElementBase & {
|
|
|
188
188
|
): StripeExpressCheckoutElement;
|
|
189
189
|
};
|
|
190
190
|
|
|
191
|
-
export type
|
|
191
|
+
export type ExpressPaymentType = 'google_pay' | 'apple_pay' | 'link' | 'paypal';
|
|
192
192
|
|
|
193
193
|
export type ExpressCheckoutPartialAddress = {
|
|
194
194
|
city: string;
|
|
@@ -236,14 +236,11 @@ export type ShippingRate = {
|
|
|
236
236
|
};
|
|
237
237
|
};
|
|
238
238
|
|
|
239
|
-
export type
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
|
243
|
-
|
|
244
|
-
type: LayoutType;
|
|
245
|
-
visibleButtonCount?: number;
|
|
246
|
-
};
|
|
239
|
+
export type LayoutOption = {
|
|
240
|
+
maxColumns?: number;
|
|
241
|
+
maxRows?: number;
|
|
242
|
+
overflow?: 'auto' | 'never';
|
|
243
|
+
};
|
|
247
244
|
|
|
248
245
|
export type ExpressCheckoutWalletOption = 'always' | 'auto' | 'never';
|
|
249
246
|
|
|
@@ -423,7 +420,7 @@ export interface StripeExpressCheckoutElementClickEvent {
|
|
|
423
420
|
/**
|
|
424
421
|
* The payment method associated with the button that was clicked.
|
|
425
422
|
*/
|
|
426
|
-
|
|
423
|
+
expressPaymentType: ExpressPaymentType;
|
|
427
424
|
|
|
428
425
|
/**
|
|
429
426
|
* Callback to configure the details shown on a payment interface, including which fields to collect.
|
|
@@ -446,7 +443,7 @@ export interface StripeExpressCheckoutElementConfirmEvent {
|
|
|
446
443
|
|
|
447
444
|
shippingRate?: ShippingRate;
|
|
448
445
|
|
|
449
|
-
|
|
446
|
+
expressPaymentType: ExpressPaymentType;
|
|
450
447
|
}
|
|
451
448
|
|
|
452
449
|
export type ChangeResolveDetails = {
|
|
@@ -55,7 +55,12 @@ export interface StripePaymentMethodMessagingElementOptions {
|
|
|
55
55
|
/**
|
|
56
56
|
* Payment methods to show messaging for.
|
|
57
57
|
*/
|
|
58
|
-
|
|
58
|
+
paymentMethodTypes: Array<'afterpay_clearpay' | 'klarna' | 'affirm'>;
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
* @deprecated Use `paymentMethodTypes` instead.
|
|
62
|
+
*/
|
|
63
|
+
paymentMethods?: Array<'afterpay_clearpay' | 'klarna' | 'affirm'>;
|
|
59
64
|
|
|
60
65
|
/**
|
|
61
66
|
* The country the end-buyer is in.
|