#dkango.
1 messages ยท Page 1 of 1 (latest)
Can you expand the Charge object inside the PaymentIntent object?
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
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?
When you receive the webhook event, is it in the format of pi_xxx ?
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": {
}
},
I've checked the object here https://stripe.com/docs/api/payment_intents/object and it seems it does not have anywhere with the receipt_url
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Excatly. Can you please help me finding this receipt_url? under what section
Sure, checking
Okie, then can you call Retrieve PaymentIntent API, expanding latest_charge ?
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.
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 ๐
Yes, correct!