-
Notifications
You must be signed in to change notification settings - Fork 192
Open
Labels
bugSomething isn't workingSomething isn't working
Description
What happened?
Today, @stripe/stripe-js has this typing for initCheckout() method:
export interface StripeCheckoutOptions {
clientSecret: Promise<string> | string;
elementsOptions?: StripeCheckoutElementsOptions;
defaultValues?: {
billingAddress?: StripeCheckoutContact;
shippingAddress?: StripeCheckoutContact;
};
}So adaptivePricing is not referenced, but it's mandatory to have Adaptive pricing working. I can make it work today with forced casting, but it would be great to have an updated typing!
My implementation:
this.stripeCheckout = this.stripeClient.initCheckout({
adaptivePricing: {
allowed: addressStore.isAdaptivePricing,
},
clientSecret,
} as unknown as StripeCheckoutOptions);Thanks in advance.
Environment
Stripe-js v8.6.1
Reproduction
No response
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working