Skip to content

Commit

Permalink
Fix updateShippingOption response type (#689)
Browse files Browse the repository at this point in the history
  • Loading branch information
pololi-stripe authored Nov 19, 2024
1 parent 7324ae0 commit e777380
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions types/stripe-js/checkout.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<string>;
Expand Down Expand Up @@ -448,7 +444,7 @@ export interface StripeCheckout {
}) => Promise<StripeCheckoutUpdateLineItemQuantityResult>;
updateShippingOption: (
shippingOption: string
) => Promise<StripeCheckoutResult>;
) => Promise<StripeCheckoutUpdateShippingOptionResult>;
confirm: (args?: {
returnUrl?: string;
redirect?: StripeCheckoutRedirectBehavior;
Expand Down

0 comments on commit e777380

Please sign in to comment.