#gabriele-frattini_api

1 messages ¡ Page 1 of 1 (latest)

prisma nacelleBOT
#

👋 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.

shy wraith
#

hi there!

lucid pawn
#

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

shy wraith
#

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.

lucid pawn
#

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?

shy wraith
#

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.

lucid pawn
#

Okay then it has to be related to those scenarios then

#

thank you, i don't have any more questions now, i will have to dig in to the code a bit