#Abhishek
1 messages · Page 1 of 1 (latest)
Hi Jack, I want to know the format for passing expires_at value in checkout session. I am passing like 60(means 60sec), but I'm getting error "Invalid timestamp: must be an integer Unix timestamp in the future"
HI @analog jacinth the expires_at param expects a unix epoch timestamp, something like 1641792925
For instance, if you want to set the checkout to be expired by 12:00am 11 Jan UTC, you can set expires_at to 1641859200
How will I get this value in python means is there any algorithm to get this value?
Yes, you can use the default python time library to get the epoch time https://docs.python.org/3/library/time.html
ok