#pooja_api

1 messages ¡ Page 1 of 1 (latest)

hollow trailBOT
#

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

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

ashen lava
#

For Authentication custom application needs it's own Secrete key to be sent while making an API call
Do you mean a Stripe account secret key here? Which Stripe Account secret key you will be sending?

#

It sounds insecure. Secret Key should never be shared via network

median wasp
#

To access the API of any application we need to first authenticate it. So the endpoint which I am accessing through stripe needs a basic authentication, so where can I put authentication details oin stripe to access the external webshook

ashen lava
#

Looks like you will have your application as a Connected Account, and you are the Platform account?

#

And you want them to listen to their own webhook and call Stripe API on their own?

median wasp
#

I don't want to call stripe api but the external webhook endoint

ashen lava
#

I see. And which type of Connected Account are your applications?

median wasp
#

I don't think it is a connected account

#

Does it have to be aconnected account for api calls?

ashen lava
#

It should be Connected Account, and hold relation to your Stripe Account. But in either way, it's not recommended to send SecretKey over network. They would need to go their own Stripe Dashboard and grab the secret key there

median wasp
#

ok so you mean external application will need to get the stripe secrete key if stripe makes an api call to external application?

ashen lava
#

I am not certain about the part Stripe makes an API call. Which API call we made here?

#

(Or how do you setup that we will make API call?)

median wasp
#

I have added the Webhook endpoints in the Event Destinations on the dashboard

ashen lava
#

But that's for your own Stripe account...

#

It will make Stripe send webhook event to your own webhook endpoint, belongs to your Stripe Account

median wasp
#

How do I access external api from stripe then?

ashen lava
#

What do you mean by external api?

median wasp
ashen lava
#

Yes but how does it relate to Stripe webhook?

median wasp
#

should above api need to be added in webhookendpoint onstripe dashboard?

#

If no, pls guide how can

#

If no, pls guide on how can I send an api request and data to to above example.com/api... through stripe

median wasp
#

are you there?

ashen lava
#

Yes, sorry in a MTG, will be back

ashen lava
#

You can set any URL (including example.com, or any URL that you own) to a Stripe webhook endpoint. We will send events related to your Stripe account, to that endpoint. But you need to own that endpoint, meaning you will own a server responsible to handling requests to it

median wasp
#

yes we own that api

#

I get the authentication failed error in our webhook endpoint log file when try to access the endpoint from stripe

ashen lava
#

Does your endpoint have your account's secret key? (And your endpoint is not example.com, correct?)

median wasp
ashen lava
#

So you have the secret key on your endpoint server, use it to call Stripe API but it errored?

median wasp
#

why call stripe api? I have secrete key on my endpoint, I just want to send a request to my endpoint when stripe event occurs, eg. create a client in example.com when there is a new payment/clicnet made in stripe

ashen lava
#

There are 2 secret value here: the endpoint secret and the Stripe Secret key. Technically your endpoint only needs the endpoint secret to receive the events

#

But if you want to fire Stripe API to retrieve more information based on the event, your endpoint will need the Stripe secret key, in additional

median wasp
ashen lava
#

By "making a api request from stripe", I suppose you mean "receiving a webhook event from Stripe"

#

Then that's the endpoint secret, you get it from your Stripe Dashboard, then set it into your endpoint code

median wasp
#

ok, My endpoint already have a secrete key, is there a way I can use that secrete key?