#_hx
1 messages ยท Page 1 of 1 (latest)
Hi ๐ I'm not sure offhand if there is a set of Events associated with the installation/uninstallation of a Stripe App. What type of Event(s) is your endpoint currently trying to listen for?
I made this recording showing the process I'm doing from creating the app to creating the webhooks and testing them, hopefully make things more clear
this is a webm version but without audio, it willplay on discord tho
I'm trying to listen for these events
account.application.authorized
account.application.deauthorized
Can you share the ID of your Stripe account?
is it this one acct_1LXuGpA9T2YLhCSd ?
Possibly. I see that account has endpoints listening for the Events that you mentioned, but I'm not seeing any Events that were genreated that match those types.
do you know if I need to configure anything else to be able to listen for those events? I followed the documentation but the permissions event_read is the only thing that is estated
also it's a private app at the moment, i don't know if that has anything to do with listening to events
I don't think so. I think when those Events are triggered, the way you have things configured currently will result in those Events being sent to your endpoint.
I don't think the Events you're listening for will be triggered whenever a new version of your app is installed, instead I think they trigger when a Stripe Account that currently doesn't use your app grants it access to their account.
makes sense but the documentation says "connect or install", the uninstall triggers aren't launching either, in the webm i'm testing the endpoint from postman and registering uninstall listenders "account.application.deauthorized" and they are sending events either
Hm, I'm not sure whether Events are expected to trigger there, let me try to take a closer look at some things.
The account where you're creating these apps is the same one where you're trying to install/uninstall?
yes, it is the same account
Alright, in that case I think it's expected for the Events to fire, but let me see if I can confirm that with a teammate.
Thank you for your patience while I checked that! I believe what is going on here is that since you own the app you can never truly disconnect it from your account, so no Events are fired because the app never connects/disconnects from your account.
I believe you'll need to test installing/uninstalling the app to a different Stripe account to test what you're trying to, and my colleague provided this page as a resource for that:
https://stripe.com/docs/stripe-apps/test-app
thanks, the page you linked state the following
but the option to set the app as public is disable for the account I'm using
also the documentation mentions that you should be able to receive events for your own account
Hi ๐
I"m stepping in. So have you tried installing your app on another account following our external testing doc? https://stripe.com/docs/stripe-apps/test-app
Are you using the Stripe CLI to listen for these events? https://stripe.com/docs/stripe-apps/build-backend#test-webhooks-locally
thanks for reaching out
I"m stepping in. So have you tried installing your app on another account following our external testing doc? https://stripe.com/docs/stripe-apps/test-app
as I mentioned above the public app option is disable for the account and that's the only way to set up external testers according to the documentation
How are you listening to the events?
I registered the webhooks in the dashboard here a video of what i'm doing #1126165605788160080 message
here the version with audio #1126165605788160080 message
On which account?
this is the account id acct_1LXuGpA9T2YLhCSd
Are you using the Stripe CLI to listen for these events? https://stripe.com/docs/stripe-apps/build-backend#test-webhooks-locally
actually followed this suggestion and I'm getting the following
I am looking at that account now. I see 3 registered webhook endpoints but none of them are listening to the installation events
it seems that I'm not able to trigger the authorized event but the deauthorized one works, i need to run some other test to validate if it works for my sceneario
That code is to trigger the events. I meant were you using the CLI to listen? E.g. stripe listen --forward-to ....
yeah, I've been deleting those events and running other parts of the app that actually work
Okay I can understand that but from my perspective the first thing I see is that you aren't actually listening to the events
an update on this, it seems to be working but only for the deauthorized event
Okay I'm glad we are making progress
locally*. I can work with this, but I still find it weird that the ones registered on the dashboard (earlier as shown in the videos) weren't worknig
seems that i'm not the only one with this issue https://github.com/stripe/stripe-apps/issues/810
Since there is already an open issue for this I would recommend adding a comment detailing your scenario. It looks like that did not get resolved because the original poster did not respond to the Stripe.
sure, thanks for your help