#.saberkhan

1 messages ยท Page 1 of 1 (latest)

misty swanBOT
heady pumice
#

Hello ๐Ÿ‘‹

#

Not sure I follow

#

Can you elaborate on what you're trying to do? What API are you trying to use etc?

limber whale
#

The timestamp at which the Checkout Session will expire. What will be the input format?

heady pumice
#

It would be Unix Epoch time format.
You can google how to calculate the timestamp for a specific date-time

limber whale
#

I did and entered the value but Stripe is giving an error.

heady pumice
#

What error?

limber whale
#

Let me product the error again

heady pumice
limber whale
heady pumice
#

You passed in expires_at: "86400"

That's not a valid timestamp

limber whale
#

What is the valid timestamp then

#

There are many example in the link, which example to follow?

heady pumice
#

use epoch timestamp value

limber whale
#

Works. Thank you again.

heady pumice
#

๐Ÿ‘

limber whale
#

What is your recommendation to store the values of metadata in enum or json data structure?

heady pumice
#

Not sure I am super clear on the question but If you're asking about storing information in metadata along with Stripe object then I believe the API only support JSON at the moment

limber whale
#

I would go with json as it supports touple data type.

heady pumice
#

๐Ÿ‘