#panpetar

1 messages · Page 1 of 1 (latest)

scarlet lintelBOT
#

Hello panpetar, we'll be with you shortly! Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.
panpetar, 7 minutes ago, 23 messages
panpetar-account-support, 2 hours ago, 2 messages

green kettle
#

Hello

#

Did you run stripe trigger using the CLI or anything similar?

fringe plinth
#

yes i did

#

i triggered few methods

green kettle
#

Yep okay that would do it then

#

Those triggers basically create API requests on your account in order to generate the Events

scarlet lintelBOT
fringe plinth
#

I don't understand this. When user pays successfully I receive this event 'customer.subscription.updated' but this information is set in past,
I would expect this information to represent when will this users subscription end. Am I right ?

#

I keep getting this value 1970-01-21T00:32:32.639Z

green kettle
#

Are you using a test clock?

#

Can you share an Event ID where you see this?

fringe plinth
#

where can i find it

#

i am using test env

green kettle
#

Or by looking at the Subscription in the Dashboard

#

There is a section for Events

#

Or really there should be an Event ID provided whenver you recieve this webhook

#

That looks like evt_xxxx

fringe plinth
#

evt_1O5UTlDhjDyCovQ5vltfDcVa

#

oh sorry,, i am interested in stg else

"current_period_end": 1729952639,

#

But why, Why isn't it a date 1 year from now ?

green kettle
#

That is 1 year from now?

#

That is October 26, 2024?

fringe plinth
#

I would expect that date but it is not the date you mentioned

#

1729952639 is some date in 1970

green kettle
#

Using new Date() will not give you the correct UNIX time

fringe plinth
#

what date format this even is ? i don't know how I am supposed to interpret this

green kettle
#

Our API always returns dates in UNIX timestamps by the second

fringe plinth
#

Okee, ty.. I have to multiply it by 1000

#

Thank you man