#Pankaj-webhook

1 messages · Page 1 of 1 (latest)

steel gazelle
#

Hi! Can you clarify your question? What exactly are you trying to achieve?

onyx cedar
#

$paymentIntent = $event->data->object;

#

I am trying to use webhook to get ID related to the order transaction

#

But this we render the complete order detail but i want only ID

#

{
"id": "pi_3Kyd6h2svt92FOo90ar7QeOV",
"object": "payment_intent",
"last_payment_error": null,
"livemode": false,
"metadata": {
"order_id": "2268",
"store_id": "1"
},

#

pi_3Kyd6h2svt92FOo90ar7QeOV

steel gazelle
#

I am trying to use webhook to get ID related to the order transaction
What event are you listening to? And what to you mean by " to get ID related to the order transaction"?

onyx cedar
#

Update a PaymentIntent

steel gazelle
#

I'm sorry I don't understand. What exactly are you trying to achieve?

onyx cedar
#

I target is to update metadata description and for this i need to retrieve the ID

#

So I am using PaymentIntent

#

Does it make sense?

steel gazelle
#

So you want to update the metatada of an existing PaymentIntent? Then yes that's possible, but you need the PaymentIntent ID. So what is your question?

onyx cedar
#

$paymentIntent = $event->data->object;

#

This is syntax to get the PaymentIntent object
SO I just need only id rather complete object