#donut_webhooks

1 messages ยท Page 1 of 1 (latest)

tidal cipherBOT
#

๐Ÿ‘‹ Welcome to your new thread!

โฒ๏ธ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.

โฑ๏ธ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.

๐Ÿ”— This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1436324584788987955

๐Ÿ“ Have more to share? Add more details, code, screenshots, videos, etc. below.

worn steppe
#

๐Ÿ‘‹ happy to help

#

the timestamp values are in UTC

stone anvil
#

yeah i know but when its parsed by the library im getting the same date

worn steppe
#

what are you expecting the values to be?

stone anvil
worn steppe
#

what's the invoice ID

stone anvil
#

PeriodEnd and PeriodStart are being parsed as the same date but stripe is sending them as they should be

#

in_1SQo8CAehciZ0TVeSoM96Dse

worn steppe
#

the dates are wrong yes

#

they should be 11/7/2025 9:47:04

#

interesting

#

which SDK version are you using?

stone anvil
#

version=49.1.0

#

latest oen

#

one

worn steppe
#

would you mind upgrading the 49.2.0

#

and double checking if the error is still happening?

stone anvil
#

okay

#

yeah it's still happening

#

same period end and same period start

#

they are supossed to be 1 month apart

worn steppe
#

what's the invoice ID now?

stone anvil
#

in_1SQm6NAehciZ0TVetRccqmXT

worn steppe
#

but it is correct

#

the periodstart and periodend for this invoice are correct

#

let me correct my statement

#

the problem isn't in the SDK

stone anvil
#

okay, i thought that represents the period

#

of

#

the subscription

worn steppe
#

I'm investigating now why the generated event has the invoice period start and end wrong

stone anvil
#

so it is supposed to represent that right?

#

im in sandbox testing env just so you knoe

worn steppe
#

the problem isn't coming from the SDK, the periodEnd shouldn't be equal to the periodStart

stone anvil
#

okay

worn steppe
#

I'm just trying to see if I could replicate this

stone anvil
#

okay

tidal cipherBOT
steel pagoda
#

Hi there ๐Ÿ‘‹ apologies for the delay. I'm jumping in to lend a hand, please bear with me a moment while I catch up on the context here.

#

Ok so to summarize this:
invoice: in_1SQo8CAehciZ0TVeSoM96Dse interval starts at 2025-11-07 11:47:04 UTC and ends at 2026-11-07 11:47:04 UTC
However the invoice.paid event's period_start and period_end are exactly the same value 2025-11-07 11:47:04 UTC

#

Ok I think you should instead use lines.data[0].period.end|start you should get the correct value you are looking for

tidal cipherBOT
stone anvil
#

okay thank you

#

i'll try it now

stone anvil
#

i did

#

it worked

#

thank youu