#thai
1 messages · Page 1 of 1 (latest)
Hello! I don't believe our API has a timedelta anywhere, can you provide more details?
allow_promotion_codes=True,
client_reference_id = affiliate_id,
subscription_data = {
'trial_end':datetime.now() + timedelta(days=5)
},
this is whats in the line of code
using trial_end param,eter
You should use trial_period_days instead if you want a specific number of days: https://stripe.com/docs/api/checkout/sessions/create#create_checkout_session-subscription_data-trial_period_days