#oss
1 messages · Page 1 of 1 (latest)
Hi there!
So you want to create a subscription with a Checkout Session, with a free trial, and without asking for payment information?
You need to add this parameter: payment_method_collection: 'if_required'
https://stripe.com/docs/api/checkout/sessions/create#create_checkout_session-payment_method_collection
Where do i add this?
When you create the Checkout Session.
but like where in my code?
I know i need to add this line but i'm using python and I'm not sure how and where to add it to my existing code.
just after the stripe.checkout.Session.create( line, add a new line with payment_method_collection= 'if_required',
Thank you so much!!!!!!!!!!!!!!!!!!!
Now how can i get the users to pay after the 30day?
I think you can use some of the dashboard settings for this https://dashboard.stripe.com/settings/billing/automatic