#jackey_api
1 messages ยท Page 1 of 1 (latest)
๐ 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.
- jackey_api, 12 hours ago, 7 messages
- jackey_api, 16 hours ago, 90 messages
- jackey_api, 1 day ago, 31 messages
- jackey_api, 1 day ago, 7 messages
Hello, do I need to set permissions first if I want to use the event listener of the webhook?
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.
Permission settings for triggering webhook events
May I ask if you are not familiar with the business related to webhooks?
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?
Yes, related to webhooks
Hmm, I see that you have spoken to my colleagues before
What is the exact problem you are facing? Is it
- Creating
account.application.authorizedaccount.application.deauthorizedtest events (previous [question](#1479106743110996018 message)) - Or do you need help setting up a webhook endpoint? (previous [question](#1478929662410490000 message))
I have set up the webhook but it's not working. I'm not sure what's going on.
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
Could I have your account ID (acct_xxx) where this webhook was created on?
I dont think thats the correct account that created the webhook in your screenshot
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?
Yes, I need to install and uninstall the Stripe app to trigger these two events.
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?
Am I creating the Connect Type webhook under the account of the application owner?
?
yes, it should be under the application owner
I have set up the Connect Type webhook, but it still hasn't triggered.
ah ok, i realised for stripe Apps, there might be additional steps for Webhook endpoints.
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.
You can also test your webhook implementation along the way: https://docs.stripe.com/stripe-apps/events#test-locally
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
Yes the evt_xxx. This is on a different account, correct?
Can you copy the evt_xxx value here?
evt_1T6obwRTba50qFLgUqg6fHwU
It was when I created this account to publish this application
Will events occur when installing and uninstalling applications?
evt_1T6obwRTba50qFLgUqg6fHwU is on acct_1T6ob1RTba50qFLg which is another different account?
Yes it should, on the Platform you configured. In this case acct_1QDGW4IN4sEY4YJa, test mode as your screenshot here
Will events occur when installing and uninstalling applications?
Will there be webhook events generated when installing and uninstalling applications?
Yes the account.application.authorized account.application.deauthorized events
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.
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)
"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?
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?
So acct_1T6ob1RTba50qFLg is the Platform account which should have a Connect type webhook configure to "https://xp.test.wetech.vip/api/rw/stripe/webhook"
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?
Can the sandbox environment also listen to webhook events when installing or uninstalling applications?
It should, yes
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.
Okie. Did you install on the acct_1T6izcEWGqdaQN9Z account?
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.
We asked for login consent for 2 accounts, so we can check it ourself
Could you please help us check the problem over here?
Yes, but could you check the DM and grant consent?
OK, I have already approved it.
Ok, can you install the app first, and don't uninstall it yet
OK, I'm installing it now.
๐ taking over for my colleague. Let me know if there's any follow-up Qs I can answer!
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?
yes we coordinate together, don't worry, they just need to step away and I'm here to continue helping you
So, are you helping me check it?
I will be with you shortly
Are the different sandbox environments associated with different accounts?
acct_1T6ob1RTba50qFLg and acct_1T6izcEWGqdaQN9Z are 2 separate sandbox accounts for the same parent account acct_1QDGW4IN4sEY4YJa
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?
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
So that's how it is. I'll need to check it myself.
I said I'm checking now
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?
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
as per https://docs.stripe.com/stripe-apps/events this is necessary to receive webhook events
it seems that the owner of the app is acct_1QDGW4IN4sEY4YJa (the main account not the sandbox)
๐ Hi there! I'm taking over for my colleagues. Let me know if you're still having issues
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?
Yes, you can use Stripe Apps to make API calls on behalf of the account where the App is installed
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?
Sandbox support is something that you have to enable: https://docs.stripe.com/stripe-apps/enable-sandbox-support#test-mode-versus-sandbox-support