#tonidigital_webhooks

1 messages ¡ Page 1 of 1 (latest)

round sealBOT
#

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

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

sick gulch
#

Hello

#

You don't create Stripe Apps from the Dashboard

#

You do need to use the CLI command

#

I don't really understand what you are trying to do so I can't say whether it is a "good idea" or not.

safe venture
#

Ok. I will use Stripe App for listening webhooks and based on response our system will be called for further actions, e.g. payment is processed or not.
How I can easily do that without any react background and how deployment can be proceed for this kind of app, e.g. on Azure pipelines?

sick gulch
#

Why do you want to use a Stripe App for this?

#

You are talking about just using this for your own account here?

safe venture
#

yes, because Stripe does not support any authentication, e.g. api key and in the same time our system does not allow Anonymous access for webhooks

#

How we can listen events in that case, where we force to use api_key for access?

sick gulch
#

You are always going to need to use your API key?

#

I don't understand how/why that would be a blocker here.

safe venture
#

Yes, always need API key for accessing our system. If there is option on Stripe side to have easly configuration for API keys in that case we would not need to use Stripe App.
In that case we would use directly Stripe events that are pointing to our system.

#

Is there any chance to add that feature on Stripe dashboard? To configurate API key for accessing webhook API endpoint?

#

that would save a lot of time/effort for us

sick gulch
#

I'm sorry I don't know what you mean by "To configurate API key for accessing webhook API endpoint?"

#

Ah maybe you mean limit the permissions of an API key?

safe venture
#

Let me try to explain in the better way:
On Stripe we have object events, e.g. customer is created, payment intent is completed, etc... We need to listen these events and based on them take an action in our system.
Example, we have monthly subscriptions and if some of subscription in the meantime is not processed, object event will be created and we need to recognize that event and based on it flag that subscription/invoice in our system

#

Is this help you for understanding what we need?

sick gulch
#

No reason to use a Stripe App here

safe venture
#

I tried that way but started receiving Unauthorized access because our system is protected and requiring API key which Webhook is not sending.

#

Any idea how to send API key that we can easily configure?

sick gulch
#

You don't "send an API key"

#

You set it in your code

safe venture
#

I'm not sure I understand "you set it in your code".
How Webhook can point to API endpoint developed in our system that is protected with API key, in this case?

#

Need that API key for executing APIs in our system. That API will not be AllowAnonymous

sick gulch
#

You host your endpoint on your server

#

You then build your Webhook handler