#naril_webhooks
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/1467910996898218290
📝 Have more to share? Add more details, code, screenshots, videos, etc. below.
Can you share an example checkout session id where this happened
i am not sure i understood, are you asking for the id of the session i have created via CLI?
sure, actually none of my trials. this is the idea of the last one: cs_test_a12ywdRQkghaWkYTzr4aak9l8DwoT3FfNQvlbZLbixVREK3QuoCYYcrQtB
That's pretty weird. Looking
Oh wait
checkout.session.created is not a valid event
What's your goal?
You can see the list of valid events here: https://docs.stripe.com/api/events/types
thats great!
i actually want to get the event before the customer of the marchant is charged so i can change things in the payment intent object
Oh that's not possible with checkout unfortunately
Payment intent is created after the fact
So you can't do this
What are you trying to change specifically?
StatementDescriptorSuffix
You can set that on creation though: https://docs.stripe.com/api/checkout/sessions/create#create_checkout_session-payment_intent_data-statement_descriptor_suffix
ok, and if i want to do it on my users behalf?
I don't know what you mean by that
my app will be installed by merchants
and i want to manage stuff like StatementDescriptorSuffix for them
I don't know that's why I said I can't speak to it
Why?
because i need to do it for them in every checkout
so i need something to trigger me
(i'm avoiding from being a Proxy)
my assumption is that i can get a notification (webhook), than i can do my thing for my users
is that possible?
Why do you need a notification
You can set it in every checkout session in the creation request
Or are you saying you're not the one creating the checkout sessions?
how? i am not a part checkout process, i am a Stripe App
Ah! sure?? 100%?
You can't intercept the payment intent from a checkout session and change the statement descriptor before the payment is processed
ok... and there is no chance I can change it?
Due to how checkout works it's impossible
Payment intent isn't created until the end of the flow
You don't have time to update it
ok, thanks!
your patient is very appriciated
🫶
i'm sorry but last time, maybe i missed something
i can't update the "StatementDescriptorSuffix" field if i am not creating the checkout session?
Correct
ok, thanks