#harinth_webhooks

1 messages · Page 1 of 1 (latest)

strong deltaBOT
#

👋 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/1442722237508751461

📝 Have more to share? Add more details, code, screenshots, videos, etc. below.

Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.

wispy cypress
#

Hi

brazen wave
#

You have the latest_charge properties now

#

You can call Retrieve Payment Intent API then expand this latest_charge

wispy cypress
#

Thanks,
Yes, I saw that. But I was getting charge objects earlier, so I used that in my codebase.
Now when it misses, my code is also broken.

Is there a way, we can include that in the webhook response?

brazen wave
#

It's the API version change. Did you upgrade API version of the webhook endpoint?

wispy cypress
#

I didn't upgrade. But its a new sandbox account, so it automatically got upgraded

brazen wave
#

If you wish to use the old API version, you would need to create a webhook endpoint via API

#

That will let you specify, in contrast of Dashboard where you can only have the latest

wispy cypress
#

Could you please share the curl example for that?

wispy cypress
#

Thanks.
How to specify the version here?

brazen wave
#

You specify this api_version parameter

#

Something like

-d "api_version"="XXX" \
strong deltaBOT
marsh cipher
#

Hello! Do let me know if you have further questions on what my colleague shared!

wispy cypress
#

Okay, I will.
Just testing it

#

I just created the webhook

#

Do I need to add "expand" for charge object in payment_intent succeed?

marsh cipher
#

You would not have to expand anything if you created a webhook prior to the removal of the charges property

wispy cypress
#

Seems I am not receiving any entries in the new webhook

#

we_1SXDZxPSc5x61LTci8xGo3Gs

Could you please check

marsh cipher
#

Have you sent any test events?

#

If so, could you send the event ID here?

wispy cypress
#

I need to download CLI right?

marsh cipher
#

yup, or you can just create a test payment through workbench

#

But i dont see it sent to a connect webhook

wispy cypress
#

acct_1SNsJjPSc5x61LTc

Could you please check here?

marsh cipher
wispy cypress
#

I am bit confused over that part.

I have a number of users using my CRM website.
They are connecting to this stripe account via OAuth and make payments in their own accounts.
From my end, I would like to see all the webhook events(selected events in this webhook) in this account "acct_1SNsJjPSc5x61LTc"

marsh cipher
#

Right, it sounds like you were intending to create a Connect webhook.

Previously, the event that you sent in this chat evt_3SXCJoSCfsGQQC9I1LpcX30r was an event that happened on one of your connected accounts (the accounts that connected via OAuth). This event got sent to this webhook endpoint we_1SNsrEPSc5x61LTcc643PyjE which is a Connect Webhook

Currently, from what i understand, is that you want a new Connect Webhook to be of the version 2017-08-15. However, when you created the new Webhook Endpoint, it did not receive any events from your Connected Accounts. The reason is because you did not specify connect=true in your Webhook Create API call here. As such it created an Account webhook, which only listens to events that happen WITHIN that account and not events from your connected accounts

#

I would suggest you create a new webhook endpoint, specifying connect=true to create a Connect Webhook. Here is an example curl command

curl https://api.stripe.com/v1/webhook_endpoints \ -u "sk_test_xxxx" \ -H "Stripe-Version: 2025-11-17.preview" \ -d "enabled_events[]"="payment_intent.succeeded" \ -d api_version='2017-08-15’ \ -d connect='true’ \ --data-urlencode url="https://example.com/my/webhook/endpoint"

wispy cypress
#

Thank you so much!
Let me try this

#

version numbers can be copied as such?
I would like to get the charge object in the payment_intent.succeed webhook

marsh cipher
#

Apologies what do you mean by "version numbers can be copied as such?"

#

Have you tried the curl command?

wispy cypress
#

"Stripe-Version: 2025-11-17.preview"
api_version='2017-08-15’

#

Yes, now the endpoint is created

marsh cipher
#

Nice! let me know when you have created a test payment_intent.succeeded event. It should have the list of charges (if the webhook was created correctly)

wispy cypress
#

Okay, let me try