#noroup_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/1383183936095653938
📝 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.
- noroup_api, 26 minutes ago, 45 messages
- noroup_api, 20 hours ago, 74 messages
- noroup_connect-requirements, 3 days ago, 9 messages
Once a user clicks to update the account_id, can I create a job that sweeps every 5 minutes and checks the account.updated? Or if the account is enabled or not?
Or can I configure Stripe to call an endpoint once an account is updated?
You would want to use webhooks to listen for account.updated events. No need to poll every 5 minutes.
is it possible to do this with AWS lambda?
I am assuming the webhooks are just a push to an endpoint?
We do support Amazon EventBridge natively.
Ah, can this be configured to send the event to an AWS lambda function? Say to update a DB row or something?
If I can skip eventbridge and just directly shoot an event to an AWS lambda function that would be ideal
It seems I can set up a http endpoint with POST and /webhook and receive events through it? I am going to test this
When you retrieve the event you'll want to check capabilities to confirm all the capabilities you need are enabled. You'll want to check requirements (currently_due and disabled_reason are good areas to check). To ensure the account doesn't have any future due requirements that could disable it later. You can also check charges_enabled, and payouts_enabled, to verify if these are available.
I can't speak from experience regarding AWS lambada functions. It sounds like it should work but I can't speak authoratively on this and it doesn't appear to be officially supported.
Got it, and this is when an account is updated? You have to use the stripe client to check? It doesn’t specifically tell you what is updated in the initial event?
All that information will be in the event object as well. No need to to make additional call.
Ah got it, thank you. Let me try to get the web hook working with lambda