#.saberkhan
1 messages ยท Page 1 of 1 (latest)
Hello ๐
Not sure I follow
Can you elaborate on what you're trying to do? What API are you trying to use etc?
The timestamp at which the Checkout Session will expire. What will be the input format?
It would be Unix Epoch time format.
You can google how to calculate the timestamp for a specific date-time
I did and entered the value but Stripe is giving an error.
What error?
Let me product the error again
๐ you may also find the error in your API logs
https://support.stripe.com/questions/finding-the-id-for-an-api-request
{
"error": {
"message": "Invalid timestamp: must be an integer Unix timestamp in the future.",
"param": "expires_at",
"request_log_url": "https://dashboard.stripe.com/test/logs/req_X4ShWu3o0uOegh?t=1690209396",
"type": "invalid_request_error"
}
}
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
You passed in expires_at: "86400"
That's not a valid timestamp
Try using this tool to calculate timestamp for a future date
https://www.epochconverter.com/
What is the valid timestamp then
There are many example in the link, which example to follow?
Works. Thank you again.
๐
What is your recommendation to store the values of metadata in enum or json data structure?
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
I would go with json as it supports touple data type.
๐