@stripe/stripe-js 3.5.0 → 4.0.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
CHANGED
package/dist/index.mjs
CHANGED
package/dist/pure.js
CHANGED
package/dist/pure.mjs
CHANGED
|
@@ -245,20 +245,34 @@ export type LayoutOption = {
|
|
|
245
245
|
overflow?: 'auto' | 'never';
|
|
246
246
|
};
|
|
247
247
|
|
|
248
|
-
export type
|
|
248
|
+
export type ExpressCheckoutPaymentMethodOptionWithAlways =
|
|
249
|
+
| 'always'
|
|
250
|
+
| ExpressCheckoutPaymentMethodOption;
|
|
251
|
+
export type ExpressCheckoutPaymentMethodOption = 'auto' | 'never';
|
|
252
|
+
|
|
253
|
+
export type ExpressCheckoutPaymentMethodsOption = {
|
|
254
|
+
amazonPay?: ExpressCheckoutPaymentMethodOption;
|
|
255
|
+
applePay?: ExpressCheckoutPaymentMethodOptionWithAlways;
|
|
256
|
+
googlePay?: ExpressCheckoutPaymentMethodOptionWithAlways;
|
|
257
|
+
link?: ExpressCheckoutPaymentMethodOption;
|
|
258
|
+
paypal?: ExpressCheckoutPaymentMethodOption;
|
|
259
|
+
};
|
|
249
260
|
|
|
250
261
|
export type ExpressCheckoutWalletsOption = {
|
|
251
|
-
applePay?:
|
|
252
|
-
googlePay?:
|
|
262
|
+
applePay?: ExpressCheckoutPaymentMethodOptionWithAlways;
|
|
263
|
+
googlePay?: ExpressCheckoutPaymentMethodOptionWithAlways;
|
|
253
264
|
};
|
|
254
265
|
|
|
255
266
|
export type ApplePayButtonTheme = 'black' | 'white' | 'white-outline';
|
|
256
267
|
|
|
257
268
|
export type GooglePayButtonTheme = 'black' | 'white';
|
|
258
269
|
|
|
270
|
+
export type PayPalButtonTheme = 'gold' | 'blue' | 'silver' | 'white' | 'black';
|
|
271
|
+
|
|
259
272
|
export type ButtonThemeOption = {
|
|
260
273
|
applePay?: ApplePayButtonTheme;
|
|
261
274
|
googlePay?: GooglePayButtonTheme;
|
|
275
|
+
paypal?: PayPalButtonTheme;
|
|
262
276
|
};
|
|
263
277
|
|
|
264
278
|
export type ApplePayButtonType =
|
|
@@ -320,6 +334,14 @@ export interface StripeExpressCheckoutElementOptions {
|
|
|
320
334
|
paymentMethodOrder?: string[];
|
|
321
335
|
|
|
322
336
|
/**
|
|
337
|
+
* Control payment method display in the Express Checkout Element.
|
|
338
|
+
*/
|
|
339
|
+
paymentMethods?: ExpressCheckoutPaymentMethodsOption;
|
|
340
|
+
|
|
341
|
+
/**
|
|
342
|
+
* @deprecated
|
|
343
|
+
* Use `paymentMethods` instead.
|
|
344
|
+
*
|
|
323
345
|
* Control wallets display in the Express Checkout Element.
|
|
324
346
|
*/
|
|
325
347
|
wallets?: ExpressCheckoutWalletsOption;
|
|
@@ -245,20 +245,34 @@ export type LayoutOption = {
|
|
|
245
245
|
overflow?: 'auto' | 'never';
|
|
246
246
|
};
|
|
247
247
|
|
|
248
|
-
export type
|
|
248
|
+
export type ExpressCheckoutPaymentMethodOptionWithAlways =
|
|
249
|
+
| 'always'
|
|
250
|
+
| ExpressCheckoutPaymentMethodOption;
|
|
251
|
+
export type ExpressCheckoutPaymentMethodOption = 'auto' | 'never';
|
|
252
|
+
|
|
253
|
+
export type ExpressCheckoutPaymentMethodsOption = {
|
|
254
|
+
amazonPay?: ExpressCheckoutPaymentMethodOption;
|
|
255
|
+
applePay?: ExpressCheckoutPaymentMethodOptionWithAlways;
|
|
256
|
+
googlePay?: ExpressCheckoutPaymentMethodOptionWithAlways;
|
|
257
|
+
link?: ExpressCheckoutPaymentMethodOption;
|
|
258
|
+
paypal?: ExpressCheckoutPaymentMethodOption;
|
|
259
|
+
};
|
|
249
260
|
|
|
250
261
|
export type ExpressCheckoutWalletsOption = {
|
|
251
|
-
applePay?:
|
|
252
|
-
googlePay?:
|
|
262
|
+
applePay?: ExpressCheckoutPaymentMethodOptionWithAlways;
|
|
263
|
+
googlePay?: ExpressCheckoutPaymentMethodOptionWithAlways;
|
|
253
264
|
};
|
|
254
265
|
|
|
255
266
|
export type ApplePayButtonTheme = 'black' | 'white' | 'white-outline';
|
|
256
267
|
|
|
257
268
|
export type GooglePayButtonTheme = 'black' | 'white';
|
|
258
269
|
|
|
270
|
+
export type PayPalButtonTheme = 'gold' | 'blue' | 'silver' | 'white' | 'black';
|
|
271
|
+
|
|
259
272
|
export type ButtonThemeOption = {
|
|
260
273
|
applePay?: ApplePayButtonTheme;
|
|
261
274
|
googlePay?: GooglePayButtonTheme;
|
|
275
|
+
paypal?: PayPalButtonTheme;
|
|
262
276
|
};
|
|
263
277
|
|
|
264
278
|
export type ApplePayButtonType =
|
|
@@ -320,6 +334,14 @@ export interface StripeExpressCheckoutElementOptions {
|
|
|
320
334
|
paymentMethodOrder?: string[];
|
|
321
335
|
|
|
322
336
|
/**
|
|
337
|
+
* Control payment method display in the Express Checkout Element.
|
|
338
|
+
*/
|
|
339
|
+
paymentMethods?: ExpressCheckoutPaymentMethodsOption;
|
|
340
|
+
|
|
341
|
+
/**
|
|
342
|
+
* @deprecated
|
|
343
|
+
* Use `paymentMethods` instead.
|
|
344
|
+
*
|
|
323
345
|
* Control wallets display in the Express Checkout Element.
|
|
324
346
|
*/
|
|
325
347
|
wallets?: ExpressCheckoutWalletsOption;
|