#gabriele-frattini_api
1 messages ¡ Page 1 of 1 (latest)
đ 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/1324711168333582367
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
hi there!
Here is the notified change we got
hey!
i'm not sure if this belongs to api questions, i can move it if you want
you just have to wait to receive the checkout.session.completed event. at that point, the subscription is created and you can do any operations on it (update, deleted, etc).
but while the user is on the Checkout Session page, trying to pay, you cannot make any changes to the Subscription.
aha okay i understand. So it's probably because our webhooks endpoint acts on a stripe event that is sent before checkout.session.completed event
and modifies the subscription is some way
or you said that the subscription is not created before the checkout.session.completed event?
or you said that the subscription is not created before the checkout.session.completed event?
nope, this can hactually happen. for example if the user enter their payment information, but the card is declined. at that point the Subscriprtion and Invoice are already created.