#shubhamjha

1 messages · Page 1 of 1 (latest)

little trellisBOT
grim briar
#

Hi there!

minor siren
#

hry

#

actully i am testing the clock advancing feature for upcoming event

grim briar
#

Based on the error message, you need to wait for the clock to finish advancing before making changes.

minor siren
#

why is it too slow

grim briar
#

There are a lot of operations to do on Stripe's end to advance a clock (create invoice, bill customers, update subscription, etc.). That's why it takes a few seconds.

minor siren
#

ok tell me one thingd

#

if a upcoming invoice is paid the event of updating the subscription also called?

grim briar
#

you mean will you receive a customer.subscription.udpated event when an invoice is paid?

minor siren
#

yes

#

is their any option to updet the new plan and also cancels the currentplan on same upadte api ?

grim briar
#

You will get customer.subscription.udpated when a new period starts, but not specifically when the invoice is paid. Instead you will get invoice.paid

grim briar
minor siren
#

is their any option to updet the new plan and also cancels the currentplan on same upadte api ?

grim briar
minor siren
#

ok thanks

#

can i stop calling the other event of api of webhook if one webhook event is called

grim briar
#

What do you mean by "stop calling the other event of api"?

minor siren
#

yes if my upcoming invoice event is called i need to stop updating event in webhook

#

i dont want to calll my updateing evnt when my upcoming invoice is paid

grim briar
#

I'm sorry but it's difficult to understand your question.

if my upcoming invoice event is called
You mean mean you receive the invoice.upcoming event? Or invoice.paid? Or something else?
i need to stop updating event in webhook
You can't update events, so I don't understand. You mean updating the subscription?

minor siren
#

ok i am clearing it

#

i have a subscription

#

which needs to be paid on next moths ok

#

but when upcming webhook event is called for the subscription . it also call updte subscription event of api

grim briar
#

but when upcming webhook event is called for the subscription
What is this? invoice.upcoming event? Or invoice.paid? Or something else?

minor siren
#

yes invoice paid

grim briar
#

please try to be more precise when asking questions.

minor siren
grim briar
#

So when you receive invoice.paid, you make a call to udpate the subscription?

minor siren
#

yes

grim briar
#

got it. and so what is your question?

#

yes invoice paid
Wait, the code you shared is invoice.upcoming, so this is different...

minor siren
minor siren
#

i dont want coustomer.subscription.update event call at that momment

eternal pawn
minor siren
#

if invoice.upcoming event is called is it necessary to call coustomer.subscription.update?

eternal pawn
#

What you mean by calling? the event are triggered by Stripe you don't have control over them. If you don't want to take them into consideration, just ignore them/don't listen to them

minor siren
#

how can i ignore that event lsisting on particular things

eternal pawn
#

You need to ignore that in your integration/implementation according to what you consider "particular things".