#little-seven-_webhooks

1 messages ยท Page 1 of 1 (latest)

lavish hareBOT
#

๐Ÿ‘‹ 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.

loud sage
#

๐Ÿ‘‹ Happy to help

#

in_1SH467AmWdZXFTtheyLHakMo
This invoice do have a PaymentIntent pi_3SH52OAmWdZXFTth0n6f6yax

lavish hareBOT
loud sage
#

Can you clarify how are you checking the intent on a given invoice?

sacred gulch
#

I'm checking the data sent by webhook for payment.failed

$eventData->data->object

warm ridge
#

What's the evt_xxx ID of the event you're trying to process in your webhook endpoint?

sacred gulch
#

I was not able to log it.
I'll check it first and come back again with another thread.

warm ridge
#

It's invoice.payment_failed, right?

sacred gulch
#

yes

warm ridge
sacred gulch
#

yes

warm ridge
#

And your question is why is there no payment_intent property in the payload?

sacred gulch
#

yes

warm ridge
#

There's no specific verison set on the webhook endpoint, so it uses your account default version (which is the one I noted above)

warm ridge
sacred gulch
#

got it, that helps.

btw, I can set stripe version in my php (webhook endpoint) so that I canoverride the default version?

warm ridge
#

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

sacred gulch
#

okay, i understand.

this is great help. thank you!