#li_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/1233290226412163173
📝 Have more to share? Add more details, code, screenshots, videos, etc. below.
Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.
- li_webhooks, 1 hour ago, 16 messages
- li_webhooks, 17 hours ago, 37 messages
- li_api, 1 day ago, 10 messages
hello! what preset parameters are you referring to?
I preset it when I created Creat, but I didn't get this part of data after I paid successfully.
payment_intent_data:{
metadata: {
name:'张三',
email:'zhangsan@qq.com'
},
}
Can you help me with my problem? I'm a little confused.
where (or what object) are you trying to get this data from?
I want to get it from the webhook after successful payment
alright, then you would want to listen for the payment_intent.succeeded webhook event
I've been listening. I mean, he hasn't returned my preset data.
I can accept the result, but it doesn't include my preset parameters
can you share the event id which you're looking at?
please paste the event id here
Is that what you mean? "id":"pi_3P9fEELJjKcnBgiX14OeeIC5"
In your original request to create the Checkout Session for this PaymentIntent, i don't see any metadata specified : https://dashboard.stripe.com/test/logs/req_ZYrJmGGAoNECnC
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
Can you match this event with the corresponding webhook event?
cs_test_a1Dzo4cskFe2wKUsb9o9G6IP7BQkMg8qpZkzjVgDlerZm0Gf1eMGMAM8UO
I don't know how to use your control panel. Sorry.
what events are you looking for?
I want to take the preset parameters after the payment is successful, but I can't get them now. I don't know how to deal with them.
the problem is that your code is not defining any metadata when creating those example Checkout Sessions that you've provided
that's the problem you need to solve
But I see that the preset parameters already exist
ah, sorry, my bad, i was looking at the wrong Checkout Session id. So for cs_test_a1Dzo4cskFe2wKUsb9o9G6IP7BQkMg8qpZkzjVgDlerZm0Gf1eMGMAM8UO, yes you are passing in the metadata. You'll need to complete payment on that Checkout Session so that a payment_intent.succeeded event is generated
How do I find associated payment_intent.succeeded events
when you receive checkout.session.completed, you can find the payment_intent in the Checkout Session object. Subsequently, look up the PaymentIntent id in the Dashboard and scroll down to the Events and logs section in that page
Can you take a screenshot? I don't quite understand what you said. How should I operate it? Thank you.
Lets use cs_test_a1Dzo4cskFe2wKUsb9o9G6IP7BQkMg8qpZkzjVgDlerZm0Gf1eMGMAM8UO as an example. Can you first complete payment for this Checkout Session?
Just a moment, I'll prepare another one.