#Whitechan

1 messages · Page 1 of 1 (latest)

plucky tinsel
#

Hey, which endpoints are you using/how are you integrating?

edgy mesa
#

The endpoints are payment_intent.succeeded

plucky tinsel
edgy mesa
#

The integration method is Payment on the official website

plucky tinsel
#

Will be available in your webhook events when they fire

#

The Dashboard?

edgy mesa
#

My question is how the $paymentIntent parameter corresponds to the order information of our own site?

plucky tinsel
#

Can you share a pi_xxx ID with me

edgy mesa
#

$paymentIntent I can get the payment completion parameters, but no information about the associated order? Is this because the webhook is not correct?

plucky tinsel
#

I need to know how you're integrating

edgy mesa
#

client_secret = pi_3LYE5yIQMzVYNvNs0c6HK6QW_secret_PH4e3mV4SZ139AOs6IakbjoAg
data.object.id = pi_3LYE5yIQMzVYNvNs0c6HK6QW

plucky tinsel
#

So what is the 'order' in this context? Some third-party data from your system?

#

But what data is is you want available in your webhook?

edgy mesa
#

I would like to be able to get the custom order number created by my own website in the webhook.

plucky tinsel
#

Any [key]: value pairings passed there will be available in your payment_intent.succeeded events

edgy mesa
#

😭 I had two parameters passed when I created CHECKOUT, but the parameters I passed were not received in the payment_intent.succeeded event I received.

plucky tinsel
edgy mesa
#

In the picture, the red box contains two custom parameters that I submitted but did not receive in the notification

plucky tinsel
#

Yep, those fields are not carried across to the underlying Payment Intent object. You'll need a different event: checkout.session.completed

edgy mesa
#

This is the one I received

#

So that's it, I'll try it myself later!

plucky tinsel
edgy mesa
#

Your explanation helped me a lot and I should have guessed the cause of my problem. Thank you for your support and good luck with your work!😆