#piq9117

1 messages · Page 1 of 1 (latest)

old yarrowBOT
silver raven
#

Only after the Checkout Session is confirmed, you will see the Subscription Id here

cosmic gyro
#

thanks for the reply! what is session confirmation? is that when the user makes the purchase?

silver raven
#

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")

cosmic gyro
#

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?

silver raven
#

The detail should come from the line items, as you observed!

cosmic gyro
#

alright. thanks @silver raven

silver raven
#

For the day, normally the Subscription will start right away, unless you specify some trial_end

#

(this is parameter when you create the Checkout Session)

#

You can see trial_end or trial_period_days