#li_webhooks

1 messages · Page 1 of 1 (latest)

fast relicBOT
#

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

ember stagBOT
#

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.

upbeat axle
#

hello! what preset parameters are you referring to?

topaz spoke
#

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.

upbeat axle
#

where (or what object) are you trying to get this data from?

topaz spoke
#

I want to get it from the webhook after successful payment

upbeat axle
#

alright, then you would want to listen for the payment_intent.succeeded webhook event

topaz spoke
#

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

upbeat axle
#

can you share the event id which you're looking at?

topaz spoke
upbeat axle
#

please paste the event id here

topaz spoke
#

Is that what you mean? "id":"pi_3P9fEELJjKcnBgiX14OeeIC5"

upbeat axle
topaz spoke
#

Can you match this event with the corresponding webhook event?

cs_test_a1Dzo4cskFe2wKUsb9o9G6IP7BQkMg8qpZkzjVgDlerZm0Gf1eMGMAM8UO

#

I don't know how to use your control panel. Sorry.

upbeat axle
#

what events are you looking for?

topaz spoke
#

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.

upbeat axle
#

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

topaz spoke
#

But I see that the preset parameters already exist

upbeat axle
#

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

topaz spoke
#

How do I find associated payment_intent.succeeded events

upbeat axle
#

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

topaz spoke
#

Can you take a screenshot? I don't quite understand what you said. How should I operate it? Thank you.

upbeat axle
#

Lets use cs_test_a1Dzo4cskFe2wKUsb9o9G6IP7BQkMg8qpZkzjVgDlerZm0Gf1eMGMAM8UO as an example. Can you first complete payment for this Checkout Session?

topaz spoke
#

Just a moment, I'll prepare another one.