Skip to content

Commit

Permalink
add deprecated wallets
Browse files Browse the repository at this point in the history
  • Loading branch information
jackieosborn-stripe committed Jun 7, 2024
1 parent 1568ba5 commit 08f0d10
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions types/stripe-js/elements/express-checkout.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -258,6 +258,11 @@ export type ExpressCheckoutPaymentMethodsOption = {
paypal?: ExpressCheckoutPaymentMethodOption;
};

export type ExpressCheckoutWalletsOption = {
applePay?: ExpressCheckoutPaymentMethodOptionWithAlways;
googlePay?: ExpressCheckoutPaymentMethodOptionWithAlways;
};

export type ApplePayButtonTheme = 'black' | 'white' | 'white-outline';

export type GooglePayButtonTheme = 'black' | 'white';
Expand Down Expand Up @@ -332,6 +337,14 @@ export interface StripeExpressCheckoutElementOptions {
* Control payment method display in the Express Checkout Element.
*/
paymentMethods?: ExpressCheckoutPaymentMethodsOption;

/**
* @deprecated
* Use `paymentMethods` instead.
*
* Control wallets display in the Express Checkout Element.
*/
wallets?: ExpressCheckoutWalletsOption;
}

/*
Expand Down

0 comments on commit 08f0d10

Please sign in to comment.