@stripe/stripe-js 4.3.0 → 4.5.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 +1 -1
- package/dist/index.mjs +1 -1
- package/dist/pure.js +1 -1
- package/dist/pure.mjs +1 -1
- package/dist/stripe-js/elements/express-checkout.d.mts +6 -1
- package/dist/stripe-js/elements/express-checkout.d.ts +6 -1
- package/dist/stripe-js/elements/payment-method-messaging.d.mts +7 -4
- package/dist/stripe-js/elements/payment-method-messaging.d.ts +7 -4
- package/dist/stripe-js/elements/payment.d.mts +4 -0
- package/dist/stripe-js/elements/payment.d.ts +4 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
package/dist/index.mjs
CHANGED
package/dist/pure.js
CHANGED
package/dist/pure.mjs
CHANGED
|
@@ -189,7 +189,12 @@ export type StripeExpressCheckoutElement = StripeElementBase & {
|
|
|
189
189
|
): StripeExpressCheckoutElement;
|
|
190
190
|
};
|
|
191
191
|
|
|
192
|
-
export type ExpressPaymentType =
|
|
192
|
+
export type ExpressPaymentType =
|
|
193
|
+
| 'google_pay'
|
|
194
|
+
| 'apple_pay'
|
|
195
|
+
| 'amazon_pay'
|
|
196
|
+
| 'link'
|
|
197
|
+
| 'paypal';
|
|
193
198
|
|
|
194
199
|
export type ExpressCheckoutPartialAddress = {
|
|
195
200
|
city: string;
|
|
@@ -189,7 +189,12 @@ export type StripeExpressCheckoutElement = StripeElementBase & {
|
|
|
189
189
|
): StripeExpressCheckoutElement;
|
|
190
190
|
};
|
|
191
191
|
|
|
192
|
-
export type ExpressPaymentType =
|
|
192
|
+
export type ExpressPaymentType =
|
|
193
|
+
| 'google_pay'
|
|
194
|
+
| 'apple_pay'
|
|
195
|
+
| 'amazon_pay'
|
|
196
|
+
| 'link'
|
|
197
|
+
| 'paypal';
|
|
193
198
|
|
|
194
199
|
export type ExpressCheckoutPartialAddress = {
|
|
195
200
|
city: string;
|
|
@@ -55,7 +55,13 @@ export interface StripePaymentMethodMessagingElementOptions {
|
|
|
55
55
|
/**
|
|
56
56
|
* Payment methods to show messaging for.
|
|
57
57
|
*/
|
|
58
|
-
paymentMethodTypes
|
|
58
|
+
paymentMethodTypes?: Array<'afterpay_clearpay' | 'klarna' | 'affirm'>;
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
* Override the order in which payment methods are displayed in the Payment Method Messaging Element.
|
|
62
|
+
* By default, the Payment Method Messaging Element will use a dynamic ordering that optimizes payment method display for each user.
|
|
63
|
+
*/
|
|
64
|
+
paymentMethodOrder?: Array<'afterpay_clearpay' | 'klarna' | 'affirm'>;
|
|
59
65
|
|
|
60
66
|
/**
|
|
61
67
|
* @deprecated Use `paymentMethodTypes` instead.
|
|
@@ -89,9 +95,6 @@ export interface StripePaymentMethodMessagingElementOptions {
|
|
|
89
95
|
*/
|
|
90
96
|
logoColor?: 'black' | 'white' | 'color';
|
|
91
97
|
|
|
92
|
-
/**
|
|
93
|
-
* The font size of the promotional message.
|
|
94
|
-
*/
|
|
95
98
|
metaData?: {
|
|
96
99
|
messagingClientReferenceId: string | null;
|
|
97
100
|
};
|
|
@@ -55,7 +55,13 @@ export interface StripePaymentMethodMessagingElementOptions {
|
|
|
55
55
|
/**
|
|
56
56
|
* Payment methods to show messaging for.
|
|
57
57
|
*/
|
|
58
|
-
paymentMethodTypes
|
|
58
|
+
paymentMethodTypes?: Array<'afterpay_clearpay' | 'klarna' | 'affirm'>;
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
* Override the order in which payment methods are displayed in the Payment Method Messaging Element.
|
|
62
|
+
* By default, the Payment Method Messaging Element will use a dynamic ordering that optimizes payment method display for each user.
|
|
63
|
+
*/
|
|
64
|
+
paymentMethodOrder?: Array<'afterpay_clearpay' | 'klarna' | 'affirm'>;
|
|
59
65
|
|
|
60
66
|
/**
|
|
61
67
|
* @deprecated Use `paymentMethodTypes` instead.
|
|
@@ -89,9 +95,6 @@ export interface StripePaymentMethodMessagingElementOptions {
|
|
|
89
95
|
*/
|
|
90
96
|
logoColor?: 'black' | 'white' | 'color';
|
|
91
97
|
|
|
92
|
-
/**
|
|
93
|
-
* The font size of the promotional message.
|
|
94
|
-
*/
|
|
95
98
|
metaData?: {
|
|
96
99
|
messagingClientReferenceId: string | null;
|
|
97
100
|
};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import {StripeElementBase} from './base';
|
|
2
2
|
import {StripeError} from '../stripe';
|
|
3
3
|
import {ApplePayOption} from './apple-pay';
|
|
4
|
+
import {CardNetworkBrand} from '../elements-group';
|
|
4
5
|
|
|
5
6
|
export type StripePaymentElement = StripeElementBase & {
|
|
6
7
|
/**
|
|
@@ -141,6 +142,9 @@ export interface DefaultValuesOption {
|
|
|
141
142
|
line2?: string;
|
|
142
143
|
};
|
|
143
144
|
};
|
|
145
|
+
card?: {
|
|
146
|
+
network?: CardNetworkBrand[];
|
|
147
|
+
};
|
|
144
148
|
}
|
|
145
149
|
|
|
146
150
|
export type FieldOption = 'auto' | 'never';
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import {StripeElementBase} from './base';
|
|
2
2
|
import {StripeError} from '../stripe';
|
|
3
3
|
import {ApplePayOption} from './apple-pay';
|
|
4
|
+
import {CardNetworkBrand} from '../elements-group';
|
|
4
5
|
|
|
5
6
|
export type StripePaymentElement = StripeElementBase & {
|
|
6
7
|
/**
|
|
@@ -141,6 +142,9 @@ export interface DefaultValuesOption {
|
|
|
141
142
|
line2?: string;
|
|
142
143
|
};
|
|
143
144
|
};
|
|
145
|
+
card?: {
|
|
146
|
+
network?: CardNetworkBrand[];
|
|
147
|
+
};
|
|
144
148
|
}
|
|
145
149
|
|
|
146
150
|
export type FieldOption = 'auto' | 'never';
|