#noroup_api

1 messages · Page 1 of 1 (latest)

indigo fogBOT
#

👋 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.

oak horizon
#

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?

rugged heron
#

You would want to use webhooks to listen for account.updated events. No need to poll every 5 minutes.

oak horizon
#

is it possible to do this with AWS lambda?

#

I am assuming the webhooks are just a push to an endpoint?

rugged heron
#

We do support Amazon EventBridge natively.

oak horizon
#

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

rugged heron
#

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.

oak horizon
rugged heron
#

All that information will be in the event object as well. No need to to make additional call.

oak horizon
#

Ah got it, thank you. Let me try to get the web hook working with lambda