#jefskoa_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/1418314456055939183
๐ 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.
- jefskoa_api, 3 hours ago, 24 messages
Sorry that's a really broad question.
DO you have an example webhook event ID?
I don't think a webhook is being generated.
Perhaps I have something set up wrong, but have set the webhook at the platform level for our sandbox. Only two events. Can't seem to get the webhook event for reporting.report_run.succeeded
Okay so you have a webhook ENDPOINT set up to receive webhook EVENTS. Can you share the ID of that endpoint? It will start with we_
we_1S6ZHEI1VSC7qNYwQVHHcpoX -- I'm wondering if is not set up at the platform level but at the connected account level (????)
This is a V2 event destination. Are you creating V2 events?
Also it's not set up to listen to events on Connected Accounts
Sorry, I don't know the diff between v1 and v2 events. Too your second statement is it listening to all accounts then?
The only events I need are payouts.paid (which can't be triggered in the test events (so sad) ) and a report_run.suceeded.
You should be able to see an webhook event in the logs for 9/12 for a payout.
Too your second statement is it listening to all accounts then?
No, it's only listening to events on the account acct_1QptxoI1VSC7qNYw
This payout.paid event: https://dashboard.stripe.com/test/events/evt_1S6ZVQI1VSC7qNYwNf06p45y has failed delivery multiple times
We see Timed out connecting to remote host as the error
Yes, I had our receiving URL incorrect.
Well that would be the first thing to fix then
I believe I've corrected that and am trying to generate the web hook event.
Do I need to remove the webhook setup and try again to get it attached at the sandbox platform level? For testing, I need the 2 events to trigger from all connected accounts.
What do you mean by "sandbox platform level"?
- what account do you want to receive events for?
All accounts in our sandbox, not 1 specific account. When we move this application to production we'll have over 500 connected accounts and we understood 1 webhook setup could be at the platform level to capture those events from all accounts. Sure hope we don't have to attach them individually, per account.
What you are talking about is called a Connect Webhook Endpoint. You can read about how to properly configure them here: https://docs.stripe.com/connect/webhooks
OK, so if I want a connected API endpoint on our side, I must configure it in the dev dashboard as:
https://apim-kampsight-dev.azure-api.net/v1/webhooks/receive/stripe/connect not
https://apim-kampsight-dev.azure-api.net/v1/webhooks/receive/stripe
?
Yep that would make sense to do, you can set it to the same URL if you want, but then your code would need extra logic to tell the difference between connect and non-connect events. If you have them pointing to separate URLs that should simplify things
Hmmm ... not sure I follow 100%. I hope I can clarify what I need to do. I need any payout.paid event for all connected account (any account) on our platform to hit our end-point. Our standard URL for webhooks is https://<domain/v1/webhooks/<partner> in this case <partner> is "stripe". I'd prefer all activity for all accounts hit that api end point and not have 2 URLs.
I need to configure the webhook in the Dev dashboard for all accounts, and 2 events.
Taking a quick step back, your platform account can create two kinds of connect endpoint:
- An account endpoint, which only receives events that happened directly on your platform account.
- A connect endpoint, which receives events for all of the accounts that are connected to your platform.
Are you interested in events for your platform account and your connected accounts or just the events for the connected accounts?
Thanks for clarifying. I need a connect endpoint. Receive events for all the accounts connected to the platform. At this point, not interested in the platform event accounts, but the connected accounts.
Gotcha, then you can totally use whatever URL you want for that. Your standard format for the URL will totally work.
I misunderstood you, so I was talking about if you wanted to use both kinds of endpoint. It is a fairly simple check to tell which events are which, but typically people like to point their endpoints at different URLs in that case.
And, my code is looking for the 'account' element in the json so I know which account I'm "seeing". But now I'm kind of back to the first question about why the web hook setup in the dashboard appears to only for one connected account. I'm not getting events for all connected accounts. Setup wrong on my part?
It looks like that we_1S6ZHEI1VSC7qNYwQVHHcpoX endpoint is an account endpoint. So here you'll want to delete that endpoint and create a new one, on the screen for creating endpoints we should give you an option to choose between making an account endpoint or a connect one
Dang it. I was sure I selected Connected. I will remove & try again.
OK, re-established.
Awesome, and it looks like that new one is a connect endpont so the event should work like you are expecting now
I will check it out soon, Pompey!
OK just saw the report succeeded but no web hook event ๐
Hi there! I'll be taking over for Pompey here
Do you have an id or a request I can look at where you created the report?
You bet!
{
"id": "frr_1S8ojKIvHz5DOm3o6zjP0x5I",
"object": "reporting.report_run",
"created": 1758228422,
"error": null,
"livemode": false,
"parameters": {
"payout": "po_1S3RrDIvHz5DOm3oVLwe6oe6"
},
"report_type": "payout_reconciliation.by_id.summary.1",
"result": null,
"status": "pending",
"succeeded_at": null
}
I see an error in the dashboard regarding that event:
"DebugInformation": [
"Stripe.StripeException: The expected signature was not found in the Stripe-Signature header. Make sure you're using the correct webhook secret (whsec_) and confirm the incoming request came from Stripe."
It looks like the webhook event was delivered on the second attempt:
https://dashboard.stripe.com/acct_1Qpv01IvHz5DOm3o/test/events/evt_1S8ojVIvHz5DOm3oaK5ZscO9
thx, see it now, can review my side of it now