#dpetrovaliev
1 messages ยท Page 1 of 1 (latest)
๐ Thanks for reaching out
Could you please share the Checkout Session Id ?
let me find it
"cs_test_b1aJU8834O6SmydZMZppVPBjV8BrVQJX52dYsxk6XSbkCokaGIg3B8tSZ5"
this is an example where i requested 15 days and got 14 days
(as a workaround) ๐
Thanks for sharing let me check
So the trial date for the resulting subscription sub_1Lxs2UGiUVmX0gi8xKlUnivf are:
start -> 2022-10-28 12:51:58
end -> 2022-11-12 12:50:05 which is in 15 days from now
ok but i'm seing 14 days when open the stripe checkout page
Hi ๐ sincere apologies for the delay. Please bear with me a moment while I catch up on the context here.
I tried accessing the session that you referenced to see if I saw something different, but saw that the link had expired. I suspect our Checkout page is accounting for time-zones and rounding. Have you tried using trial_period_days rather than trial_end?
https://stripe.com/docs/api/checkout/sessions/create#create_checkout_session-subscription_data-trial_period_days
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.