#dkango.

1 messages ยท Page 1 of 1 (latest)

fickle thicketBOT
near wadi
#

Can you expand the Charge object inside the PaymentIntent object?

silver void
#

They no longer have a charge object ! let me give you a live example of the latest webhook that fails

#

How can I send you the webhook JSON?

#

Ok I've opened your link. This says, if I need extra information from my objects, I should ask for them explicitly?

#

How can I ask the webhook objects to send the Expanded version of an object?

near wadi
#

When you receive the webhook event, is it in the format of pi_xxx ?

silver void
#

This is the beginning of it;

#

"id": "evt_3OHJHrIC1XHuav1R0ARF7Vm4",
"object": "event",
"api_version": "2022-11-15",
"created": 1701147165,
"data": {
"object": {
"id": "pi_3OHJHrIC1XHuav1R0zcMGJlK",
"object": "payment_intent",
"amount": 78232,
"amount_capturable": 0,
"amount_details": {
"tip": {
}
},

#

Excatly. Can you please help me finding this receipt_url? under what section

near wadi
#

Sure, checking

#

Okie, then can you call Retrieve PaymentIntent API, expanding latest_charge ?

silver void
#

so let me confirm if I get it right. The original webhook which I receive is a limited response. I should take the ID of the paymentIntent object, call the API and get an expanded version with the latest_charge as the expanded parameter and then I'll be able to get the URL. Please let me know if my understanding is correct.

silver void
#

I think you're really busy. Thank your for your help up to this point. I'm hoping I've got this right and I can fix my application. Have a great day ๐Ÿ˜Š

near wadi
#

Yes, correct!