@stripe/stripe-js 4.3.0 → 4.4.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.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;
|
|
@@ -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';
|