#shubhamjha
1 messages · Page 1 of 1 (latest)
Hi there!
Based on the error message, you need to wait for the clock to finish advancing before making changes.
why is it too slow
After a successful API request or Dashboard operation, the clock takes a few seconds to advance to the specified time. To know when the clock has changed state, you can use webhooks to listen for event notifications or you can poll the clock.
https://stripe.com/docs/billing/testing/test-clocks?dashboard-or-api=api#monitor-changes
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.
ok tell me one thingd
if a upcoming invoice is paid the event of updating the subscription also called?
you mean will you receive a customer.subscription.udpated event when an invoice is paid?
yes
is their any option to updet the new plan and also cancels the currentplan on same upadte api ?
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
is their any option to updet the new plan and also cancels the currentplan on same upadte api ?
Yes, basically you want to change the existing price of a subscription? this is covered here: https://stripe.com/docs/billing/subscriptions/upgrade-downgrade#changing
.
I already answered that question just above: https://stripe.com/docs/billing/subscriptions/upgrade-downgrade#changing
is their any option to updet the new plan and also cancels the currentplan on same upadte api ?
Can you clarify exactly what you want to do? If you want to cancel a plan and create a new one instead, in one API call: https://stripe.com/docs/billing/subscriptions/upgrade-downgrade#changing
ok thanks
can i stop calling the other event of api of webhook if one webhook event is called
What do you mean by "stop calling the other event of api"?
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
I'm sorry but it's difficult to understand your question.
if my upcoming invoice event is called
You mean mean you receive theinvoice.upcomingevent? Orinvoice.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?
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
but when upcming webhook event is called for the subscription
What is this?invoice.upcomingevent? Orinvoice.paid? Or something else?
yes invoice paid
please try to be more precise when asking questions.
So when you receive invoice.paid, you make a call to udpate the subscription?
yes
got it. and so what is your question?
yes invoice paid
Wait, the code you shared isinvoice.upcoming, so this is different...
yes
i dont want coustomer.subscription.update event call at that momment
What you mean by this ? not receiving the event from Stripe ?
if invoice.upcoming event is called is it necessary to call coustomer.subscription.update?
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
how can i ignore that event lsisting on particular things
You need to ignore that in your integration/implementation according to what you consider "particular things".