#sam-timestamp-invalid

1 messages · Page 1 of 1 (latest)

soft marsh
#

That means you are passing an invalid unix timestamp, the error is quite descriptive

cosmic junco
#

Well let me tell you the case. I have implemented a functionality where a customer can set future date to start his subscription for a any frequency (weekly/monthly). When he is trying to provide future date like after 1 or 2 days then he is able to do this with my code but when he is trying to set current date then stripe is giving me this error. FYI I am using trial_end for this functionality..

soft marsh
#

Yes you need to make sure that trial_end is in the future

#

if you pass a timestamp that's in the past we will error

#

even if you're one or 2 seconds off

cosmic junco
#

Ohh ok.. So what value should I select for Trial Date if in case Customer selects current date?