#joseph01

1 messages ยท Page 1 of 1 (latest)

distant summitBOT
jagged temple
#

Hey there

stuck fulcrum
#

Hello

jagged temple
#

Hmm

stuck fulcrum
#

Can you help me with this ?

jagged temple
#

Thinking on whether this is possible

#

There isn't anything that really indicates when a customer closes a Checkout Session

stuck fulcrum
#

Ohh ๐Ÿ™ƒ

jagged temple
#

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

stuck fulcrum
#

Wow that a great idea. So we can put expiration time on the created session links ? How can I do so ?

jagged temple
#

Minimum is 30 mins however

stuck fulcrum
#

Oh god ๐Ÿ™ƒ can't reduce that to like 10mins or so ?

jagged temple
#

Not currently, no

stuck fulcrum
#

Okay. And this value would be ? "expires_at": 1673460391,

jagged temple
#

Yep you put a unix timestamp

stuck fulcrum
#

Okay. But how to put it like 30mins from when he/she clicks the link? I can put a unix timestamp from now 30mins

jagged temple
#

Yeah you would need to dynamically calculate that

#

You would use something like Date.now() or some other way to get the current timestamp

stuck fulcrum
#

Okay thank you.

#

And how do I generate a invoice if the payment is successful ? And will the invoice be sent through mail ?

jagged temple
#

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

stuck fulcrum
#

Wow great! Thank you so much for the help!

jagged temple
#

Sure!

stuck fulcrum
#

One last question, where will it be sent ? Can we specify email address to be sent ?

jagged temple
#

It will be sent to the email address your customer provides during Checkout, or the one you pre-fill