#tycho3385
1 messages ยท Page 1 of 1 (latest)
hello! this is for the same event id?
can you paste the event id here for me to take a look?
evt_1NLhUQF0NkUE87AZJTXRuvCX
The only difference seem to be that the connect event has a account key in the root object
taking a look, give me a while
All right
are you forwarding both Connect as well as your own account webhooks?
I am using only one process running --forward-to, no process is running --forward-connect-to
This is my listen command
stripe listen --forward-to localhost:3020/api/webhooks/stripe
alright, going to continue looking ๐
It happens for all events, also when I run a trigger checkout.session.completed
i agree that it's really odd, I'd probably just ignore the event with the account parameter for now. Would that work for you for now?
Yeah thats what I was thinking to do and it would solve my problem, but would it be safe to do so in production? Can I assume that the account parameter will always be undefined for webhook events to my main account?
yep, that's correct, the account parameter won't be defined if it's not a Connect webhook : https://stripe.com/docs/api/events/object#event_object-account
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Ah great! That solves my issue then. Thanks!
@glossy flicker we suspect the reason why you're receiving webhooks for the Connect account also in the Stripe CLI is because your platform is connected to itself. That tends to produce some odd behaviour...
Oh I was not aware of that. Yes I can see my own account is listed in my connected accounts in test mode
you probably did the connection a long long time ago. Just so you're aware, it's no longer possible to connect to your own account, we've blocked this flow now.
Yeah, is there any way to remove this connection from the dashboard?
try doing it from https://dashboard.stripe.com/settings/apps ?
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
This button is not there
try this page : https://dashboard.stripe.com/settings/apps - scroll all the way down
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
you should be able to see yourself connected as an extension and a button on the right to revoke access
I did revoke but the account is still in the list of my connected accounts
Oh its gone now
Was just a delay
yay!
Yes that solved the issue with double events too!
glad to have been able to help!