#thanoskir_36266
1 messages ยท Page 1 of 1 (latest)
Hi there!
What have you tried exactly?
Did you disconnect an account? If so, can you share the account ID (acct_xxx)?
Note that one option is to use the Stripe CLI for this:
stripe trigger account.application.deauthorized
https://stripe.com/docs/cli/trigger
I did that, with the trigger command I managed to reproduce the call. But when I disconnect the account from the dashboard, I can
I cant *
Is your webhook event a Connected webhook event listening to events happening on your connected account?
Can you share the account ID of the disconnected account (acct_xxx)?
Sure, here is the account id: acct_1O00NZEHfj3wuN9L
Sorry, I lost you here ๐
There are two types of webhooks endpoint: one listening to your own account, and one listening to events happning on your connected accounts
https://stripe.com/docs/connect/webhooks
Correct, I have both of them in my account
Sure, here is the account id: acct_1O00NZEHfj3wuN9L
Thanks! Give me a few minutes to look into this.
Wait, did you share your own account ID, or the account ID of the connected account to disconnected?
The id of the connected account
And how did you disconnect the account exactly?
Navigate to my account -> Click on connect -> Find the desired account -> From the top right, click on disconnect account
Oh so you disconnected the account from the platform account itself. In this case I don't think we send the account.application.deauthorized event.
Hmm really?
I can see from the webhook events that there is the account.application.deauthorized event here the event id: evt_1O58U1E9JfjsEemTm90XW6r8
Oh sorry about this, looks like I wrong then. Give me a few minutes to look into this.
Sure
Where specifically are you expecting to receive that event? Via the CLI or an actual endpoint?
Hello @elder knot, on an actual endpoint.
I want to test that the code that I write is correct. So I am trying to disconnect the account from the stripe dashboard and get the webhook in my local machine
Ok, we attempted to deliver that event there but received a 404 response (3 times). Can see that here: https://dashboard.stripe.com/test/events/evt_1O58U1E9JfjsEemTm90XW6r8
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
The reason that I am getting 404 I am looking for ๐
Does that endpoint accept POST requests? Just tested it myself and also got a 404
Yeah we wouldn't know that I'm afraid. It's some configuration issue as your end
Yes, I made a checkout completed
Not sure what that means. The URL you've shared (https://staging16.schoox.com/webhooks/stripe-connect.php) doesn't exist, hence the 404 error
This is the webhook that I created for the stripe connect calls
I understand that, but that URL doesn't exist โ we're unable to deliver events there. You need to start by making sure that that URL is valid and actually maps to a route/endpoint in your PHP application
Ok thanks
Do you have a way to forward these events from the stripe connect to my local machine?
Sure with the CLI: https://stripe.com/docs/stripe-cli/overview