#jackey_api

1 messages ยท Page 1 of 1 (latest)

hexed folioBOT
#

๐Ÿ‘‹ Welcome to your new thread!

โฒ๏ธ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.

โฑ๏ธ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.

๐Ÿ”— This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1479299951589593159

๐Ÿ“ Have more to share? Add more details, code, screenshots, videos, etc. below.

Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.

mighty lantern
#

Hello, do I need to set permissions first if I want to use the event listener of the webhook?

glass imp
#

Hey! It sounds like you want to set up a webhook endpoint to receive Stripe events. If thatโ€™s the case, may I ask what permissions you are referring to?

It would be helpful if you could share any documentation youโ€™re referencing.

mighty lantern
#

Permission settings for triggering webhook events

#

May I ask if you are not familiar with the business related to webhooks?

glass imp
#

Off the top of my head, I can't think of specific permission settings for triggering webhook events.

Events are autmatically generated when an event on stripe occurs (e.g. when payment intent suceeds)

Just to check, are you facing an error related to webhooks?

mighty lantern
#

Yes, related to webhooks

glass imp
#

Hmm, I see that you have spoken to my colleagues before

What is the exact problem you are facing? Is it

mighty lantern
#

I have set up the webhook but it's not working. I'm not sure what's going on.

glass imp
#

Could you send me your account id (acct_xxx) as well as a code snippet of your webhook endpoint?

#

In your code snippet, please do mask or remove your webhook secret

mighty lantern
#

ok

glass imp
#

Could I have your account ID (acct_xxx) where this webhook was created on?

mighty lantern
#

acct_1QDGW4IN4sEY4YJa

#

That is this.

glass imp
#

I dont think thats the correct account that created the webhook in your screenshot

mighty lantern
#

Then what constitutes the correct way?

glass imp
#

Ok, so the webhook endpoint (we_1T6jcSEWGqdaQN9ZiPNN81lU), from your screenshot, belongs to the Account ID (Sandbox): acct_1T6izcEWGqdaQN9Z

And you are trying to receive the account.application.authorized, account.application.deauthorized events on your webhook, is that correct?

mighty lantern
#

Yes, I need to install and uninstall the Stripe app to trigger these two events.

glass imp
#

Ok, taking a look at the webhook endpoint: we_1T6jcSEWGqdaQN9ZiPNN81lU, i noticed that it is not a connect type webhook, instead it is a Account type webhook. As the owner of the stripe App, you are technically the Platform account, and the accounts that download your app are your connected accounts.

You would have to create a connect type webhook https://docs.stripe.com/connect/webhooks to listen to the events (e.g. account.application.authorized, account.application.deauthorized) from those accounts. Could you try implementing that first?

mighty lantern
#

Am I creating the Connect Type webhook under the account of the application owner?

#

?

glass imp
#

yes, it should be under the application owner

mighty lantern
#

I have set up the Connect Type webhook, but it still hasn't triggered.

glass imp
#

I believe you have completed up to step 3, next would be step 4: Add the required permissions to your app by running stripe apps grant permission for each one.

hexed folioBOT
mighty lantern
#

Even after setting the permissions, it still doesn't work.

#

๏ผŸ

#

๏ผŸ๏ผŸ

static spoke
#

Hello there

#

Are you working on acct_1T6izcEWGqdaQN9Z?

mighty lantern
#

acct_1QDGW4IN4sEY4YJa

#

It is this one.

static spoke
#

Can you screenshot what you see on that Account's Dashboard?

#

when you view the events

#

Also could you provide the Event Id? evt_xxx

mighty lantern
#

Is this it?

#

Hello, did you see it?

#

๏ผŸ๏ผŸ๏ผŸ

static spoke
#

Looking

#

Okie how about the event id? evt_xxx

mighty lantern
#

Where is the event identifier located?

#

Are you referring to this one?

static spoke
#

Yes the evt_xxx. This is on a different account, correct?

#

Can you copy the evt_xxx value here?

mighty lantern
#

evt_1T6obwRTba50qFLgUqg6fHwU

#

It was when I created this account to publish this application

#

Will events occur when installing and uninstalling applications?

static spoke
#

evt_1T6obwRTba50qFLgUqg6fHwU is on acct_1T6ob1RTba50qFLg which is another different account?

static spoke
# mighty lantern Is this it?

Yes it should, on the Platform you configured. In this case acct_1QDGW4IN4sEY4YJa, test mode as your screenshot here

mighty lantern
#

Will events occur when installing and uninstalling applications?

#

Will there be webhook events generated when installing and uninstalling applications?

static spoke
#

Yes the account.application.authorized account.application.deauthorized events

mighty lantern
#

However, I haven't seen any events related to authorizing or revoking authorization when installing and uninstalling applications on my end.

#

After installation and uninstallation, I didn't see the authorization and deauthorization events you mentioned.

static spoke
#

Let's take a step back.
Which Account you are developing Stripe App (act as Platform)
Then which Account you are installing Stripe App on (act as Connected Account)

mighty lantern
#

"acct_1T6ob1RTba50qFLg" This account, which is used for developing and releasing applications, acts as the platform provider.

#

"acct_1T6izcEWGqdaQN9Z" This serves as a connection point for users, used for downloading, installing and uninstalling applications.

#

I would like to ask, is it necessary to check the account ID in the current sandbox environment at this location?

static spoke
#

Yes you should always check the ID. But that's not your current issue.

#

Re acct_1T6izcEWGqdaQN9Z, did you install the app on this Account?

#

Right now I see you set that URL to both an Account webhook and Connect webhook on acct_1T6ob1RTba50qFLg, and Account webhook on acct_1T6izcEWGqdaQN9Z. Could you clean up and remove the 2 Account webhooks?

mighty lantern
#

Can the sandbox environment also listen to webhook events when installing or uninstalling applications?

static spoke
#

It should, yes

mighty lantern
#

I have followed what you said, but the installation and uninstallation still did not trigger any webhook events.

#

The environment I used was a sandbox environment.

#

Hello, please reply if you see this. I'm in a hurry. Thank you.

static spoke
#

Okie. Did you install on the acct_1T6izcEWGqdaQN9Z account?

hexed folioBOT
#

Hello @mighty lantern, we have sent you a direct message, please check it at https://discord.com/channels/@me/1479386423399288966

  • ๐Ÿ”— The message has instructions on how to grant read and write access to your Stripe Dashboard for our Developer Support team, in order to help you more effectively.
#

Hello @mighty lantern, we have sent you a direct message, please check it at https://discord.com/channels/@me/1479386423399288966

  • ๐Ÿ”— The message has instructions on how to grant read and write access to your Stripe Dashboard for our Developer Support team, in order to help you more effectively.
static spoke
#

We asked for login consent for 2 accounts, so we can check it ourself

mighty lantern
#

Could you please help us check the problem over here?

static spoke
#

Yes, but could you check the DM and grant consent?

hexed folioBOT
mighty lantern
#

OK, I have already approved it.

static spoke
#

Ok, can you install the app first, and don't uninstall it yet

mighty lantern
#

OK, I'm installing it now.

tardy oasis
#

๐Ÿ‘‹ taking over for my colleague. Let me know if there's any follow-up Qs I can answer!

mighty lantern
#

Didn't your colleague just say that they would help me log in to my account to check the problem? Are you currently viewing it?

tardy oasis
#

yes we coordinate together, don't worry, they just need to step away and I'm here to continue helping you

mighty lantern
#

So, are you helping me check it?

tardy oasis
#

I will be with you shortly

mighty lantern
#

Are the different sandbox environments associated with different accounts?

tardy oasis
#

acct_1T6ob1RTba50qFLg and acct_1T6izcEWGqdaQN9Z are 2 separate sandbox accounts for the same parent account acct_1QDGW4IN4sEY4YJa

mighty lantern
#

So, if I want to test whether the account used to publish the application can replace other accounts that install the application to call the Stripe API interface to query data, is it possible to use different sandbox accounts?

#

Is it the case that other users installing our account's Stripe app can grant us authorization, and then we can obtain the account's ID through the Stripe app and use it to replace them to access the Stripe API interface to query their data?

tardy oasis
#

I'm still checking this for you. I suspect that the app you created (which I'm checking now) is not set as a public APP which is intended to be for development purposes. This means that it won't create a "real" connection between the platform account and the other account where you install it which explains why no connect webhooks are fired

mighty lantern
#

So that's how it is. I'll need to check it myself.

tardy oasis
#

I said I'm checking now

mighty lantern
#

So, if I want to test whether the account used to publish the application can replace other accounts that install the application to call the Stripe API interface to query data, is it possible to use different sandbox accounts?
Is it the case that other users installing our account's Stripe app can grant us authorization, and then we can obtain the account's ID through the Stripe app and use it to replace them to access the Stripe API interface to query their data?

tardy oasis
#

can you please hold your questions until I have a full image of your setup please

#

one thing that I just saw now is that your app doesn't have the "event_read" permission

#

it seems that the owner of the app is acct_1QDGW4IN4sEY4YJa (the main account not the sandbox)

hexed folioBOT
sudden atlas
#

๐Ÿ‘‹ Hi there! I'm taking over for my colleagues. Let me know if you're still having issues

mighty lantern
#

So, if I want to test whether the account used to publish the application can replace other accounts that install the application to call the Stripe API interface to query data, is it possible to use different sandbox accounts?
Is it the case that other users installing our account's Stripe app can grant us authorization, and then we can obtain the account's ID through the Stripe app and use it to replace them to access the Stripe API interface to query their data?

sudden atlas
#

Yes, you can use Stripe Apps to make API calls on behalf of the account where the App is installed

mighty lantern
#

So, if I want to test whether the account used to publish the application can replace other accounts that install the application to call the Stripe API interface to query data, is it possible to use different sandbox accounts?

sudden atlas
hexed folioBOT