DEV Community

Discussion on: Using Avalara’s AvaTax with Stripe Subscriptions

Collapse
 
ritaly profile image
Rita {FlyNerd} Lyczywek • Edited

Thank you!
Support enabled the feature (they claim), how to confirm that, or how did you handle missing pay_immediately in the type in Stripe create method?

Argument of type '{ default_payment_method: string; customer: string; items: { price: string; }[]; expand: string[]; pay_immediately: boolean; }' is not assignable to parameter of type 'SubscriptionCreateParams'.
  Object literal may only specify known properties, and 'pay_immediately' does not exist in type 'SubscriptionCreateParams'.
Enter fullscreen mode Exit fullscreen mode
Collapse
 
ritaly profile image
Rita {FlyNerd} Lyczywek

the only way is to add //@ts-ignore