#piq9117
1 messages · Page 1 of 1 (latest)
Only after the Checkout Session is confirmed, you will see the Subscription Id here
thanks for the reply! what is session confirmation? is that when the user makes the purchase?
Yes!
There are always 2 steps: you create the Checkout Session and show to your customer, then your customer make a payment (we call this "confirm the Session")
gotcha. i was hoping to get the subscription pre-confirmation so I can show the user some subscription details like when the subscription is going to renew, and how many days are remaining if they subscribe now. is there any way to get this detail pre-confirmation? or is the only details I have only come from the line items?
The detail should come from the line items, as you observed!
alright. thanks @silver raven
For the day, normally the Subscription will start right away, unless you specify some trial_end
from this block: https://stripe.com/docs/api/checkout/sessions/create#create_checkout_session-subscription_data
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
(this is parameter when you create the Checkout Session)
You can see trial_end or trial_period_days