#Piercy-checkout-type-interface

1 messages · Page 1 of 1 (latest)

viscid pilot
#

Hey! I guess it would need the full namespace: Stripe.LineItem.PriceData.TaxBehaviour

errant belfry
#

I'm getting complaints from my IDE about PriceData not existing under LineItem

viscid pilot
#

Maybe it's Stripe.Checkout.LineItem.PriceData.TaxBehaviour

errant belfry
#

yeah, Checkout Then doesn't have LineItem.

Package: stripe v8.154.0

#
import { Stripe } from 'stripe'

export interface CSLineItem {
  tax_behavior?: Stripe.Checkout.LineItem.PriceData.TaxBehaviour
}
viscid pilot
#

My guess is it's Stripe.Checkout.SessionCreateParams.LineItem.PriceData.TaxBehaviour

#

Sorry, just trying to interpret the same type definitions as you!

errant belfry
#

Yeah that seems to work! perfect, yeah I was trying to trace it through as well, just couldn't work it out.

#

Thanks that works!

viscid pilot
#

Nice, np!