#FSOCIETY

1 messages · Page 1 of 1 (latest)

azure oasisBOT
glass ridge
#

👋 happy to help

untold tree
#

Hey! Thanks 🙂

glass ridge
#

do you mean the subscription getting close to expiry date?

#

you can listen to invoice.upcoming event

untold tree
glass ridge
#

depending on the status of the subscription that you get from customer.subscription.updated

#

and event customer.subscription.deleted can be used when the subscription is canceled

untold tree
#

perfect, thanks!

#

Another question for you mate

#

Im facing a bit of inconsistency with the latency of creating stripe customers using the nodejs module

glass ridge
#

could you please elaborate more?

untold tree
#

Im using Next.js with next-auth (Using the Discord provider and MongoDB as the db adapter)

When creating a user im basically attaching a customer id created by stripe.. and sometimes that takes longer then expected:(

glass ridge
#

how long are we talking about?

untold tree
#

About 5-10s delay

#

Maybe because im using got as my http request module? Maybe its too slow?

glass ridge
#

if you give me a request id I could take a look how much it took from our end

#

maybe the delay is coming from your end as you described

untold tree
#

Where can i view thise requests ids?

glass ridge
untold tree
#

||req_ xHqgdS8OHlg54n||

#

For example, that one

#

Not sure tho where was the high latency one 😦

#

There’s a way for me to check it myself?

glass ridge
#

let me check on my end

#

from our end this took .206s