diff --git a/types/stripe-js/checkout.d.ts b/types/stripe-js/checkout.d.ts index c97fc64..7851521 100644 --- a/types/stripe-js/checkout.d.ts +++ b/types/stripe-js/checkout.d.ts @@ -233,10 +233,6 @@ export interface StripeCheckoutSession { total: StripeCheckoutTotalSummary; } -export type StripeCheckoutResult = - | {session: StripeCheckoutSession; error?: undefined} - | {session?: undefined; error: StripeError}; - export type StripeCheckoutPaymentElementOptions = { layout?: Layout | LayoutObject; paymentMethodOrder?: Array; @@ -448,7 +444,7 @@ export interface StripeCheckout { }) => Promise; updateShippingOption: ( shippingOption: string - ) => Promise; + ) => Promise; confirm: (args?: { returnUrl?: string; redirect?: StripeCheckoutRedirectBehavior;