#_hx

1 messages ยท Page 1 of 1 (latest)

coral galeBOT
idle fox
#

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?

ivory skiff
#

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

#

I'm trying to listen for these events
account.application.authorized
account.application.deauthorized

idle fox
#

Can you share the ID of your Stripe account?

ivory skiff
#

is it this one acct_1LXuGpA9T2YLhCSd ?

idle fox
#

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.

ivory skiff
#

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

idle fox
#

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.

ivory skiff
#

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

idle fox
#

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?

ivory skiff
#

yes, it is the same account

coral galeBOT
idle fox
#

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.

idle fox
#

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

ivory skiff
#

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

sweet veldt
ivory skiff
#

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

Set up and distribute test versions of your app before publication.

sweet veldt
#

How are you listening to the events?

ivory skiff
sweet veldt
#

On which account?

ivory skiff
#

this is the account id acct_1LXuGpA9T2YLhCSd

ivory skiff
sweet veldt
#

I am looking at that account now. I see 3 registered webhook endpoints but none of them are listening to the installation events

ivory skiff
# ivory skiff

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

sweet veldt
#

That code is to trigger the events. I meant were you using the CLI to listen? E.g. stripe listen --forward-to ....

ivory skiff
sweet veldt
#

Okay I can understand that but from my perspective the first thing I see is that you aren't actually listening to the events

ivory skiff
sweet veldt
#

Okay I'm glad we are making progress

ivory skiff
#

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

sweet veldt
#

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.

ivory skiff
#

sure, thanks for your help