#little-seven-_webhooks
1 messages ยท Page 1 of 1 (latest)
๐ 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/1427957418683273226
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
๐ Happy to help
in_1SH467AmWdZXFTtheyLHakMo
This invoice do have a PaymentIntentpi_3SH52OAmWdZXFTth0n6f6yax
Can you clarify how are you checking the intent on a given invoice?
I'm checking the data sent by webhook for payment.failed
$eventData->data->object
What's the evt_xxx ID of the event you're trying to process in your webhook endpoint?
I was not able to log it.
I'll check it first and come back again with another thread.
It's invoice.payment_failed, right?
yes
Maybe this one? https://dashboard.stripe.com/events/evt_1SIATHAmWdZXFTthnJMn25u0
yes
And your question is why is there no payment_intent property in the payload?
yes
It's because the event was delivered to an endpoint (we_1Rg6n1AmWdZXFTthWF547mlv) using an API version, 2025-05-28.basil, where that property is removed: https://docs.stripe.com/changelog/basil/2025-03-31/add-support-for-multiple-partial-payments-on-invoices
There's no specific verison set on the webhook endpoint, so it uses your account default version (which is the one I noted above)
Removed the payment_intent, charge, paid, and paid_out_of_band fields from the Invoice object.
got it, that helps.
btw, I can set stripe version in my php (webhook endpoint) so that I canoverride the default version?
Yes, but only when creating the endpoint โ it can't be updated. Also, depending on which version you want to use, you'd need to do it via the API (Dashboard only supports latest version or your account default)
https://docs.stripe.com/api/webhook_endpoints/create#create_webhook_endpoint-api_version
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
okay, i understand.
this is great help. thank you!