#joseph01
1 messages ยท Page 1 of 1 (latest)
Hey there
Hello
Hmm
Can you help me with this ?
Thinking on whether this is possible
There isn't anything that really indicates when a customer closes a Checkout Session
Ohh ๐
So there is nothing that will tell you that you should expire the session
I think you are best off here just putting a short expiration time on the Session on creation
Wow that a great idea. So we can put expiration time on the created session links ? How can I do so ?
Oh god ๐ can't reduce that to like 10mins or so ?
Not currently, no
Okay. And this value would be ? "expires_at": 1673460391,
Yep you put a unix timestamp
Okay. But how to put it like 30mins from when he/she clicks the link? I can put a unix timestamp from now 30mins
Yeah you would need to dynamically calculate that
You would use something like Date.now() or some other way to get the current timestamp
Okay thank you.
And how do I generate a invoice if the payment is successful ? And will the invoice be sent through mail ?
No this invoice won't be sent. You would need to send it yourself
Actually that is wrong
I think we do send them
One sec let me confirm
Yep
We do send them for you, I forgot
Wow great! Thank you so much for the help!
Sure!
One last question, where will it be sent ? Can we specify email address to be sent ?
It will be sent to the email address your customer provides during Checkout, or the one you pre-fill