#stevec0583
1 messages ยท Page 1 of 1 (latest)
Here's an example: pi_3NZxbjIr2WUHgKZ00UapxioX
Also, when I look at that payment in the dashboard, it says under 'Webhooks' that there were none. Which is unexpected.
Under wehooks for that payment intent, it says 'No recent webhook attempts'.
Hello ๐
Give me a moment to look..
Sure.
You don't seem to have an connect webhook endpoints on your platform account to listen to webhook events
You have account level webhooks on your connected account though
with the URL in https://xxx.ngrok-free.app/webhooks/payment
Here it is: we_1NZwKtErJwAgi4rtG3IEzX0H
I see the events were generated but are just pending delivery as we received 500 error code
https://dashboard.stripe.com/test/events/evt_3NZwQAErJwAgi4rt1aNfJTnS
Taking a step back, are you trying to listen to these events on the platform account or the connected account?
That was generated from the Stripe CLI
Those payments you can see on the connected account shoudl all have generated payment_intent.succeeded events, which should have caused this webhook to fire: we_1NZwKtErJwAgi4rtG3IEzX0H
I don't understand what you mean by this:
You don't seem to have an connect webhook endpoints on your platform account to listen to webhook events
You have account level webhooks on your connected account though
I just noticed this:
I guess that's the problem.
Yes, you're creating direct charges
https://dashboard.stripe.com/test/logs/req_hyP7TU82DSdzI4
Where the platform acct_1NYr06Ir2WUHgKZ0 makes a request on behalf of the connected account acct_1NY0lTErJwAgi4rt
The webhook ID we_1NZwKtErJwAgi4rtG3IEzX0H you shared belongs to the connected account.
If you're trying to listen to direct charges events on the platform account, then you need to create a connect type webhook endpoint that allow you to listen to events on the connected accounts
https://stripe.com/docs/connect/webhooks
Gotcha. I guess the odd default setting caught me off guard. When would someone listen to platform payment_intents? Are they for payouts or something?
It depends, if you're working with destination charges then the payment intents would be generated on the platform account
Oh right. It makes absolutely no sense to me, but it sounds like you discovered the problem and pointed me to the solution. I'll tinker with it now and suspect it shoud work. I'll report back shortly.
๐