#loterak_webhooks

1 messages ¡ Page 1 of 1 (latest)

azure cosmosBOT
#

👋 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/1225073850614546503

📝 Have more to share? Add more details, code, screenshots, videos, etc. below.

young sierraBOT
radiant jacinth
#

There's no programmatic way afaik

verbal field
#

I haven't found a way through the webhook API since this is a local listener. But there's gotta be a way to capture the output of the command I assume

radiant jacinth
#

I've not seen folks try to capture this programatically before. Can you share more about what your usecase is?

verbal field
#

I'm writing a script that's meant to have you up and running to locally develop and test our Stripe integration. It runs the fixtures to setup your Stripe account and was previously using ngrok so we could test webhooks.

ngrok has imposed several limits to their free accounts so I've been exploring the stripe-cli option as a replacement.

The last step is to gather the secret key, publishable key and webhook secret, add them as env vars, and restart the server. I want to automate it as much as possible but it looks like I may need the webhook step to be manual.

#

Ohh I just saw a --print-secret flag, that might do it

radiant jacinth
#

I'm not sure if I'd recommend automating this, Anything with the secrets should be handled manually.

fwiw this works too
stripe listen > test.txt 2>&1

verbal field
#

Oh I see so its stderr, that's why I wasn't getting it.

We don't use a live Stripe account for development, that's why I'm not to worried about the secrets. Thank you so much!