try using the stripe discord. they do a decent job responding to and resolving issues.
5 karma · joined March 19, 2013
https://stripe.com/docs/api/checkout/sessions/create#create_...
session = stripe.checkout.Session.create(
automatic_tax={'enabled': False},
payment_method_types=['card'],
mode='subscription',
line_items=[{
'price': price,
'quantity': quantity
}],
)